getTemplate
returns a template function for sparklines in a cell
function getTemplate( [string|object config] );
config | string|object | sparkline type or an object with configuration options |
function | a function that generates an HTML string for visualizing sparklines within a cell |
Example
// no params - return "line" sparklines
webix.Sparklines.getTemplate();
// get a template function for a different sparkline type
webix.Sparklines.getTemplate("area");
// get a template function for a different sparkline type with custom options
webix.Sparklines.getTemplate({ type: "bar", paddingY: 0 });
Related samples
See also
Back to top