public static string generateBarChart(Xport.AnyChart.data Data) { var chart3d = new Histogram3DChart(400, 300, 0, 25, Path.Combine(_localpath, @"ProjectFLX\Documents\styles.xml"), "default"); chart3d.setChartTemplate(Path.Combine(_localpath, @"ProjectFLX\Documents\Charts.xsl")); chart3d.IncludeLegend = false; chart3d.WithGuideLines = false; chart3d.Shade3D = true; chart3d.ColumnGap = 50; chart3d.ColumnGroupCount = 2; chart3d.Stacked = false; var svg = chart3d.GenerateChart(Data); return ProjectFlx.Schema.Helper.StripXmlDecleration(svg.OuterXml); }
public static string generateBarChart(Xport.AnyChart.data Data) { var chart3d = new Histogram3DChart(400, 300, 0, 25, Path.Combine(_localpath, @"ProjectFLX\Documents\styles.xml"), "default"); chart3d.setChartTemplate(Path.Combine(_localpath, @"ProjectFLX\Documents\Charts.xsl")); chart3d.IncludeLegend = false; chart3d.WithGuideLines = false; chart3d.Shade3D = true; chart3d.ColumnGap = 50; chart3d.ColumnGroupCount = 2; chart3d.Stacked = false; var svg = chart3d.GenerateChart(Data); return(ProjectFlx.Schema.Helper.StripXmlDecleration(svg.OuterXml)); }
/// <summary> /// Gets the SVG histogram. /// </summary> /// <param name="model">The histogram model</param> /// <param name="is3D">if set to <c>true</c> it will be 3D</param> /// <param name="depth">The depth.</param> /// <returns></returns> public static String GetSVGHistogram(this histogramModel model, Boolean is3D = false, short depth = 10) { if (!is3D) { HistogramChart output = new HistogramChart(500, 360, model.targetBins); XmlDocument xml = output.GenerateChart(model.GetDataTableForFrequencies(), histogramModel.DEFAULT_COLUMN_NAME, histogramModel.DEFAULT_COLUMN_VALUE); return(xml.OuterXml); } else { Histogram3DChart output = new Histogram3DChart(500, 360, model.targetBins, depth); XmlDocument xml = output.GenerateChart(model.GetDataTableForFrequencies(), histogramModel.DEFAULT_COLUMN_NAME, histogramModel.DEFAULT_COLUMN_VALUE); return(xml.OuterXml); } }