Last post Feb 18, 2014 04:01 PM by spox01
Feb 16, 2014 05:21 AM|spox01|LINK
I will create a Real Time Chart with an AJAX - Timer and with an Updatepanel.
My Code: ASP to create the chart
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:Chart ID="Chart3" runat="server" DataSourceID="SqlDataSource1">
<asp:Series ChartType="Line" Name="Series1" XValueMember="Zeit" YValueMembers="Leistung">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ProbeConnectionString %>" SelectCommand="SELECT [Leistung], [Zeit] FROM [Leistung/Zeit]"></asp:SqlDataSource>
<asp:Timer ID="Timer1" runat="server" Interval="500" OnTick="Timer1_Tick">
But the problem is, the chart is flickering. What can I do, that the chart isn't flickering?
Thank you in advance!
Feb 16, 2014 10:47 PM|chetan.sarode|LINK
we can use SignalR, the same time we can use Ajax timer and create an AJAX timer event and use it to update a chart in real time on the Client Side. We will be generating data randomly and using it for our table, so that we can see it update.
There is a demo, please refer to the link below:
Hope it's useful for you.
Feb 18, 2014 04:01 PM|spox01|LINK
thank you, I think I need SignalR, because your link with the real time update is also flickering.