public static string CreateSingleBar(DataTable dt, string charType, string imagePath, string title) { var phaysicalImagePath = imagePath; var mychart = new OWCChartFactory(title, phaysicalImagePath, 500, 600, new OWCChartFontStyle()); var myItem = new OWCSeriesClass(); myItem.SeriesName = "次数"; myItem.SetDataSource(dt, "Item", "Value"); mychart.CreateSingleBar(" ", "", myItem); var imageName = mychart.ExportPictuire(); return(imageName); }
public static string CreateSingleBar(DataTable dt, string CharType, string ImagePath, string Title) { String PhaysicalImagePath = ImagePath; OWCChart.OWCChartFactory mychart = new OWCChartFactory(Title, PhaysicalImagePath, 500, 600, new OWCChartFontStyle()); OWCChart.OWCSeriesClass MyItem = new OWCSeriesClass(); MyItem.SeriesName = "次数"; MyItem.SetDataSource(dt, "Item", "Value"); mychart.CreateSingleBar(" ", "", MyItem); String imageName = mychart.ExportPictuire(); return(imageName); }
public static string CreateMultiColumns(DataTable[] dts, string imagePath, string title) { var phaysicalImagePath = imagePath; var mychart = new OWCChartFactory(title, phaysicalImagePath, 530, 300, new OWCChartFontStyle()); var myItems = new OWCSeriesClass[dts.Length]; myItems[0] = new OWCSeriesClass {SeriesName = "显示次数"}; myItems[0].SetDataSource(dts[0], "Item", "Value"); myItems[1] = new OWCSeriesClass {SeriesName = "点击次数"}; myItems[1].SetDataSource(dts[1], "Item", "Value"); mychart.CreateMultiColumns("时间", "次", myItems); String imageName = mychart.ExportPictuire(); return imageName; }
public static string CreateMultiColumns(DataTable[] dts,string ImagePath,string Title) { String PhaysicalImagePath = ImagePath; OWCChart.OWCChartFactory mychart =new OWCChartFactory(Title,PhaysicalImagePath,530,300,new OWCChartFontStyle()); OWCChart.OWCSeriesClass[] MyItems = new OWCSeriesClass[dts.Length]; MyItems[0]=new OWCSeriesClass(); MyItems[0].SeriesName = "��ʾ����"; MyItems[0].SetDataSource(dts[0],"Item","Value"); MyItems[1]=new OWCSeriesClass(); MyItems[1].SeriesName = "�������"; MyItems[1].SetDataSource(dts[1],"Item","Value"); mychart.CreateMultiColumns("ʱ��","��",MyItems); String imageName = mychart.ExportPictuire(); return imageName; }
/// <summary> /// 创建数据图形文件 /// </summary> /// <param name="dt">数据源</param> /// <param name="charType">图类型 Column,Pie</param> /// <param name="imagePath">图像存放目录</param> /// <param name="title">图形标题</param> /// <returns></returns> public static string CreateChart(DataTable dt, string charType, string imagePath, string title) { var phaysicalImagePath = imagePath; var mychart = new OWCChartFactory(title, phaysicalImagePath, 530, 300, new OWCChartFontStyle()); var myItem = new OWCSeriesClass {SeriesName = "次数"}; myItem.SetDataSource(dt, "Item", "Value"); switch (charType) { case "Column": mychart.CreateOneColumn("时间", "次", myItem); break; case "Pie": mychart.CreateSinglePie(myItem); break; } var imageName = mychart.ExportPictuire(); return imageName; // Image1.ImageUrl = ".\\"+m_imagePath+imageName; }
/// <summary> /// ��������ͼ���ļ� /// </summary> /// <param name="dt">����Դ</param> /// <param name="CharType">ͼ���� Column,Pie</param> /// <param name="ImagePath">ͼ����Ŀ¼</param> /// <param name="Title">ͼ�α���</param> /// <returns></returns> public static string CreateChart(DataTable dt,string CharType,string ImagePath,string Title) { String PhaysicalImagePath = ImagePath; OWCChart.OWCChartFactory mychart =new OWCChartFactory(Title,PhaysicalImagePath,530,300,new OWCChartFontStyle()); OWCChart.OWCSeriesClass MyItem = new OWCSeriesClass(); MyItem.SeriesName = "����"; MyItem.SetDataSource(dt,"Item","Value"); switch(CharType) { case "Column": mychart.CreateOneColumn("ʱ��","��",MyItem); break; case "Pie": mychart.CreateSinglePie(MyItem); break; } String imageName = mychart.ExportPictuire(); return imageName; // Image1.ImageUrl = ".\\"+m_imagePath+imageName; }
public static string CreateMultiBar(DataTable[] dts, string imagePath, string title) { var phaysicalImagePath = imagePath; var mychart = new OWCChartFactory(title, phaysicalImagePath, 500, 600, new OWCChartFontStyle()); var myItems = new OWCSeriesClass[dts.Length]; myItems[0] = new OWCSeriesClass(); myItems[0].SeriesName = "显示次数"; myItems[0].SetDataSource(dts[0], "Item", "Value"); myItems[1] = new OWCSeriesClass(); myItems[1].SeriesName = "点击次数"; myItems[1].SetDataSource(dts[1], "Item", "Value"); mychart.CreateMultiBar(" ", "", myItems); var imageName = mychart.ExportPictuire(); return(imageName); }
public static string CreateMultiColumns(DataTable[] dts, string ImagePath, string Title) { String PhaysicalImagePath = ImagePath; OWCChart.OWCChartFactory mychart = new OWCChartFactory(Title, PhaysicalImagePath, 530, 300, new OWCChartFontStyle()); OWCChart.OWCSeriesClass[] MyItems = new OWCSeriesClass[dts.Length]; MyItems[0] = new OWCSeriesClass(); MyItems[0].SeriesName = "显示次数"; MyItems[0].SetDataSource(dts[0], "Item", "Value"); MyItems[1] = new OWCSeriesClass(); MyItems[1].SeriesName = "点击次数"; MyItems[1].SetDataSource(dts[1], "Item", "Value"); mychart.CreateMultiColumns("时间", "次", MyItems); String imageName = mychart.ExportPictuire(); return(imageName); }
/// <summary> /// 创建数据图形文件 /// </summary> /// <param name="dt">数据源</param> /// <param name="charType">图类型 Column,Pie</param> /// <param name="imagePath">图像存放目录</param> /// <param name="title">图形标题</param> /// <returns></returns> public static string CreateChart(DataTable dt, string charType, string imagePath, string title) { var phaysicalImagePath = imagePath; var mychart = new OWCChartFactory(title, phaysicalImagePath, 530, 300, new OWCChartFontStyle()); var myItem = new OWCSeriesClass(); myItem.SeriesName = "次数"; myItem.SetDataSource(dt, "Item", "Value"); switch (charType) { case "Column": mychart.CreateOneColumn("时间", "次", myItem); break; case "Pie": mychart.CreateSinglePie(myItem); break; } var imageName = mychart.ExportPictuire(); return(imageName); // Image1.ImageUrl = ".\\"+m_imagePath+imageName; }
/// <summary> /// 创建数据图形文件 /// </summary> /// <param name="dt">数据源</param> /// <param name="CharType">图类型 Column,Pie</param> /// <param name="ImagePath">图像存放目录</param> /// <param name="Title">图形标题</param> /// <returns></returns> public static string CreateChart(DataTable dt, string CharType, string ImagePath, string Title) { String PhaysicalImagePath = ImagePath; OWCChart.OWCChartFactory mychart = new OWCChartFactory(Title, PhaysicalImagePath, 530, 300, new OWCChartFontStyle()); OWCChart.OWCSeriesClass MyItem = new OWCSeriesClass(); MyItem.SeriesName = "次数"; MyItem.SetDataSource(dt, "Item", "Value"); switch (CharType) { case "Column": mychart.CreateOneColumn("时间", "次", MyItem); break; case "Pie": mychart.CreateSinglePie(MyItem); break; } String imageName = mychart.ExportPictuire(); return(imageName); // Image1.ImageUrl = ".\\"+m_imagePath+imageName; }
public static string CreateSingleBar(DataTable dt,string CharType,string ImagePath,string Title) { String PhaysicalImagePath = ImagePath; OWCChart.OWCChartFactory mychart =new OWCChartFactory(Title,PhaysicalImagePath,500,600,new OWCChartFontStyle()); OWCChart.OWCSeriesClass MyItem = new OWCSeriesClass(); MyItem.SeriesName = "����"; MyItem.SetDataSource(dt,"Item","Value"); mychart.CreateSingleBar(" ","",MyItem); String imageName = mychart.ExportPictuire(); return imageName; }
public static string CreateSingleBar(DataTable dt, string charType, string imagePath, string title) { var phaysicalImagePath = imagePath; var mychart = new OWCChartFactory(title, phaysicalImagePath, 500, 600, new OWCChartFontStyle()); var myItem = new OWCSeriesClass {SeriesName = "次数"}; myItem.SetDataSource(dt, "Item", "Value"); mychart.CreateSingleBar(" ", "", myItem); var imageName = mychart.ExportPictuire(); return imageName; }