Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFreeChart - How to define custom maximum value of axis

 
Nick Smit
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Jfree Chart
When I set datapoints, it defines, the x and y axis ranges based on datapoints, but I want to define max x-axis value myself.

eg
my data points

10,1
20, 3
70,2

Jfree chart will give
x -axis as 0-80
y-axis as 0-5

I want x-axis to be shown as 0-100.

Is there a way?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic