Getchart() method for Easy Chart


We need to draw a line at 0 on the X axis and use the setRangeZeroBaselineVisible() method. This is working well on the basic chart (as well as getchart() and getXYplot()) but not on the easy chart.

Is there a way to draw this line (without using a constant value for calculated pen)…


You can get to the easy chart’s internal JFreeChart like this:

chart = easyChart.getComponent(0).getComponent(0).getChart()