Skip to main content

setConfig()

sets configuration of a chart

setConfig(config: IChartConfig): void;

Parameters:

config: object - an object with chart configurations

Example

var 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.