Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Real time Chart

$
0
0

Hello Everybody!!

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"><ContentTempLate><div><asp:Chart ID="Chart3" runat="server" DataSourceID="SqlDataSource1"><series><asp:Series ChartType="Line" Name="Series1" XValueMember="Zeit" YValueMembers="Leistung"></asp:Series></series><chartareas><asp:ChartArea Name="ChartArea1"></asp:ChartArea></chartareas></asp:Chart><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ProbeConnectionString %>" SelectCommand="SELECT [Leistung], [Zeit] FROM [Leistung/Zeit]"></asp:SqlDataSource></div><asp:Timer ID="Timer1" runat="server" Interval="500" OnTick="Timer1_Tick"></asp:Timer></ContentTempLate></asp:UpdatePanel>

But the problem is, the chart is flickering. What can I do, that the chart isn't flickering?

Thank you in advance!


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>