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

Legend.title.margin

configuration

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

legend.title.margin

Number|Object

Default: 5

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

The bottom margin of the title.

Default: 0

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

The left margin of the title.

Default: 0

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

The right margin of the title.

Default: 0

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

The top margin of the title.

Default: 0

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