Example #1
0
 /// <summary>
 /// Creates a new instance of a razor chart of the given type with the specified
 /// ID.
 /// </summary>
 /// <param name="id">The Unique ID of this chart.</param>
 /// <param name="chartType">The type of chart to create.</param>
 public RazorChart(string id, RazorChartType chartType)
     : base(id)
 {
     this.HtmlTag         = "div";
     this.IncludeIdInHtml = true;
     this.Type            = chartType;
     this.Library         = "morris";
 }
Example #2
0
 internal RazorLineChart(RazorChartType chartType)
     : base(chartType)
 {
     this.HtmlTag         = "div";
     this.IncludeIdInHtml = true;
 }
Example #3
0
 /// <summary>
 /// Creates an instance of a Series Chart with
 /// the specified ID.
 /// </summary>
 /// <param name="id">The Unique ID of this chart.</param>
 /// <param name="chartType">The type of chart to create.</param>
 public RazorSeriesChart(string id, RazorChartType chartType)
     : base(id, chartType)
 {
     this.HtmlTag         = "div";
     this.IncludeIdInHtml = true;
 }