Page 1 of 1

Android Line Chart

Posted: Wed Feb 01, 2012 6:55 pm
by 17061396
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

Re: Android Line Chart

Posted: Thu Feb 02, 2012 8:16 am
by 17061396
i figured it out.

Code: Select all

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

Re: Android Line Chart

Posted: Mon Mar 05, 2012 12:20 pm
by 17061565

Code: Select all

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