categoryAxis.notes.data.iconObject
The icon of the note.
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 }
]
},
categoryAxis: {
notes: {
data: [{
value: new Date(2023, 0, 2),
icon: {
background: "red",
border: { width: 2, color: "black" },
size: 20,
type: "circle",
visible: true
}
}]
}
},
series: [{
field: "value",
categoryField: "date"
}]
});
</script>
categoryAxis.notes.data.icon.backgroundString
The background color of the note icon.
Example - set the category axis note icon background
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
background: "red"
}
}]
}
}
});
</script>
categoryAxis.notes.data.icon.borderObject
The border of the icon.
Example - set the category axis note icon border
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
border: {
width: 2,
color: "red"
}
}
}]
}
}
});
</script>
categoryAxis.notes.data.icon.border.colorString
The border color of the icon.
Example - set the category axis note icon border color
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
border: {
width: 2,
color: "red"
}
}
}]
}
}
});
</script>
categoryAxis.notes.data.icon.border.widthNumber
The border width of the icon.
Example - set the category axis note icon border width
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
border: {
width: 2,
color: "red"
}
}
}]
}
}
});
</script>
categoryAxis.notes.data.icon.sizeNumber
The size of the icon.
Example - set the category axis note icon size
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
size: 30
}
}]
}
}
});
</script>
categoryAxis.notes.data.icon.typeString(default: "circle")
The icon 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.
Example - set the category axis note icon shape
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
shape: "triangle"
}
}]
}
}
});
</script>
categoryAxis.notes.data.icon.visibleBoolean(default: "true")
The icon visibility.
Example - set the category axis note icon visibility
<div id="chart"></div>
<script>
$("#chart").kendoChart({
series: [{
data: [1, 2, 3]
}],
categoryAxis: {
notes: {
data: [{
value: 1,
icon: {
visible: false
}
}]
}
}
});
</script>