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:-
