renderAs String

Sets the preferred rendering engine. If it is not supported by the browser, the Chart will switch to the first available mode.

The supported values are:

  • "svg" - renders the widget as inline SVG document, if available
  • "canvas" - renders the widget as a Canvas element, if available.

Example - Render as Canvas, if supported

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    renderAs: "canvas",
    series: [{
      type: "line",
      field: "value",
      categoryField: "date",
      data: [
        { value: 1, date: new Date(2012, 1, 1) },
        { value: 2, date: new Date(2012, 1, 2) }
      ]
    }]
});
</script>
In this article
Not finding the help you need? Improve this article