public static string Flot(this HtmlHelper html, string placeholder, System.Action <FlotChart> populateChart) { var chart = new FlotChart(placeholder); populateChart(chart); return(chart.ToJson()); }
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(); }
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(); }
public static string Flot(this HtmlHelper html, string placeholder, System.Action<FlotChart> populateChart) { var chart = new FlotChart(placeholder); populateChart(chart); return chart.ToJson(); }
public void BasicChartTest() { var chart = new FlotChart("test"); chart.ToJson(); }
public void BasicChartTest() { var chart = new FlotChart("test"); chart.ToJson(); }