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

Panes.title.margin

configuration

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

panes.title.margin

Number|Object

Default: 5

<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",
      title: {
        text: "Top",
        margin: 10
      }
    },
    { name: "bottom-pane",
      title: {
        text: "Bottom",
        margin: 10
      }
    }
  ]
});
</script>

The bottom margin of the title.

Default: 0

<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",
      title: {
        text: "Top",
        margin: {
          bottom: 10
        }
      }
    },
    { name: "bottom-pane",
      title: {
        text: "Bottom",
        margin: {
          bottom: 10
        }
      }
    }
  ]
});
</script>

The left margin of the title.

Default: 0

<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",
      title: {
        text: "Top",
        margin: {
          left: 10
        }
      }
    },
    { name: "bottom-pane",
      title: {
        text: "Bottom",
        margin: {
          left: 10
        }
      }
    }
  ]
});
</script>

The right margin of the title.

Default: 0

<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",
      title: {
        text: "Top",
        margin: {
          right: 10
        }
      }
    },
    { name: "bottom-pane",
      title: {
        text: "Bottom",
        margin: {
          right: 10
        }
      }
    }
  ]
});
</script>

The top margin of the title.

Default: 0

<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",
      title: {
        text: "Top",
        margin: {
          top: 10
        }
      }
    },
    { name: "bottom-pane",
      title: {
        text: "Bottom",
        margin: {
          top: 10
        }
      }
    }
  ]
});
</script>