Search code examples
javachartsjfreechart

How can I graph values that are incredibly small in Java?


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


Solution

  • 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.