Skip to main content
Version: 8.1

Chart.js

chart-js.png

Chart.js renders chart elements on an HTML5 canvas unlike other D3.js-based charting libraries that render as SVG. Canvas rendering makes Chart.js very performant, especially for large datasets and complex visualizations that would otherwise require thousands of SVG nodes in the DOM tree.

Properties

NameDescriptionProperty Type
typeChart type.string
dataChart data.object
optionsChart options.object
eventsJavaScript chart events.object
pluginsManually registered pluginsobject
redrawWhen enabled, tear down and redraw chart on every updateboolean
updateModeA mode string to indicate which transition configuration should be usedenum
styleUse styles to customize the visual style of the component. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class.object

Component Configuration

Details on how to configure the component can be found on the Chart.js documentation site. All configurations supported by Chart.js are supported on the Perspective component.

Only configuration details specific to this module are provided here.