public static void GenerateBarGraph(this DenseVector d, string[] categories, string filename) { Highcharts.Highcharts chart = new Highcharts.Highcharts("chart3535").SetSeries(new Series { Data = new Data(d.VectorToPointArray()) }); chart.WriteHighChartToFile(filename); }
public static void WriteHighChartToFile(this Highcharts.Highcharts chart, string filename) { using (var file = new StreamWriter(@filename)) { file.WriteLine("<html><head>"); foreach (string s in HighChartsIncludes) { file.WriteLine(s); } file.WriteLine("</head><body>"); file.WriteLine(chart.ToHtmlString().Replace("NaN", "null")); file.WriteLine("</body></html>"); } }
public static void GenerateSimpleGraph(this DenseVector d, string filename) { Highcharts.Highcharts chart = new Highcharts.Highcharts("chart3535") .SetSeries(new Series { Data = new Data(d.VectorToPointArray()) }) .SetPlotOptions(new PlotOptions { Series = new PlotOptionsSeries { Marker = new PlotOptionsSeriesMarker { Enabled = false }, TurboThreshold = 0 } }) .InitChart(new Chart { ZoomType = ZoomTypes.X, Type = ChartTypes.Spline }) ; chart.WriteHighChartToFile(filename); }
public static void GenerateSimpleComparisonGraph(string[] dataNames, DenseMatrix data, string filename) { Highcharts.Highcharts chart = new Highcharts.Highcharts("chart3535"); chart.WriteHighChartToFile(filename); }
public static void GenerateSimpleGraph(this DenseVector d, string filename) { Highcharts.Highcharts chart = new Highcharts.Highcharts("chart3535") .SetSeries(new Series { Data = new Data(d.VectorToPointArray()) }) .SetPlotOptions(new PlotOptions { Series = new PlotOptionsSeries {Marker = new PlotOptionsSeriesMarker {Enabled = false}, TurboThreshold = 0} }) .InitChart(new Chart {ZoomType = ZoomTypes.X, Type = ChartTypes.Spline}) ; chart.WriteHighChartToFile(filename); }