Edit this page

panes.margin Number |Object (default: 0)

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

Example - set the chart pane margin as a number

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1, 2, 3] },
    { data: [1, 2, 3, 4], axis: "bottom" }
  ],
  valueAxis: [
    { pane: "top-pane" },
    { pane: "bottom-pane", name: "bottom" }
  ],
  panes: [
    { name: "top-pane", margin: 10 },
    { name: "bottom-pane", margin: 10 }
  ]
});
</script>

panes.margin.bottom Number (default: 0)

The bottom margin of the chart panes.

Example - set the chart pane bottom margin

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1, 2, 3] },
    { data: [1, 2, 3, 4], axis: "bottom" }
  ],
  valueAxis: [
    { pane: "top-pane" },
    { pane: "bottom-pane", name: "bottom" }
  ],
  panes: [
    {
      name: "top-pane",
      margin: {
        bottom: 10
      }
    },
    {
      name: "bottom-pane",
      margin: {
        bottom: 10
      }
    }
  ]
});
</script>

panes.margin.left Number (default: 0)

The left margin of the chart panes.

Example - set the chart pane left margin

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1, 2, 3] },
    { data: [1, 2, 3, 4], axis: "bottom" }
  ],
  valueAxis: [
    { pane: "top-pane" },
    { pane: "bottom-pane", name: "bottom" }
  ],
  panes: [
    {
      name: "top-pane",
      margin: {
        left: 10
      }
    },
    {
      name: "bottom-pane",
      margin: {
        left: 10
      }
    }
  ]
});
</script>

panes.margin.right Number (default: 0)

The right margin of the chart panes.

Example - set the chart pane right margin

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1, 2, 3] },
    { data: [1, 2, 3, 4], axis: "bottom" }
  ],
  valueAxis: [
    { pane: "top-pane" },
    { pane: "bottom-pane", name: "bottom" }
  ],
  panes: [
    {
      name: "top-pane",
      margin: {
        right: 10
      }
    },
    {
      name: "bottom-pane",
      margin: {
        right: 10
      }
    }
  ]
});
</script>

panes.margin.top Number (default: 0)

The top margin of the chart panes.

Example - set the chart pane top margin

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    { data: [1, 2, 3] },
    { data: [1, 2, 3, 4], axis: "bottom" }
  ],
  valueAxis: [
    { pane: "top-pane" },
    { pane: "bottom-pane", name: "bottom" }
  ],
  panes: [
    {
      name: "top-pane",
      margin: {
        top: 10
      }
    },
    {
      name: "bottom-pane",
      margin: {
        top: 10
      }
    }
  ]
});
</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