Hi All,
I tried changing the default renderer type (StandardXYItemRenderer) to XYStepRenderer as the value where plotted wrong in StandardXYItemRenderer. After changing the renderer type to XYStepRenderer the plotted graph is not changing its same as StandardXYItemRenderer. But intrestingly when i print the render its showing XYStepRenderer.
from org.jfree.chart import renderer
from org.jfree.chart.renderer.xy import XYStepRenderer
from org.jfree.chart.renderer.xy import StandardXYItemRenderer
plot = chart.getPlot()
renderer = plot.getRenderer()
print renderer
print str(type(renderer))+"this was"
renderer1 = XYStepRenderer()
print type(renderer1)
plot.setRenderer(renderer1)
plot = chart.getPlot()
renderer = plot.getRenderer()
print str(type(renderer))+"this is it"
print type(self)
output
org.jfree.chart.renderer.xy.StandardXYItemRenderer@7b027c09
<type âorg.jfree.chart.renderer.xy.StandardXYItemRendererâ>this was
<type âorg.jfree.chart.renderer.xy.XYStepRendererâ>
<type âorg.jfree.chart.renderer.xy.XYStepRendererâ>this is it
<type âcom.inductiveautomation.factorypmi.application.components.PMIEasyChartâ>
But the output graph is the same as StandardXYItemRenderer
So I tried in the âchartâ component surprisingly I am able to get the output there with the same code.
attached screenshot of both.
My question is
So why in an easy chart the chart is not changing to XYStepRenderer??
EASY chart:-
Chart:-