Page 1 of 1

Chart Refresh

Posted: Wed May 03, 2017 11:56 am
by pkenosky
I have a grid that is database driven, and when a row is selected I want to take some columns from that row that contain numbers and set them to the chart "values" property. I have done this successfully, however the problem is I am not sure how to refresh the chart in JavaScript (i dont want to return to the rpg pgm).... Is this possibles? Any ideas?

Thanks,
Paul K

Re: Chart Refresh

Posted: Wed May 03, 2017 11:59 am
by Scott Klement
Applying the field type property should cause it to re-draw the chart.

Code: Select all

// Do this after all other properties have been updated:
applyProperty("my-chart-id", "field type", "chart");

Re: Chart Refresh

Posted: Wed May 03, 2017 12:08 pm
by pkenosky
It worked!

Thanks,
Paul K