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

Subtitle.padding

configuration

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

subtitle.padding

Number|Object

Default: 5

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

The bottom padding of the subtitle.

Default: 0

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

The left padding of the subtitle.

Default: 0

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

The right padding of the subtitle.

Default: 0

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

The top padding of the subtitle.

Default: 0

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