Hi all,
I have created a line graph with dates on the horizontal axis and some quantity values on the vertical axis. The problem is the data I am entering for the dates in the horizontal axis isn't constant, therefore, I am unable to determine where readings have been entered on the graph. Is there any way of making the points on the line graph bold so it can be seen on the graph where data has been entered? Thanks in advance.
bold points in line graph
Re: bold points in line graph
Hi Del,
You can get the renderer to display shapes at each data point. Try something like this:
XYPlot plot = myChart.getXYPlot();
XYItemRenderer renderer = plot.getRenderer();
if (renderer instanceof StandardXYItemRenderer) {
StandardXYItemRenderer r = (StandardXYItemRenderer) renderer;
r.setPlotShapes(true);
}
Regards,
Dave Gilbert
You can get the renderer to display shapes at each data point. Try something like this:
XYPlot plot = myChart.getXYPlot();
XYItemRenderer renderer = plot.getRenderer();
if (renderer instanceof StandardXYItemRenderer) {
StandardXYItemRenderer r = (StandardXYItemRenderer) renderer;
r.setPlotShapes(true);
}
Regards,
Dave Gilbert