Example #1
0
        public static string Flot(this HtmlHelper html, string placeholder, System.Action <FlotChart> populateChart)
        {
            var chart = new FlotChart(placeholder);

            populateChart(chart);
            return(chart.ToJson());
        }
Example #2
0
        public void Test1()
        {
            var chart = new FlotChart("test")
                .AddSeries( options => options.Lines( lines => lines.Fill(true).LineWidth(3)) )
                .AddSeries(options => options.Lines(lines => lines.Fill(true).LineWidth(3)))
                .Options( options => options
                    .Lines( lines => lines
                        .Fill(true)
                        .FillColor("#222222")
                    )
                );

            string json = chart.ToJson();
        }
Example #3
0
        public void Test1()
        {
            var chart = new FlotChart("test")
                        .AddSeries(options => options.Lines(lines => lines.Fill(true).LineWidth(3)))
                        .AddSeries(options => options.Lines(lines => lines.Fill(true).LineWidth(3)))
                        .Options(options => options
                                 .Lines(lines => lines
                                        .Fill(true)
                                        .FillColor("#222222")
                                        )
                                 );

            string json = chart.ToJson();
        }
Example #4
0
 public static string Flot(this HtmlHelper html, string placeholder, System.Action<FlotChart> populateChart)
 {
     var chart = new FlotChart(placeholder);
     populateChart(chart);
     return chart.ToJson();
 }
Example #5
0
 public void BasicChartTest()
 {
     var chart = new FlotChart("test");
     chart.ToJson();
 }
Example #6
0
        public void BasicChartTest()
        {
            var chart = new FlotChart("test");

            chart.ToJson();
        }