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({
    dataSource: {
        data: [
            { date: "2012/01/01", open: 10, high: 15, low: 8, close: 12, volume: 1000 },
            { date: "2012/01/02", open: 12, high: 18, low: 10, close: 16, volume: 1500 },
            { date: "2012/01/03", open: 16, high: 20, low: 14, close: 18, volume: 2000 }
        ]
    },
    dateField: "date",
    categoryAxis: {
        notes: {
            data: [
                { value: new Date("2012/01/01"), text: "Start date" },
                { value: new Date("2012/01/03"), text: "End date" }
            ]
        }
    },
    series: [{
        type: "candlestick",
        openField: "open",
        highField: "high",
        lowField: "low",
        closeField: "close"
    }]
});
</script>

The icon of the note.

<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>

The label of the note.

<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),
                label: {
                    text: "Important Point",
                    background: "yellow",
                    border: { width: 1, color: "black" },
                    color: "black",
                    font: "12px Arial",
                    visible: true
                }
            }]
        }
    },
    series: [{
        field: "value",
        categoryField: "date"
    }]
});
</script>

The line of the note.

<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),
                line: {
                    width: 3,
                    color: "red",
                    length: 25
                }
            }]
        }
    },
    series: [{
        field: "value",
        categoryField: "date"
    }]
});
</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.
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: "2012/01/01", open: 10, high: 15, low: 8, close: 12, volume: 1000 },
            { date: "2012/01/02", open: 12, high: 18, low: 10, close: 16, volume: 1500 }
        ]
    },
    dateField: "date",
    categoryAxis: {
        notes: {
            data: [
                { value: new Date("2012/01/01"), text: "Start date", position: "top" }
            ]
        }
    },
    series: [{
        type: "candlestick",
        openField: "open",
        highField: "high",
        lowField: "low",
        closeField: "close"
    }]
});
</script>
  • "right" - The note is positioned on the right.

The value of the note.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: "2012/01/01", open: 10, high: 15, low: 8, close: 12, volume: 1000 },
            { date: "2012/01/02", open: 12, high: 18, low: 10, close: 16, volume: 1500 }
        ]
    },
    dateField: "date",
    categoryAxis: {
        notes: {
            data: [
                { value: new Date("2012/01/01"), text: "Start date" }
            ]
        }
    },
    series: [{
        type: "candlestick",
        openField: "open",
        highField: "high",
        lowField: "low",
        closeField: "close"
    }]
});
</script>