# Bar Chart Color in Reporting \*new question\*

**URL:** <https://forum.inductiveautomation.com/t/bar-chart-color-in-reporting-new-question/17739>\
**Category:** Ignition\
**Created:** [April 17, 2018, 1:36pm UTC](https://forum.inductiveautomation.com/t/bar-chart-color-in-reporting-new-question/17739 "2018-04-17T13:36:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wg1](https://avatars.discourse-cdn.com/v4/letter/w/96bed5/32.png) [@wg1](https://forum.inductiveautomation.com/u/wg1)\
**Post date:** [April 17, 2018, 1:36pm UTC](https://forum.inductiveautomation.com/t/bar-chart-color-in-reporting-new-question/17739/1 "2018-04-17T13:36:46Z")

</div>

Hello,  
I have found the script to render the bars different colors in the series, but i would like to take it a bit further. Instead of comparing the value to a set number, i would like to compare it to another value in the dataset without showing a second bar for each series in the dataset.

```
> from org.jfree.chart.renderer.category import BarRenderer

```

> from java.awt import Color  
> class myBarRenderer(BarRenderer):  
> def getItemPaint(self, row, column):  
> v = chart.getCategoryPlot().getDataset().getValue(row, column)  
> if v \< 70:  
> return Color.blue  
> else:  
> return Color.red  
> plot = chart.getCategoryPlot()  
> plot.setRenderer(myBarRenderer())  
> i have tried placing the two values together as a string and separating by a delimiter then converting to float, but that still shows 2 bars.  
> Any help or ideas would be great.

thanks in advance!
