Edit this page

seriesDefaults.labels.margin Number |Object (default: 0)

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

Example - set the chart series label margin as a number

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

seriesDefaults.labels.margin.bottom Number (default: 0)

The bottom margin of the labels.

Example - set the chart series label bottom margin

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

seriesDefaults.labels.margin.left Number (default: 0)

The left margin of the labels.

Example - set the chart series label left margin

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

seriesDefaults.labels.margin.right Number (default: 0)

The right margin of the labels.

Example - set the chart series label right margin

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

seriesDefaults.labels.margin.top Number (default: 0)

The top margin of the labels.

Example - set the chart series label top margin

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  seriesDefaults: {
    labels: {
      margin: {
        top: 10
      }
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy