Hi All...
I had used Line Chart for creating a chart and had used the following line to create the dataset for the chart.
lDataset.addValue(new Double(lValues), aProjectsListArray, lWeekLabels);
Problem:
When lWeekLabels ( the last argument )array has only 1 element, the Line/the chart does not get plotted. But the lValues is plotted correctly ie the Y axis.
Can somebody provide some help urgently?
Regards,
Narita
Problem while plotting graph with createDataset
Thank You David.
I understood that it requires to have atleast 2 data points to plot the graph(the line).
I solved my problem by using the api, renderer.setShapesVisible(true); of the renderer.
This has helped me to show dots for the data points. So in case there is just one data point, one dot is solving the problem to show the value.
I understood that it requires to have atleast 2 data points to plot the graph(the line).
I solved my problem by using the api, renderer.setShapesVisible(true); of the renderer.
This has helped me to show dots for the data points. So in case there is just one data point, one dot is solving the problem to show the value.