Chart Refresh

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pkenosky
New User
Posts: 12
Joined: Mon Dec 19, 2016 12:25 pm
First Name: paul
Last Name: kenosky
Company Name: keystone auto
State / Province: Pennsylvania
Contact:

Chart Refresh

Post 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
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Chart Refresh

Post 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");
pkenosky
New User
Posts: 12
Joined: Mon Dec 19, 2016 12:25 pm
First Name: paul
Last Name: kenosky
Company Name: keystone auto
State / Province: Pennsylvania
Contact:

Re: Chart Refresh

Post by pkenosky »

It worked!

Thanks,
Paul K
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests