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

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

Default: 5

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    plotBands: [{
      from: 1.5,
      to: 2.5,
      label: {
        text: "With margin",
        margin: 15
      }
    }]
  },
  series: [
    { data: [1, 2, 3, 4, 5] }
  ]
});
</script>

The bottom margin of the label.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    plotBands: [{
      from: 1.5,
      to: 2.5,
      label: {
        text: "Bottom margin",
        margin: { bottom: 20 }
      }
    }]
  },
  series: [
    { data: [1, 2, 3, 4, 5] }
  ]
});
</script>

The left margin of the label.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    plotBands: [{
      from: 1.5,
      to: 2.5,
      label: {
        text: "Left margin",
        margin: { left: 30 }
      }
    }]
  },
  series: [
    { data: [1, 2, 3, 4, 5] }
  ]
});
</script>

The right margin of the label.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    plotBands: [{
      from: 1.5,
      to: 2.5,
      label: {
        text: "Right margin",
        margin: { right: 25 }
      }
    }]
  },
  series: [
    { data: [1, 2, 3, 4, 5] }
  ]
});
</script>

The top margin of the label.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  xAxis: {
    plotBands: [{
      from: 1.5,
      to: 2.5,
      label: {
        text: "Top margin",
        margin: { top: 20 }
      }
    }]
  },
  series: [
    { data: [1, 2, 3, 4, 5] }
  ]
});
</script>