Hi Formspider team,

How do i refresh a chart?
I have a grid and below a chart, based on two different datasources. When i filter the grid, i want the chart to change as well. So, on the grid datasource pre-query event, i filter the chart datasource.

But the chart does not change when i do executeQuery on the charts datasource. Is it possible to refresh the chart when the underlying datasource is changed?

Thanks, Michiel A.

asked 17 Aug '12, 11:42

Michiel%20A's gravatar image

Michiel A
accept rate: 13%

Hi Michiel,

Just after doing executeQuery on charts datasource, you should call the api_chart.refresh API to refresh your chart.

Best Regards, Ibrahim


answered 17 Aug '12, 11:50

Ibrahim%20Sandalli's gravatar image

Ibrahim Sand... ♦♦
accept rate: 25%

Hi Ibrahim,

Thanks alot, works like a charm. I missed that api.
(must be time to quit working a relax for the weekend ;)

(17 Aug '12, 11:58) Michiel A

:-). We made the binding between a datasource and a chart a bit looser than the one between a datasource and a Grid. Chart binding behaves more like the binding of Tree component.

(17 Aug '12, 12:01) Yalim K. Gerger ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 17 Aug '12, 11:42

Seen: 2,212 times

Last updated: 17 Aug '12, 12:01

© Copyright Gerger 2017