# Bar chart with crosshatch pattern

**URL:** <https://forum.inductiveautomation.com/t/bar-chart-with-crosshatch-pattern/45936>\
**Category:** Ignition\
**Created:** [April 22, 2021, 10:33pm UTC](https://forum.inductiveautomation.com/t/bar-chart-with-crosshatch-pattern/45936 "2021-04-22T22:33:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [April 22, 2021, 10:37pm UTC](https://forum.inductiveautomation.com/t/bar-chart-with-crosshatch-pattern/45936/2 "2021-04-22T22:37:51Z")

</div>

> [@Change colour of item in Chart](http://forum.inductiveautomation.com/t/change-colour-of-item-in-chart/35729/6):
>
> from java.awt import Color from org.jfree.chart.renderer.xy import XYLineAndShapeRenderer from java.awt.geom import Rectangle2D chart = event.source.parent.getComponent('Chart').getChart() ucl = 58.0 plot = chart.getPlot() class MyRenderer(XYLineAndShapeRenderer): def getItemPaint(self,series,row): if series == 0 and plot.getDataset(0).getYValue(series, row) \> ucl: return Color.RED else: return Color.BLUE renderer = MyRenderer() renderer.setSeriesLinesVisible(0,False) renderer.s…

This might get you started.

---

_[View the full topic](https://forum.inductiveautomation.com/t/bar-chart-with-crosshatch-pattern/45936)._
