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

Subtitle

configuration

The chart subtitle configuration options or text.

subtitle

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

The alignment of the subtitle.

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

By default, the subtitle has the same alignment as the title.

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

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

Default: "white"

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

The border of the subtitle.

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

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

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

The font of the title.

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

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

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

Default: 5

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

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

Default: 5

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

The position of the subtitle.

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

By default, the subtitle is placed in the same position as the title.

Default: "top"

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

The text of the chart subtitle. 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"
  },
  subtitle: {
    text: "Subtitle",
    position: "bottom"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

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

Default: true

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