legend.item.markers.typeString|Function
The markers shape.
The supported values are:
- "circle" - the marker shape is circle.
- "square" - the marker shape is square.
- "triangle" - the marker shape is triangle.
- "cross" - the marker shape is cross.
- "rect" - alias for "square".
- "roundedRect" - the marker shape is a rounded rectangle.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date(2023, 0, 1), value: 100 },
{ date: new Date(2023, 0, 2), value: 105 },
{ date: new Date(2023, 0, 3), value: 98 }
]
},
legend: {
item: {
markers: {
type: "triangle"
}
}
},
series: [{
field: "value",
categoryField: "date",
name: "Stock Price"
}]
});
</script>
In this article