|
partial update with viewportcontrol |
Posted by Nitesh on Feb-14-2018 19:48 |
|
Hi,
I want to see graph with ViewPortControl.
So for this i have implemented new graph which has support of ViewPortControl.
Everything worked as expected the only problem I have at the moment is that it does not seems to support partialUpdate which means when user changed one of the legend condition(Means user can check or uncheck legend) and partial updated the main chart. The same change won't be reflected on the ViewPortControl.
So my concern is if i will uncheck any legend than graph for this legend should be disappear from viewportcontrol.
Regards
Nitesh |
Re: partial update with viewportcontrol |
Posted by Peter Kwan on Feb-16-2018 00:39 |
|
Hi Nitesh,
There is an example of how to update the ViewPortControl in the following thread:
http://www.chartdir.com/forum/download_thread.php?bn=chartdir_support&thread=1478481347
Basically, on the server side, the Javascript code calls partialUpdate for both the WebChartViewer and the WebViewPortControl object, so there will be two partialUpdate requests updating the two controls.
On the server side, we need to add a line to check whether the request is for updating the chart in the WebChartViewer or the chart in the WebViewPortControl, and then return the chart accordingly.
Hope this can help.
Regards
Peter Kwan |
|