原創(chuàng)|其它|編輯:郝浩|2012-07-09 22:11:37.000|閱讀 781 次
概述:參考TeeChart的TeeChartForNET中文版安裝共享,里面有WebForm工作實(shí)例及C#.NET和VB.NET編寫的ASP.NET實(shí)例。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
參考TeeChart的TeeChartForNET中文版安裝共享,里面有WebForm工作實(shí)例及C#.NET和VB.NET編寫的ASP.NET實(shí)例。
怎樣創(chuàng)建一個(gè)動(dòng)態(tài)的WebChart
private void Page_Load(object sender, System.EventArgs e)
{
string chartName=Request.QueryString["Chart"];
if (Session[chartName]!=null)
{
System.IO.MemoryStream chartStream =
new System.IO.MemoryStream();
chartStream=((System.IO.MemoryStream)Session[chartName];
Response.OutputStream.Write(chartStream.ToArray(),0,
(int)chartStream.Length);
chartStream.Close();
Session.Remove(chartName);
}
}
private void Page_Load(object sender, System.EventArgs e)
{
//Let's work with the Chart object for convenience
Steema.TeeChart.Chart Chart1 = WebChart1.Chart;
//Add in a series and fill it
Chart1.Aspect.View3D = false;
Steema.TeeChart.Styles.Bubble bubble1 =
new Steema.TeeChart.Styles.Bubble(Chart1);
bubble1.FillSampleValues();
//Add a SeriesToolTip to the Chart
Steema.TeeChart.Tools.SeriesHotspot seriesHotSpot1 = new Steema.TeeChart.Tools.SeriesHotspot(Chart1);
//Steema.TeeChart.Styles.MapAction.Mark is the default value
seriesHotSpot1.MapAction = Steema.TeeChart.Styles.MapAction.Mark;
}
運(yùn)行代碼,在氣泡圖上移動(dòng)鼠標(biāo)您就可以看到一系列標(biāo)記的值,另外還有YValue.
seriesHotSpot1.MapAction = Steema.TeeChart.Styles.MapAction.URL;
seriesHotSpot1.GetHTMLMap += new Steema.TeeChart.Tools.SeriesHotspotEventHandler
private void seriesHotSpot1_GetHTMLMap
(Steema.TeeChart.Tools.SeriesHotspot sender,
Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
{
e.PointPolygon.Title = "Go to the Steema web";
e.PointPolygon.HREF = "//www.steema.com";
e.PointPolygon.Attributes = "target='_blank'";
}
seriesHotSpot1.MapAction = Steema.TeeChart.Styles.MapAction.Script;
seriesHotSpot1.HelperScript =
Steema.TeeChart.Tools.HotspotHelperScripts.Annotation;
private void seriesHotSpot1_GetHTMLMap
(Steema.TeeChart.Tools.SeriesHotspot sender,
、
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)