Skip to main content

setConfig()

sets configuration of a chart

setConfig(config: object): void;

Parameters:

  • config: object - an object with chart configurations

Example

const config = {
type: "radar",
scales: {
radial:{
value: "month",
maxTicks: 7
}
},
series: [
{
id: "A",
value: "company A",
fill: "#000000",
alpha: 0.3,
color: "#000000"
},
{
id: "B",
value: "company B",
fill: "#FFFF33",
alpha: 0.3,
color: "#FFFF33"
}
]
}

chart.setConfig(config);

Related sample: Chart. Change configuration on the fly

See the list of chart configuration properties in the Configuration article.