Skip to content
Advertisement

JFreeChart with truncated data points

I have created a JFreeChart with the code below, but the Y-Axis marks are truncated. How should I display the chart even though the data points are overlapped in the Y-Axis? Basically, I want the Y-Axis points to be generated from my file, a proper range is populated and displayed in the chart.

JavaScript

Below is the image that is created, clearly you can see that the Y-Axis there is an overlap showing.

enter image description here

Advertisement

Answer

This is my current approach on the chart how data is being rendered…

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement