backgroundVisualkendo.drawing.MultiPath

The drawing MultiPath used to draw the background.

Example

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    dataSource: {
        data: [
            { category: "A", value: 10 },
            { category: "B", value: 20 },
            { category: "C", value: 30 }
        ]
    },
    categoryAxis: {
        field: "category"
    },
    series: [{
        field: "value"
    }],
    render: function(e) {
        var chart = e.sender;
        var plotArea = chart.plotArea;
        
        // Access the background visual (MultiPath)
        console.log("Background visual:", plotArea.backgroundVisual);
        
        // Example: Change background color
        if (plotArea.backgroundVisual) {
            plotArea.backgroundVisual.stroke({
                color: "#ff0000",
                width: 2
            });
        }
    }
});
</script>
In this article
backgroundVisual
Not finding the help you need?
Contact Support