C# Class EnterpriseWebLibrary.EnterpriseWebFramework.Chart

A control capable of displaying chart data. Currently implemented with Chart.js.
Inheritance: System.Web.UI.WebControls.WebControl, ControlTreeDataLoader, ControlWithJsInitLogic
Datei anzeigen Open project: enduracode/enterprise-web-library

Public Methods

Method Description
Chart ( ChartSetup setup, EnterpriseWebLibrary.EnterpriseWebFramework.DataSeries series, Color color = null ) : System

Creates a chart displaying a supported ChartType with the given data. Includes a chart and a table, and allows exporting the data to CSV.

Chart ( ChartSetup setup, IEnumerable seriesCollection, IEnumerable colors = null ) : System

Creates a chart displaying a supported ChartType with the given data. Includes a chart and a table, and allows exporting the data to CSV. Assuming seriesCollection has multiple elements, draws multiple sets of Y values on the same chart.

Private Methods

Method Description
ControlTreeDataLoader ( ) : void
ControlWithJsInitLogic ( ) : string
getDefaultColors ( ) : IEnumerable
getExportButton ( IEnumerable headers, List tableData ) : EnterpriseWebLibrary.EnterpriseWebFramework.Controls.Block

Method Details

Chart() public method

Creates a chart displaying a supported ChartType with the given data. Includes a chart and a table, and allows exporting the data to CSV.
public Chart ( ChartSetup setup, EnterpriseWebLibrary.EnterpriseWebFramework.DataSeries series, Color color = null ) : System
setup ChartSetup The setup object for the chart.
series EnterpriseWebLibrary.EnterpriseWebFramework.DataSeries The data series.
color Color The color to use for the data series.
return System

Chart() public method

Creates a chart displaying a supported ChartType with the given data. Includes a chart and a table, and allows exporting the data to CSV. Assuming seriesCollection has multiple elements, draws multiple sets of Y values on the same chart.
public Chart ( ChartSetup setup, IEnumerable seriesCollection, IEnumerable colors = null ) : System
setup ChartSetup The setup object for the chart.
seriesCollection IEnumerable The data series collection.
colors IEnumerable The colors to use for the data series collection. Pass null for default colors. If you specify your own colors, the number of /// colors does not need to match the number of series. If you pass fewer colors than series, the chart will use random colors for the remaining series. ///
return System