Exemple #1
0
        private static PlotlyChart BuildPlotlyChart(string chartTitle, IEnumerable <Graph.Trace> traces)
        {
            PlotlyChart chart = Chart.Plot(traces);

            var layout = new Layout.Layout {
                title = chartTitle
            };

            chart.WithLayout(layout);
            chart.Width  = 800;
            chart.Height = 500;
            chart.WithXTitle("Date");
            chart.WithYTitle("Value");
            chart.WithLegend(true);

            return(chart);
        }
        private static PlotlyChart BuildChart(string groupName, IEnumerable <Graph.Histogram> traces)
        {
            PlotlyChart chart = Chart.Plot(traces);

            var layout = new Layout.Layout
            {
                title   = $"{groupName} RMSE",
                barmode = "overlay"
            };

            chart.WithLayout(layout);
            chart.Width  = 800;
            chart.Height = 500;
            chart.WithLegend(true);

            return(chart);
        }