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

YAxis.labels.margin

configuration

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

yAxis.labels.margin

Number|Object

Default: 0

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

The bottom margin of the labels.

Default: 0

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

The left margin of the labels.

Default: 0

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

The right margin of the labels.

Default: 0

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

The top margin of the labels.

Default: 0

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