# Could not set the Domain Gridline Stroke for chart

**URL:** <https://forum.inductiveautomation.com/t/could-not-set-the-domain-gridline-stroke-for-chart/44739>\
**Category:** Ignition\
**Created:** [March 22, 2021, 6:08am UTC](https://forum.inductiveautomation.com/t/could-not-set-the-domain-gridline-stroke-for-chart/44739 "2021-03-22T06:08:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Premnath.K](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@Premnath.K](https://forum.inductiveautomation.com/u/Premnath.K)\
**Post date:** [March 22, 2021, 6:08am UTC](https://forum.inductiveautomation.com/t/could-not-set-the-domain-gridline-stroke-for-chart/44739/1 "2021-03-22T06:08:51Z")

</div>

Hi All,

In the chart component, I am trying to change the DomainGridlineStroke​ as the default is dotted stroke and less in width.  
I create a stroke and could not implement as its throwing error as following

11:34:11.403 [AWT-EventQueue-0] ERROR com.inductiveautomation.ignition.client.util.gui.ErrorUtil - Parse error for extension function “configureChart”  
SyntaxError: (“no viable alternative at character ‘?’”, (’’, 27, 29, ‘\tplot.setDomainGridlineStroke?(b)\n’))

```auto
def configureChart(self, chart):
	"""
	Provides an opportunity to perform further chart configuration via
	scripting. Doesn't return anything.

	Arguments:
		self: A reference to the component that is invoking this function.
		chart: A JFreeChart object. Refer to the JFreeChart documentation for
		       API details.
	"""
	# Put your code here
	from java.awt import Color
	from java.awt import BasicStroke
	from org.jfree.chart import renderer
	from org.jfree.chart.renderer.xy import XYStepRenderer
	from org.jfree.chart.renderer.xy import StandardXYItemRenderer
	from org.jfree.chart.plot import XYPlot
	from org.jfree.chart import plot
	
	plot = chart.getPlot()
	renderer = plot.getRenderer()
	print renderer
	print str(type(renderer))+"this was"
	b = BasicStroke()
	print type(b)
	plot.setDomainGridlineStroke​(b)
        plot.setDomainGridlinesVisible(1)
	plot.setDomainGridlinesVisible(1)
	plot.setRangeGridlinesVisible(1)
	plot.setRangeGridlinePaint(Color.black)
	plot.setDomainGridlinePaint(Color.black)

```

What would be the issue?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 22, 2021, 12:43pm UTC](https://forum.inductiveautomation.com/t/could-not-set-the-domain-gridline-stroke-for-chart/44739/2 "2021-03-22T12:43:57Z")

</div>

A unicode parenthesis instead of an ASCII parenthesis, perhaps? Try deleting and retyping that spot.

---

<div class="post-metadata">

**Author:** ![Premnath.K](https://avatars.discourse-cdn.com/v4/letter/p/b487fb/32.png) [@Premnath.K](https://forum.inductiveautomation.com/u/Premnath.K)\
**Post date:** [March 22, 2021, 1:12pm UTC](https://forum.inductiveautomation.com/t/could-not-set-the-domain-gridline-stroke-for-chart/44739/3 "2021-03-22T13:12:40Z")

</div>

Thanks But both the Unicode and ASCII parenthesis look the same, Moreover, I have used the same parenthesis for setRangeGridlinePaint,setRangeGridlinesVisible I did not have an issue.
