# Dynamically changing the renderer style

**URL:** <https://forum.inductiveautomation.com/t/dynamically-changing-the-renderer-style/1055>\
**Category:** Archived Topics\
**Created:** [March 26, 2009, 4:37pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-the-renderer-style/1055 "2009-03-26T16:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimE](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@TimE](https://forum.inductiveautomation.com/u/TimE)\
**Post date:** [March 26, 2009, 4:37pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-the-renderer-style/1055/1 "2009-03-26T16:37:04Z")

</div>

I have been using the standard chart for displaying a calulated series of points. This has been working great so far. The data is a delimmited string of numbers that I have to calculate and store to a dataset and represents material thickness

I added a check box to the screen to allow the user to change the thickness from inches to a percentage of the target. When in “percent mode” I want to change to an area renderer but cannot figure out how to change this in script. Is this possible with the standard chart?

I considered using the easy chart since it has a pens table with a column for renderer\_style but my data is in a calculated dataset and not in a table. Is there a way to bind to a dataset?

You can see what the original string looks like in this post.  
[http://www.inductiveautomation.com/forum/viewtopic.php?f=15&t=3717](http://www.inductiveautomation.com/forum/viewtopic.php?f=15&t=3717)

---

<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:** [March 26, 2009, 4:53pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-the-renderer-style/1055/2 "2009-03-26T16:53:49Z")

</div>

Sorry, but you can’t directly affect the render style for a dataset on the classic chart. Since you only want to switch between two styles, however, what you can do is have two datasets on your chart, and depending on which mode you want to be in, have your script fill in one or the other with your data, and then configure each for a different render style.

---

<div class="post-metadata">

**Author:** ![TimE](https://avatars.discourse-cdn.com/v4/letter/t/ee59a6/32.png) [@TimE](https://forum.inductiveautomation.com/u/TimE)\
**Post date:** [March 26, 2009, 7:06pm UTC](https://forum.inductiveautomation.com/t/dynamically-changing-the-renderer-style/1055/3 "2009-03-26T19:06:10Z")

</div>

Great idea! This worked out very well. Thank you.
