Closed GoogleCodeExporter closed 9 years ago
Hi Luca, I have the same problem and I patch XYChart (I do have a project fork
so i can change source code and/or implement new features).
I change the method :
protected void drawChartValuesText(Canvas canvas, XYSeries series,
SimpleSeriesRenderer renderer,
Paint paint, List<Float> points, int seriesIndex, int startIndex) {
if (points.size() > 1) { // there are more than one point
to protected void drawChartValuesText(Canvas canvas, XYSeries series,
SimpleSeriesRenderer renderer,
Paint paint, List<Float> points, int seriesIndex, int startIndex) {
if (points.size() > 2) { // there are more than one point
In fact both x and y are stored in the same XYSeries that means if the series
size is 2 there is only 1 points, not 2...
Attach is a diff patch file to be applied on XYChart.java or directly change in
source code.
Regards,
Matthieu
Original comment by milou68
on 1 Oct 2013 at 9:46
Attachments:
Original comment by dandrome...@gmail.com
on 8 Jan 2014 at 3:48
Original issue reported on code.google.com by
luca.cri...@gmail.com
on 10 Sep 2013 at 8:09