# Getchart() method for Easy Chart

**URL:** <https://forum.inductiveautomation.com/t/getchart-method-for-easy-chart/4194>\
**Category:** Ignition\
**Created:** [March 22, 2012, 4:33pm UTC](https://forum.inductiveautomation.com/t/getchart-method-for-easy-chart/4194 "2012-03-22T16:33:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gnguyen](https://avatars.discourse-cdn.com/v4/letter/g/41988e/32.png) [@gnguyen](https://forum.inductiveautomation.com/u/gnguyen)\
**Post date:** [March 22, 2012, 4:33pm UTC](https://forum.inductiveautomation.com/t/getchart-method-for-easy-chart/4194/1 "2012-03-22T16:33:34Z")

</div>

Hi,

We need to draw a line at 0 on the X axis and use the setRangeZeroBaselineVisible() method. This is working well on the basic chart (as well as getchart() and getXYplot()) but not on the easy chart.

Is there a way to draw this line (without using a constant value for calculated pen)…

Thanks

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [May 9, 2012, 8:45pm UTC](https://forum.inductiveautomation.com/t/getchart-method-for-easy-chart/4194/2 "2012-05-09T20:45:11Z")

</div>

You can get to the easy chart’s internal JFreeChart like this:

chart = easyChart.getComponent(0).getComponent(0).getChart()
