series.nameString
The series name.
The name can also be a template which sets the name of the series when bound to grouped data source.
The fields which can be used in the template are:
- series - the series options
- group - the data group
- group.field - the name of the field used for grouping
- group.value - the field value for this group.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
series: [{
name: "Sales Data",
data: [10, 15, 8, 12]
}]
});
</script>