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

Series.notes

configuration

The series notes configuration.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: "2013/01/01", value: 40 },
            { date: "2013/01/02", value: 42 }
        ]
    },
    series: [{
        field: "value",
        notes: {
            data: [{
                value: 41,
                position: "top"
            }]
        }
    }],
    categoryAxis: {
        field: "date"
    }
});
</script>

The icon of the notes.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [
            { date: "2013/01/01", value: 40 },
            { date: "2013/01/02", value: 42 }
        ]
    },
    series: [{
        field: "value",
        notes: {
            icon: {
                background: "red",
                type: "circle",
                size: 15
            },
            data: [{
                value: 41
            }]
        }
    }],
    categoryAxis: {
        field: "date"
    }
});
</script>

The label of the notes.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    series: [{
        type: "candlestick",
        data: [[new Date(2023, 0, 1), 100, 110, 95, 105]],
        notes: {
            data: [{
                value: new Date(2023, 0, 1),
                label: {
                    text: "Important note",
                    position: "top"
                }
            }]
        }
    }]
});
</script>

The line of the notes.

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    series: [{
        type: "candlestick",
        data: [[new Date(2023, 0, 1), 100, 110, 95, 105]],
        notes: {
            data: [{
                value: new Date(2023, 0, 1),
                line: {
                    width: 2,
                    color: "#ff0000"
                }
            }]
        }
    }]
});
</script>

The position of the series 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: "2013/01/01", value: 40 },
            { date: "2013/01/02", value: 42 }
        ]
    },
    series: [{
        field: "value",
        notes: {
            position: "top",
            data: [{
                value: 41
            }]
        }
    }],
    categoryAxis: {
        field: "date"
    }
});
</script>