📄 loadstate.aspx
字号:
<%@ Page Language="C#" Description="dotnetCHARTING Component" %>
<%@ Register TagPrefix="dotnet" Namespace="dotnetCHARTING" Assembly="dotnetCHARTING"%>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Drawing2D" %>
<HTML>
<HEAD>
<TITLE>.netCHARTING Sample</TITLE>
<script runat="server">
void Page_Load(Object sender,EventArgs e)
{
// This sample will show how chart data and settings can be loaded from a saved xml file.
// Load the chart data and settings from the myChart.xml in the temp directory and use it for this chart.
Chart.LoadState("temp/myChart.xml");
//Change some labels
Chart.ChartArea.Label.Text = "This chart is loaded from file 'myChart.xml'.";
if(Chart.Annotations.Count==1)
{
Chart.Annotations[0].Label.Text = "Go to the sample that saves the myChart.xml file";
Chart.Annotations[0].URL = "SaveState.aspx";
}
}
</script>
</HEAD>
<BODY>
<DIV align="center">
<dotnet:Chart id="Chart" NoDataLabel-Text="Please run the SaveState.aspx sample to generate the xml file." runat="server">
</dotnet:Chart>
</DIV>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -