background preloader

Chart.js Documentation

Chart.js Documentation
Chart.js provides a number of options for changing the behaviour of created charts. These configuration options can be changed on a per chart basis by passing in an options object when creating the chart. Alternatively, the global configuration can be changed which will be used by all charts created after that point. Chart Data To display data, the chart must be passed a data object that contains all of the information needed by the chart. Creating a Chart with Options To create a chart with configuration options, simply pass an object containing your configuration to the constructor. Global Configuration This concept was introduced in Chart.js 1.0 to keep configuration DRY, and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type. Chart.js merges the options object passed to the chart with the global configuration using chart type defaults and scales defaults appropriately. Example Usage

Cesium - WebGL Virtual Globe and Map Engine Flot: Attractive JavaScript plotting for jQuery

Related: