|
Mutliple Gauges With Updates |
Posted by WildeKurt on Apr-25-2014 22:46 |
|
I've been demo-ing your product and love it's charting capabilities so far (been using MutliChart with multiple style charts and refreshing them periodically (Web/ASP.NET). So now moving on to it's gauges: I would like to have a number of gauges displayed and have their values update continuously. I've tried this through partialUpdate but that causes the display to 'flash' on the updates. I tried .streamUpdate from the client side but that causes all the gauges to be exactly the same no matter how I render them initially. Is it possible to do what I need with your product? Thanks for any help.
Kurt Wilde
The Applied Group |
Re: Mutliple Gauges With Updates |
Posted by Peter Kwan on Apr-26-2014 02:41 |
|
Hi WildeKurt,
Yes. Of course you can update multiple gauges or charts (or any combination thereof) in
realtime.
Are you using a MultiChart to contain the gauges and deliver the MultiChart to the browser,
or are the gauges separate? If you need further help, please let me know of your
programming langauge, and whether you are using a MultiChart to contain all the gauges or
not. I can provide a simple example for your reference.
Regards
Peter Kwan |
Re: Mutliple Gauges With Updates |
Posted by WildeKurt on Apr-26-2014 03:01 |
|
I'm using VB.NET. I was planning on using multiple gauges because positioning them around other content would be easier. As I said, I tried using streamUpdate from the client side like this:
function updateGauge1() {
viewer1.streamUpdate(60);
viewer2.streamUpdate(60);
}
window.setInterval('updateGauge1()', 1000);
And then updating the components in code behind page as with other charting components. But after the initial draw, both gauges are the same. I must be doing something wrong.
Kurt |
Re: Mutliple Gauges With Updates |
Posted by Peter Kwan on Apr-29-2014 00:05 |
|
Hi WildeKurt,
On the server side, is the code structured like in the post below:
http://www.chartdir.com/forum/download_thread.php?
bn=chartdir_support&thread=1268171312#N1268204158
In brief, if you call streamUpdate twice, two streaming requests will be sent to the server,
each for one of the viewers.
On the server side, when it receives a streaming request, it would need to use
WebChartViewer.GetSenderClientId(Page) to determine which viewer is sending the request,
and update that viewer only.
Hope this can help.
Regards
Peter Kwan |
Re: Mutliple Gauges With Updates |
Posted by WildeKurt on Apr-29-2014 21:02 |
|
Works like a charm. Thanks. It was just the server-side differentiation between the gauges I was lacking.
Kurt |
|