Plotting few points to a line graph with a wide x-axis scale

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
uniman
Posts: 1
Joined: Tue Aug 04, 2015 4:10 pm
antibot: No, of course not.

Plotting few points to a line graph with a wide x-axis scale

Post by uniman » Tue Aug 04, 2015 4:23 pm

Hi Everyone,

I'm having an issue with my line graph. I would like to plot only a few point to a wide x-axis and have JFree connect the dots.

For example, if I have an x-axis of 1 to 100 (with 1 being the interval) and I have points plotted for x=1,5,25,60,90,100.. my expectation is that these points would get connected; which they aren't at the moment.

What I see is that all the points get plotted together and aren't separated based on the scale and interval.

Any help or guidance would be appreciated.

Thanks!

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: Plotting few points to a line graph with a wide x-axis s

Post by paradoxoff » Tue Aug 04, 2015 4:44 pm

*Sigh*
Code?

Locked