Hello All,
I have used JFreeChart in one of my applications which we expect to sell well. I am using the 3D bar and line charts for my purpose therein.
There is a requirement from one of the potential customers that the values for each category item be displayed on the chart, say on the top of the bar or below the point in a line chart. I have achieved this by modifying the source code for VerticalBarRenderer3D and LineAndShapeRenderer classes. I have added the following lines to the drawCategoryItem method of the VerticalBarRenderer3D and LineAndShapeRenderer classes.
g2.setPaint(Color.black);
g2.drawString(<value>, (float)rectX, (float)rectY-20);
My questions are:
1. Is there any provision (which I may have missed in the docs) already made to display the values?
2. Is there a provision already made in the source code to be able to display the values?
3. Will my modification impact any part of the code as a whole.
4. Is this the right way to achieve what I want. I mean do I also need to provide a setShowValues kind of method to make this feature optional?
TIA
Shailesh
displaying values on chart
Re: displaying values on chart
Hello,
Have look at http://www.object-refinery.com/phorum-3 ... 411&t=7405
I had some nice free days... and therefore will have some delay for the release, but be patient...
Regards,
Arnaud
Have look at http://www.object-refinery.com/phorum-3 ... 411&t=7405
I had some nice free days... and therefore will have some delay for the release, but be patient...
Regards,
Arnaud