I have a Labview project that I am trying to emulate in Ignition Vision. It includes a chart graph that mimics the pushing and pulling on a load cell. The graph looks like this:
They start with a yellow band at the top (and then the bottom) and the band turns green when the push-pull test is successful.
The white marker is tied to the load force tag value from the PLC.
Anyone do this before? Have suggestions?
Should be pretty easy to accomplish with an IntervalMarker from JFreeChart, via the configureChart
extension function:
I believe you will want to set your plot background to white, and then, simply add some interval markers to your configureChart extension function.
Example:
#def configureChart(self, chart):
from org.jfree.chart.plot import IntervalMarker
chart.plot.addRangeMarker(IntervalMarker(0, 15, system.gui.color(255, 182, 193, 155)))
chart.plot.addRangeMarker(IntervalMarker(25, 75, system.gui.color(144, 238, 144, 155)))
chart.plot.addRangeMarker(IntervalMarker(85, 100, system.gui.color(255, 182, 193…