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

Title

configuration

The chart title configuration options or text.

title

Object|String
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: "Title",
  series: [
    { data: [1, 2] }
  ]
});
</script>
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    align: "left"
  },
  series: [
    { data: [1, 2] }
  ]
});
</script>

The alignment of the title.

  • "center" - the text is aligned to the middle.
  • "left" - the text is aligned to the left.
  • "right" - the text is aligned to the right.

Default: "center"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    align: "left"
  },
  series: [
    { data: [1, 2] }
  ]
});
</script>

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

Default: "white"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    background: "green"
  },
  series: [
    { data: [1, 2] }
  ]
});
</script>

The border of the title.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    border: {
      color: "green",
      width: 2
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

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

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Chart Title",
    color: "#aa00bb"
  },
  series: [{
     data: [1, 2, 3]
  }]
});
</script>

The accessible description of the Chart. The description is announced by screen readers when the Chart is focused.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Fibonacci numbers",
    description: "A column chart displaying the first 10 Fibonacci numbers",
    position: "bottom"
  },
  series: [
    {
      type: 'column',
      data: [0, 1, 1, 2, 3, 5, 8, 13, 21, 34]
    }
  ]
});
</script>

The font of the title.

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

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    font: "20px sans-serif"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
Number|Object

The margin of the title. A numeric value will set all margins.

Default: 5

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    margin: 10
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
Number|Object

The padding of the title. A numeric value will set all margins.

Default: 5

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    padding: 10
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The position of the title.

  • "bottom" - the title is positioned on the bottom.
  • "top" - the title is positioned on the top.

Default: "top"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    position: "bottom"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The text of the chart title. You can also set the text directly for a title with default options.

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

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    position: "bottom"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

If set to true the chart will display the title. By default the title will be displayed.

Default: true

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  title: {
    text: "Title",
    visible: false
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>