<asp:Chart ID="Chart1" runat="server" DataSourceID="ChartData" ImageStorageMode="UseImageLocation"> <series> <asp:Series Name="Series1" ChartType="Line" XValueMember="Time" YValueMembers="Temperature"> </series> <chartareas> <asp:ChartArea Name="ChartArea1"> </chartareas> <asp:SqlDataSource ID="ChartData" runat="server" ConnectionString="<%$ ConnectionStrings:myConnectionString %>" SelectCommand="SELECT [Time], [Temperature] FROM [Data]">
Chart1.Series[0].XValueType = System.Web.UI.DataVisualization.Charting.ChartValueType.Time;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)