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

YAxis.notes.data

configuration

The items of the notes.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        data: [1, 2, 3]
    }],
    yAxis: {
        notes: {
            data: [{
                value: 1.5,
                label: {
                    text: "Min target"
                }
            }, {
                value: 2.5,
                label: {
                    text: "Max target"
                }
            }]
        }
    }
});
</script>

The icon of the note.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        data: [1, 2, 3]
    }],
    yAxis: {
        notes: {
            data: [{
                value: 2,
                icon: {
                    background: "green",
                    type: "square",
                    size: 20
                }
            }]
        }
    }
});
</script>

The label of the note.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        data: [1, 2, 3]
    }],
    yAxis: {
        notes: {
            data: [{
                value: 2,
                label: {
                    text: "Important",
                    background: "yellow",
                    color: "black"
                }
            }]
        }
    }
});
</script>

The line of the note.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        data: [1, 2, 3]
    }],
    yAxis: {
        notes: {
            data: [{
                value: 2,
                line: {
                    color: "red",
                    width: 3,
                    length: 40
                }
            }]
        }
    }
});
</script>

The position of the y axis notes.

  • "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="chart"></div>
<script>
  $("#chart").kendoChart({
    series: [{
      type: "scatter",
      data: [[1, 2], [2, 3]]
    }],
    yAxis: {
      notes: {
        data: [{
          value: 1.3,
          position: "left"
        }]
      }
    }
  });
</script>

The value of the note.

<div id="chart"></div>
<script>
  $("#chart").kendoChart({
    series: [{
      type: "scatter",
      data: [[1, 2], [2, 3]]
    }],
    yAxis: {
      notes: {
        data: [{
          value: 1
        }]
      }
    }
  });
</script>