# Chart Grid Color

**URL:** <https://forum.inductiveautomation.com/t/chart-grid-color/10977>\
**Category:** Ignition\
**Created:** [January 4, 2016, 3:11am UTC](https://forum.inductiveautomation.com/t/chart-grid-color/10977 "2016-01-04T03:11:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcarrion](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/fcarrion/32/24407_2.png) [@fcarrion](https://forum.inductiveautomation.com/u/fcarrion)\
**Post date:** [January 4, 2016, 3:11am UTC](https://forum.inductiveautomation.com/t/chart-grid-color/10977/1 "2016-01-04T03:11:22Z")

</div>

I’ve been trying to do something that I thought it was going to be pretty easy, but apparently it is not. I need to “dissapear” the grid lines in a Chart component. The thing is that I haven’t been able to figure out how. I’ve tried to change the grid lines color to match the background (white) but can’t find that option. So far the only thing I have been able to do is to turn the chart background to the same color than the grid lines, but since I will be printing the graph, doesn’t work that well. Does anyone know how to “disable” or change color on the chart grid lines?

Thanks,

Francisco.

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [January 4, 2016, 9:59am UTC](https://forum.inductiveautomation.com/t/chart-grid-color/10977/2 "2016-01-04T09:59:01Z")

</div>

fcarrion

Welcome to the forum.

Both the Chart and Easy Chart have scripting extension functions for configuring the charts.

Right click the chart and select scripting, find extension functions and then select “configureChart”

check the enabled tick box and past the script below, (where it says [color=#0000FF]#put your code here[/color])

`	chart.getPlot().setDomainGridlinesVisible(0);
	chart.getPlot().setRangeGridlinesVisible(0);`

make sure its all indented, it should do what you want.  
The purple text you can see in the script is from Ignition and tells you where to go to get info on modifying the chart.

---

<div class="post-metadata">

**Author:** ![fcarrion](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/fcarrion/32/24407_2.png) [@fcarrion](https://forum.inductiveautomation.com/u/fcarrion)\
**Post date:** [January 4, 2016, 3:27pm UTC](https://forum.inductiveautomation.com/t/chart-grid-color/10977/3 "2016-01-04T15:27:54Z")

</div>

Chris,

Thanks a lot! It worked fine! Where can I find all the scripting configuration options for the chart?

Regards,

Francisco.

---

<div class="post-metadata">

**Author:** ![jsorlie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jsorlie/32/3645_2.png) [@jsorlie](https://forum.inductiveautomation.com/u/jsorlie)\
**Post date:** [November 8, 2017, 1:22am UTC](https://forum.inductiveautomation.com/t/chart-grid-color/10977/4 "2017-11-08T01:22:30Z")

</div>

See class documentation here

[http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/XYPlot.html](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/XYPlot.html)  
[http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/Plot.html](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/Plot.html)

here is my configureChart(self,chart) code example

> plot = chart.getPlot()  
> plot.setDomainGridlinesVisible(False)  
> plot.setRangeGridlinesVisible(False)  
> plot.setOutlineVisible(False)
