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

XAxis.notes.data

configuration

The items of the notes.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    notes: {
      data: [
        { value: 1, label: { text: "First" } },
        { value: 3, label: { text: "Third" } }
      ]
    }
  },
  series: [
    { type: "line", data: [1, 2, 3, 4] }
  ]
});
</script>

The icon of the note.

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

The label of the note.

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

The line of the note.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    notes: {
      data: [
        { 
          value: 1, 
          line: {
            width: 3,
            color: "blue",
            dashType: "dash"
          }
        }
      ]
    }
  },
  series: [
    { type: "line", data: [1, 2, 3, 4] }
  ]
});
</script>

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

The value of the note.

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