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

Subtitle.margin

configuration

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

subtitle.margin

Number|Object

Default: 5

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

The bottom margin of the subtitle.

Default: 0

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

The left margin of the subtitle.

Default: 0

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

The right margin of the subtitle.

Default: 0

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

The top margin of the subtitle.

Default: 0

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