resize

Adjusts the chart layout to match the size of the container.

Example

<div id="chart" style="width: 400px;"></div>
<script>
$("#chart").kendoChart({
  series: [
    { type: "line", data: [1, 2] }
  ]
});

$("#chart").css("width", "800px")
           .data("kendoChart").resize();
</script>

Parameters

force Boolean optional

Defines whether the widget should proceed with resizing even if the element dimensions have not changed.

In this article