Where in some months the “OEE performance” values is lower than “OEE availability” but the loading order of the bound dataset is the opposite.
How can I play with the transparency to show the orange bar behind the green one?
I created a single dataset for every single category (OEE,OEEperf,OEE avail and OEEqual) to displayed as is in the graph.
It was my first attempt (stacked bars)…but the issue is the values to represent are percentages so max 100%, so using the stacked bar the result it was over the max. I tried through scripting to calculate the differences between the min value and the next ones and build a new dataset to dont overpass the max but at the end it was the same issue. Sometimes for one category the values is bigger than others and sometimes not. That’s why I asked to play with the transparency of the bars.
The light comes on! It only took four coffees for this one…
The script in configureChart did work. But only for the first one. Since you put in a separate dataset for each each series, all the subsequent renderers used the default (each dataset gets its own renderer).
Try this one in configureChart:
from org.jfree.chart.renderer.category import StandardBarPainter
plot = chart.getPlot()
rendererCount = plot.getRendererCount()
for i in range(rendererCount):
renderer = plot.getRenderer(i)
renderer.setBarPainter(StandardBarPainter())
renderer.setShadowVisible(0)