日本免费全黄少妇一区二区三区-高清无码一区二区三区四区-欧美中文字幕日韩在线观看-国产福利诱惑在线网站-国产中文字幕一区在线-亚洲欧美精品日韩一区-久久国产精品国产精品国产-国产精久久久久久一区二区三区-欧美亚洲国产精品久久久久

免費加速器 免費asp( 三 )


//init code….
Steema.TeeChart.Tools.SeriesHotspot hotspotTool =
((Steema.TeeChart.Tools.SeriesHotspot)WebChart1.Chart.Tools[0]);
hotspotTool.GetHTMLMap += new Steema.TeeChart.Tools.SeriesHotspotEventHandler(hotspotTool_GetHTMLMap);
//event code:
private void hotspotTool_GetHTMLMap(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
{
if (CheckBox1.Checked) //open new window?
e.PointPolygon.Attributes=\”target=\’_blank\’\”;
else
e.PointPolygon.Attributes=\”target=\’_self\’\”; tab
if (e.Series==WebChart1.Chart.Series[0]) e.PointPolygon.HREF=https://atx106.com/”http://” + TextBox1.Text; //set URL according to textbox text + TextBox1.Text; //set URL according to textbox text
if (e.Series==WebChart1.Chart.Series[1]) e.PointPolygon.HREF=https://atx106.com/”http://” + TextBox2.Text;
if (e.Series==WebChart1.Chart.Series[2]) e.PointPolygon.HREF=https://atx106.com/”http://” + TextBox3.Text; + TextBox3.Text;
if (e.Series==WebChart1.Chart.Series[3]) e.PointPolygon.HREF=https://atx106.com/”http://” + TextBox4.Text;
}
Script
腳本選項可用于處理您可能希望通過Javascript添加到圖表中的任何自定義內(nèi)容或增值 。選擇腳本作為選項時 , TeeChart會添加使用幫助程序腳本的選項 , 當前可用:“注釋”(請參閱??Steema.TeeChart.Tools.HotspotHelperScripts) 。您可以選擇不使用Helperscript并定義自己的輸出 。注釋示例:
protected void Page_Load(object sender, System.EventArgs e)
{
//initialization
Chart ch1 = WebChart1.Chart;
Steema.TeeChart.Themes.ColorPalettes.ApplyPalette(ch1, 9);
Steema.TeeChart.Tools.SeriesHotspot hotspot1 = new Steema.TeeChart.Tools.SeriesHotspot();
ch1.Legend.Visible = false;
ch1.Tools.Add(hotspot1);
hotspot1.MapAction = Steema.TeeChart.Styles.MapAction.Script;
hotspot1.GetHTMLMap += new Steema.TeeChart.Tools.SeriesHotspotEventHandler(hotspot1_GetHTMLMap);
//….etc… more init code
}
private void hotspot1_GetHTMLMap(Steema.TeeChart.Tools.SeriesHotspot sender, Steema.TeeChart.Tools.SeriesHotspotEventArgs e)
{
//This example calls a Bar Series but e.Series and e.PointPolygon.ValueIndex could be sent
//as arguments for a drilldown query.
//The prepared HelperScriptAnnotation text accepts your text as a variable for the Annotation
//In the following case it calls an aspx script to generate and return a Chart as an image
e.PointPolygon.Attributes=String.Format(Texts.HelperScriptAnnotation,
\”<IMG SRC=https://atx106.com/ShowSeries.aspx?seriestype=Bar&view=False&width=100&height=80>\”);
//The annotation could, alternatively, present text in the mouseover hint, eg.:
//e.PointPolygon.Attributes=String.Format(Steema.TeeChart.Texts.HelperScriptAnnotation,\”hello world.\”);
}
上例中使用的HelperScriptAnnotation是: HelperScriptAnnotation =“onmouseover = \\”ShowAnnotation(\'{0}\’); \\“onmouseout = \\”ShowAnnotation(\’\’); \\“”; 如果您要添加自己的輸出 , 則可以將調(diào)用替換為您自己的代碼 。例如 。
string myProcess = =\”onmouseover=\\\”ShowAssociatedDataTable(\'{0}\’);\\\” onmouseout=\\\”ShowAssociatedDataTable(\’\’);\\\”\”;
e.PointPolygon.Attributes=String.Format(myProcess,e.PointPolygon.ValueIndex.ToString());
然后 , 您將使用ShowAssociatedDataTable方法來執(zhí)行調(diào)用以顯示關聯(lián)的數(shù)據(jù)表 。
ScrollTool
scrollTool將滾動條添加到WebChart的底部 。您可以設置圖表的可見部分大小和起始位置 。盡管可以取消激活功能 , 但圖表也可以拖動 。ScrollTool可以與Hotspot Tool結合使用 。使用編輯器添加ScrollTool會自動將圖表設置為2D并移動下軸以允許滾動條的空間 。滾動條在設計時不可見 。將ViewSegmentSize和StartPosition與SegmentViewUnits結合使用以設置可滾動大小 。例如 。

推薦閱讀