# Classic Chart

**URL:** <https://forum.inductiveautomation.com/t/classic-chart/3910>\
**Category:** Ignition\
**Created:** [January 25, 2012, 5:32pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910 "2012-01-25T17:32:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![epsmitas](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@epsmitas](https://forum.inductiveautomation.com/u/epsmitas)\
**Post date:** [January 25, 2012, 5:32pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/1 "2012-01-25T17:32:26Z")

</div>

I am attempting to use classic chart to create a real time trend graph with user selectable pens ( on/off ). Should I create multiple datasets with each pen in a dataset ? I can’t seem to find away to access the “dataset enable” property I see under “chart customizer”—\> “dataset properties” through scripting ?

I am not using the Easychart version as I am streaming the data through scripting ( Vision Panel Edition ). I want to make sure this is the correct decision as this component seems to be based on having an active database which I do not. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 25, 2012, 5:54pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/2 "2012-01-25T17:54:51Z")

</div>

With the classic chart you will have to make your own checkboxes to show / hide pens. Based on which checkbox they select you can call:`chart = event.source.parent.getComponent('Chart')
chart.setSeriesEnabled("Data", "Column Name", 0)`You would replace the “Column Name” with the pen you want to hide or show. To hide that last argument should be 0, to show it should be 1.

---

<div class="post-metadata">

**Author:** ![epsmitas](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@epsmitas](https://forum.inductiveautomation.com/u/epsmitas)\
**Post date:** [January 25, 2012, 6:00pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/3 "2012-01-25T18:00:07Z")

</div>

Perfect. Thanks Travis !!!

---

<div class="post-metadata">

**Author:** ![epsmitas](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@epsmitas](https://forum.inductiveautomation.com/u/epsmitas)\
**Post date:** [January 27, 2012, 1:55pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/4 "2012-01-27T13:55:30Z")

</div>

Hi. One more quick question. Where is this documentation for this located ? I can’t find any reference in the manual. Thanks.

---

<div class="post-metadata">

**Author:** ![pdibenedetto](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pdibenedetto/32/6364_2.png) [@pdibenedetto](https://forum.inductiveautomation.com/u/pdibenedetto)\
**Post date:** [January 27, 2012, 2:31pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/5 "2012-01-27T14:31:53Z")

</div>

I have the same problem too. I figure out using dir(), but more later I discover that was documented in the manual of FactoryPMI (now called Vision Module in Ignition).

[inductiveautomation.com/supp … \_Chart.htm](http://www.inductiveautomation.com/support/usermanuals/factorypmi/source/technical/components/display_Chart.htm)

In that documentation there are some information that it’s not in the new doc’s.

Regards,

---

<div class="post-metadata">

**Author:** ![epsmitas](https://avatars.discourse-cdn.com/v4/letter/e/4af34b/32.png) [@epsmitas](https://forum.inductiveautomation.com/u/epsmitas)\
**Post date:** [January 27, 2012, 4:13pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/6 "2012-01-27T16:13:01Z")

</div>

Okay… thanks pdibenedetto.

Now I have another property I would like to script “Fixed Auto Range” on the x axis. I tried “axis.setfixedAutoRange(100000)” but this does not work. Is there documentation on this property somewhere that I am missing ? Thanks !

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 27, 2012, 4:39pm UTC](https://forum.inductiveautomation.com/t/classic-chart/3910/7 "2012-01-27T16:39:48Z")

</div>

Like this:`chart = event.source.parent.getComponent('Chart')
chart.getYAxes().get("Default Y Axis").setFixedAutoRange(100000)
chart.initialize()`
