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

PlotArea

configuration

The plot area configuration options. The plot area is the area which displays the series.

plotArea

Object
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  plotArea: {
    background: "green",

  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The background color of the chart plot area. Accepts a valid CSS color string, including hex and rgb.

Default: "white"

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  plotArea: {
    background: "#aa00bb"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  plotArea: {
    background: "rgb(128, 0, 255)"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
<div id="chart"></div>
<script>
$("#chart").kendoChart({
  plotArea: {
    background: "green"
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The border of the chart plot area.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  plotArea: {
    border: {
      width: 2,
      color: "green"
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
Number|Object

The margin of the chart plot area. A numeric value will set all margins.

Default: 5

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

The background opacity of the chart plot area. By default the background is opaque.

Default: 1

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  plotArea: {
    background: "green",
    opacity: 0.1
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>
Number|Object

The padding of the chart plot area. A numeric value will set all paddings.

The default padding for pie, donut, radar and polar charts is proportional of the chart size.

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