setConfig

sets configuration of a chart

void setConfig(object config);

Parameters

configobjectan object with chart configuration

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 samples

Details

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

See also
Back to top