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

YAxis.title.margin

configuration

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

yAxis.title.margin

Number|Object

Default: 5

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  yAxis: [{
    title: {
      text: "Years",
      margin: 20
    }
  }],
  series: [
    { type: "scatter", data: [[1, 2]] }
  ]
});
</script>

The bottom margin of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  yAxis: [{
    title: {
      text: "Years",
      margin: {
        bottom: 20
      }
    }
  }],
  series: [
    { type: "scatter", data: [[1, 2]] }
  ]
});
</script>

The left margin of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  yAxis: [{
    title: {
      text: "Years",
      margin: {
        left: 20
      }
    }
  }],
  series: [
    { type: "scatter", data: [[1, 2]] }
  ]
});
</script>

The right margin of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  yAxis: [{
    title: {
      text: "Years",
      margin: {
        right: 20
      }
    }
  }],
  series: [
    { type: "scatter", data: [[1, 2]] }
  ]
});
</script>

The top margin of the title.

Default: 0

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  yAxis: [{
    title: {
      text: "Years",
      margin: {
        top: 20
      }
    }
  }],
  series: [
    { type: "scatter", data: [[1, 2]] }
  ]
});
</script>