1

Basically I am attempting to use JFreeChart right now to graph some values. The only problem is that the values are incredibly minuscule, e.g 7.069781E-13. I believe these values are too small for JFreeChart to display. How can I display these small values visually in Java in a line chart format?

It looks like this currently:

Mine

And I want to make it look similar to this:

Exmaple

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
Collin Li
  • 43
  • 6

2 Answers2

2

I found a work around. I simply multiplied all the values by a factor of 100 so the graph now looks similar to the one in the example. I will include a disclaimer in the legend saying the chart has been multiplied by a factor to clearly see the line chart.

Collin Li
  • 43
  • 6
1

Also consider these alternative:

  • Invoke setRange(), seen here, to expand the y axis in the area of interest.

  • Add suitable controls, seen here, to control y zoom.

  • Advise users how to use the mouse for zoom control, as shown here.

trashgod
  • 203,806
  • 29
  • 246
  • 1,045