New to Kendo UI for jQueryStart a free 30-day trial

The label of the notes.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        type: "column",
        data: [1, 2, 3],
        notes: {
            data: [{
                value: 2,
                text: "Peak"
            }]
        }
    }],
    seriesDefaults: {
        notes: {
            label: {
                background: "#ff6800",
                color: "#fff"
            }
        }
    }
});
</script>

The background color of the label. Accepts a valid CSS color string, including hex and rgb.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
        background: "red"
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

The border of the label.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
        border: {
          color: "green",
          dashType: "dashDot",
          width: 1
        }
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

The text color of the label. Accepts a valid CSS color string, including hex and rgb.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
        color: "#aa00bb"
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

The font style of the label.

Default: "12px Arial,Helvetica,sans-serif"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
         font: "20px sans-serif"
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

The format used to display the notes label. Uses kendo.format. Contains one placeholder ("{0}") which represents the axis value.

Default: "{0}"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
         format: "value slot: {0}"
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

The position of the labels.

  • "inside" - the label is positioned inside of the icon.
  • "outside" - the label is positioned outside of the icon.

Default: "inside"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    series: [{
        type: "column",
        data: [1, 2, 3],
        notes: {
            data: [{
                value: 2,
                text: "Peak"
            }]
        }
    }],
    seriesDefaults: {
        notes: {
            label: {
                position: "outside"
            }
        }
    }
});
</script>

The rotation angle of the label. By default the label are not rotated.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
        rotation: 90
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

The template which renders the labels.

The fields which can be used in the template are:

  • value - the point value

The text can be split into multiple lines by using line feed characters ("\n").

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
         template: "Year: #: value #"
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>

If set to true the chart will display the seriesDefaults notes label. By default the seriesDefaults notes label are visible.

Default: true

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  dataSource: {
    data: [{
      value: 1,
      noteText: "A"
    }]
  },
  seriesDefaults: {
    notes: {
      label: {
         visible: false
      }
    }
  },
  series: [{
    field: "value",
    noteTextField: "noteText"
  }]
});
</script>