New to Kendo UI for jQuery? Start a free 30-day trial

The items of the notes.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/15"),
                    text: "Important event"
                }, {
                    value: new Date("2012/01/25"),
                    text: "Another event"
                }]
            }
        }
    },
    dataSource: {
        data: [
            { date: new Date("2012/01/01"), value: 1 },
            { date: new Date("2012/01/15"), value: 2 },
            { date: new Date("2012/02/01"), value: 3 }
        ]
    },
    dateField: "date",
    valueField: "value"
});
</script>

The icon of the note.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/15"),
                    icon: {
                        background: "red",
                        size: 15,
                        type: "circle"
                    },
                    text: "Note"
                }]
            }
        }
    },
    dataSource: {
        data: [
            { date: new Date("2012/01/01"), value: 1 },
            { date: new Date("2012/01/15"), value: 2 },
            { date: new Date("2012/02/01"), value: 3 }
        ]
    },
    dateField: "date",
    valueField: "value"
});
</script>

The label of the note.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    label: {
                        text: "Important Date"
                    }
                }]
            }
        }
    }
});
</script>

The line of the note.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/01"),
                    line: {
                        width: 2,
                        color: "red",
                        length: 20
                    }
                }]
            }
        }
    }
});
</script>

The position of the category axis note.

  • "top" - The note is positioned on the top.
  • "bottom" - The note is positioned on the bottom.
  • "left" - The note is positioned on the left.
  • "right" - The note is positioned on the right.

Default: "inside"

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/15"),
                    position: "top",
                    text: "Top positioned note"
                }]
            }
        }
    },
    dataSource: {
        data: [
            { date: new Date("2012/01/01"), value: 1 },
            { date: new Date("2012/01/15"), value: 2 },
            { date: new Date("2012/02/01"), value: 3 }
        ]
    },
    dateField: "date",
    valueField: "value"
});
</script>

The value of the note.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    navigator: {
        categoryAxis: {
            notes: {
                data: [{
                    value: new Date("2012/01/15"),
                    text: "Event at this date"
                }]
            }
        }
    },
    dataSource: {
        data: [
            { date: new Date("2012/01/01"), value: 1 },
            { date: new Date("2012/01/15"), value: 2 },
            { date: new Date("2012/02/01"), value: 3 }
        ]
    },
    dateField: "date",
    valueField: "value"
});
</script>