How to do that, the X-axis is not a string category, but like a integer values.
for example I have a values:
as points (x,y):
(1,10) (2, 14) (5, 9) (8, 4)
and I want to present that as bar chart. (4 bars)
Thanks
Bar Chart - X-axis as a certain int values ???
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can do this using an XYBarRenderer. If you have the JFreeChart Developer Guide, there are a bunch of demos (XYBarChartDemo1-7) you can look at.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

