Skip to main content

ChartJS

Namespace: Wisej.Web.Ext.ChartJS

Assembly: Wisej.Web.Ext.ChartJS

ChartJS is a simple yet flexible JavaScript charting for designers and developers from http://www.chartjs.org/.

public class ChartJS : Widget

Constructors

Instance memberChartJS()

Constructs a new instance of the ChartJS control.

Properties

Instance memberChartType

ChartType: Returns or sets the ChartType. (Default: Line)

Instance memberDataSets

DataSetCollection: Returns or sets the data sets to plot the chart.

Instance memberInitScript

String: Overridden to create our initialization script.

Instance memberLabels

String[]: Returns or sets the labels for the data points.

Instance memberOptions

Options: Chart options specific for the value of ChartType. (Default: null)

Instance memberPackages

List<Package>: Overridden to return our list of script resources.

Methods

Instance memberGetImage(callback)

Returns the chart as a PNG image.

ParameterTypeDescription
callbackAction<Image>Callback method that receives the image.

Instance memberGetImageAsync()

Returns the chart as a PNG image.

Returns: Task<Image>. An Image with a representation of the chart.

Instance memberUpdateData(duration)

Causes the chart to update the data set and labels. It performs a smooth animated transition from one data set to the new one.

ParameterTypeDescription
durationInt32Duration of the update animation in milliseconds. The default is 300 milliseconds.

Events

Instance memberChartClick

ChartClickEventHandler Fired when the user clicks a data point on the chart.