pdf.margin Object

Specifies the margins of the page (numbers or strings with units). Supported units are "mm", "cm", "in" and "pt" (default).

Example - set the margins

<div id="chart" style="width: 600px; height: 400px;"></div>
<script>
  $("#chart").kendoChart({
      pdf: {
          margin: {
              left: 10,
              right: "10pt",
              top: "10mm",
              bottom: "1in"
          }
      },
      legend: {
          position: "bottom"
      },
      series: [
          { name: "Series 1", data: [1, 2, 3] },
          { name: "Series 2", data: [3, 4, 5] }
      ]
  });

  var chart = $("#chart").getKendoChart();
  chart.saveAsPDF();
</script>

pdf.margin.bottom Number|String (default: 0)

The bottom margin. Numbers are considered as "pt" units.

pdf.margin.left Number|String (default: 0)

The left margin. Numbers are considered as "pt" units.

pdf.margin.right Number|String (default: 0)

The right margin. Numbers are considered as "pt" units.

pdf.margin.top Number|String (default: 0)

The top margin. Numbers are considered as "pt" units.

In this article