pdf.landscape Boolean
(default: false)
Set to true
to reverse the paper dimensions if needed such that width is the larger edge.
Example - enable landscape mode
<div id="chart" style="width: 600px; height: 400px;"></div>
<script>
$("#chart").kendoChart({
pdf: {
paperSize: "A4",
landscape: true
},
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>