Android Line Chart

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
yos
Newbie
Newbie
Posts: 8
Joined: Wed Jan 25, 2012 12:00 am

Android Line Chart

Post by yos » Wed Feb 01, 2012 6:55 pm

Hi,

i'm building a line chart and i wnated to make the line more width.
i tried:

Code: Select all

		Series line = new Line(chart.getChart());
		line.getXValues().setOrder(ValueListOrder.NONE);
		line.add(xAxis, yAxis);
		ChartPen pen = new ChartPen(chart.getChart());
		pen.setWidth(10);
but it doesn't make a difference.

any ideas ?
Thanks

yos
Newbie
Newbie
Posts: 8
Joined: Wed Jan 25, 2012 12:00 am

Re: Android Line Chart

Post by yos » Thu Feb 02, 2012 8:16 am

i figured it out.

Code: Select all

((Line)chart.getSeries(0)).getLinePen().setWidth(3);

Cameron
Newbie
Newbie
Posts: 5
Joined: Wed Feb 15, 2012 12:00 am

Re: Android Line Chart

Post by Cameron » Mon Mar 05, 2012 12:20 pm

Code: Select all

this.mSparkline = new Line();
mSparkline.setColor(Color.DARK_GRAY);
mSparkline.getLinePen().setWidth(2);
this.addSeries(mSparkline);

Post Reply