Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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>");
     }
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public static void GenerateSimpleComparisonGraph(string[] dataNames, DenseMatrix data, string filename)
 {
     Highcharts.Highcharts chart = new Highcharts.Highcharts("chart3535");
     chart.WriteHighChartToFile(filename);
 }
Exemplo n.º 5
0
 public static void GenerateSimpleComparisonGraph(string[] dataNames, DenseMatrix data, string filename)
 {
     Highcharts.Highcharts chart = new Highcharts.Highcharts("chart3535");
     chart.WriteHighChartToFile(filename);
 }
Exemplo n.º 6
0
        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);
        }
Exemplo n.º 7
0
        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);
        }