Skip to content

Vizzu


Vizzu / types/config / Chart

Interface: Chart

The config contains all of the parameters needed to render a particular static chart or a state of an animated chart.

Properties

angle?

optional angle: number

Rotates the plot area to the specified angle in radian. Note: this is an experimental, not tested feature.


caption?

optional caption: null | string

This is the caption shown on the bottom of the chart. If set to null, the caption will not be shown and will not take up any space in the chart layout.


channels?

optional channels: Channels

List of the chart's channels' configuration. The chart object also extends the channels object as a configuration shorthand.


coordSystem?

optional coordSystem: "cartesian" | "polar"

Sets the coordinate system for the chart. Switch to the 'polar' coordinate system to create a chart from the pie/radial chart family.


geometry?

optional geometry: "area" | "circle" | "line" | "rectangle"

Sets the geometric elements used for the markers to represent the data.


legend?

optional legend: null | "auto" | "color" | "size" | "lightness"

Specifies which channel should be shown on the legend. If set to null, the legend will not be shown and will not take up any space in the chart layout. If set to auto, the internal logic will select the most suitable channel for the legend.


orientation?

optional orientation: "auto" | "horizontal" | "vertical"

If both axes have measures on them, this parameter sets the orientation of the chart, meaning to which axis the graphical elements are oriented to.


subtitle?

optional subtitle: null | string

This is the subtitle shown on the top of the chart under the title. If set to null, the subtitle will not be shown and will not take up any space in the chart layout.


title?

optional title: null | string

This is the title shown on the top of the chart. If set to null, the title will not be shown and will not take up any space in the chart layout.


tooltip?

optional tooltip: null | string

Unique identifier of the marker, the tooltip should be turned on. This parameter is not needed to set manually, tooltip will be taken care of automatically when tooltip feature is enabled.