renderAsString
Sets the preferred rendering engine. If it is not supported by the browser, the Sparkline 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
<span id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
renderAs: "canvas",
type: "column",
data: [1, 2, 3, 4]
});
</script>
In this article