PDA

View Full Version : Rendering Radar Chart with data received by rest call



cahello
10 Aug 2012, 8:16 AM
Hi,

I have a radar chart which renders when read from json file. i have used listeners for this purpose. Now, I need this to be upgraded to rest call. I have a rest call which is fired when I click a button. This rest call returns data to a store and data model. I want to render the radar chart using this data. So each time the button is clicked, a new set of data is returned. How can I achieve the rendering of the radar chart each time new data is received?

If any code is needed, please feel free to ask for it.

Thanks.

cahello
13 Aug 2012, 9:12 AM
Is there no way I can update the radar chart each time a button is clicked, which in turn fires a rest call? Any suggestion for this?

cahello
15 Aug 2012, 6:46 AM
Is there an alternate way of rendering the chart without using listeners? If there is, it would be of great help.

cahello
15 Aug 2012, 8:23 AM
I was able to achieve this feature. Initially, I render a mock radar chart. The only thing needed was to add a different set of data model, store and listeners in the button's handler function. This store fires the rest call every time the button is clicked. I was looking for a more robust and non-redundant way of doing this, but presently I am glad I could get this done. :)