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

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

Default: 5

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  legend: {
    title: {
      text: "Legend",
      padding: {
        top: 8,
        bottom: 8,
        left: 12,
        right: 12
      }
    }
  },
  series: [
    { name: "Series 1", data: [1, 2, 3] },
    { name: "Series 2", data: [4, 5, 6] }
  ]
});
</script>

The bottom padding of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  legend: {
    title: {
      text: "Legend",
      padding: {
        bottom: 10
      }
    }
  },
  series: [
    { name: "Series 1", data: [1, 2, 3] },
    { name: "Series 2", data: [4, 5, 6] }
  ]
});
</script>

The left padding of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  legend: {
    title: {
      text: "Legend",
      padding: {
        left: 20
      }
    }
  },
  series: [
    { name: "Series 1", data: [1, 2, 3] },
    { name: "Series 2", data: [4, 5, 6] }
  ]
});
</script>

The right padding of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  legend: {
    title: {
      text: "Legend",
      padding: {
        right: 18
      }
    }
  },
  series: [
    { name: "Series 1", data: [1, 2, 3] },
    { name: "Series 2", data: [4, 5, 6] }
  ]
});
</script>

The top padding of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  legend: {
    title: {
      text: "Legend",
      padding: {
        top: 12
      }
    }
  },
  series: [
    { name: "Series 1", data: [1, 2, 3] },
    { name: "Series 2", data: [4, 5, 6] }
  ]
});
</script>