automallically adjust numbers on domain

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
superfield
Posts: 26
Joined: Thu Jun 07, 2007 10:07 pm

automallically adjust numbers on domain

Post by superfield » Thu Jun 28, 2007 4:26 pm

I have successfully made a set of charts, 5 using the createLineChart() method and one using the createXYLineChart() method. Both sets of charts contain over 100 data points, each data point is .2 apart (So it goes .2, .4, .6, .8, 1, 1.2 etc). The graph made with the createXYLineChart() method automatically adjusts the numbers on the domain so they read 0, 2.5, 5.0. 7.5 and so one. But the graphs made with createLineChart() just shows a bunch of dots, because there are so many points. How do I get the graphs created with createLineChart() to automatically adjust the numbers on the domain like the ones created with createXYLineChart?

superfield
Posts: 26
Joined: Thu Jun 07, 2007 10:07 pm

Post by superfield » Thu Jun 28, 2007 4:41 pm

Nevermind, I don't think it's possible

superfield
Posts: 26
Joined: Thu Jun 07, 2007 10:07 pm

Post by superfield » Thu Jun 28, 2007 4:43 pm

So is there a way to use the LineAndShapeRenderer with the XYPlot. XYPlot seems great but the renderer associated with it cannot do all that LineAndShapeRenderer can do.

superfield
Posts: 26
Joined: Thu Jun 07, 2007 10:07 pm

Post by superfield » Thu Jun 28, 2007 4:47 pm

no one respond to this, i just had an epiphany...I'll be back though!

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Post by skunk » Thu Jun 28, 2007 5:40 pm

Code: Select all

org.jfree.chart.renderer.xy.XYLineAndShapeRenderer

superfield
Posts: 26
Joined: Thu Jun 07, 2007 10:07 pm

Post by superfield » Thu Jun 28, 2007 7:18 pm

thanks skunk, that was my epiphany. I didn't know there was a line and renderer class for XYPlot (until I read the API). But keep responding to my posts, I'm gonna need you for the next few weeks. :wink:

Locked