本文整理匯總了C#中Chart.GetHtmlTag方法的典型用法代碼示例。如果您正苦於以下問題:C# Chart.GetHtmlTag方法的具體用法?C# Chart.GetHtmlTag怎麽用?C# Chart.GetHtmlTag使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Chart
的用法示例。
在下文中一共展示了Chart.GetHtmlTag方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Page_Load
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Chart Chart1 = new Chart();
Chart1.Import(FileFormat.BinaryTemplate,@"c:\xxx.xml");
if(IsPostBack)
{
Chart1.Palette=Chart1.Palette;
return;
}
btnShow.Attributes.Add("onclick","x()");
string query = txtQuery.Text;
if(String.Empty.Equals(query))
{
query=txtQuery.Text="select filter({{[Measures].[Ta Units]},{[Measures].[Ta Wrkload]}},[Measures].[Ta Amount]>1000000 and [Measures].[Ta Units]>5000 ) on rows," +
"{filter(toggledrillstate({[AgeRange].[All AgeRange]},{[AgeRange].[All AgeRange]}),[Measures].[Ta Amount]>1000000 and [Measures].[Ta Units]>5000)} on columns" +
" from [Claims cube]";
}
//Chart1.ClearData(SoftwareFX.ChartFX.ClearDataFlag.AllData);
SoftwareFX.ChartFX.Olap.Server.OlapExtension Olap1=new SoftwareFX.ChartFX.Olap.Server.OlapExtension();
SoftwareFX.ChartFX.Olap.Server.AdoMultiDimensionalData AdoMD1=new SoftwareFX.ChartFX.Olap.Server.AdoMultiDimensionalData();
try
{
AdoMD1.Connect("Provider=MSOLAP; Datasource=localhost; Initial Catalog=FoodMart 2000;", query);
Olap1.DataSource = AdoMD1;
Chart1.Extensions.Clear();
Chart1.Extensions.Add(Olap1);
Chart1.PersonalizedFlags=SoftwareFX.ChartFX.PersonalizedFlags.AutoLoad;// & SoftwareFX.ChartFX.PersonalizedFlags.AutoSave;
}
catch
{
;
}
Chart1.Palette="Default.ModernBusiness";
outstr = Chart1.GetHtmlTag(400,400,".NET","Chart1");
Chart1.Export(FileFormat.Jpeg,@"c:\xxx.jpg");
}