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 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; }