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

Panes.border

configuration

The border of the chart pane.

<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",
      border: {
        color: "red",
        width: 2
      }
    },
    { name: "bottom-pane",
      border: {
        color: "green",
        width: 2
      }
    }
  ]
});
</script>

The color of the border. Accepts a valid CSS color string, including hex and rgb.

Default: "black"

<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",
      border: {
        color: "red",
        width: 2
      }
    },
    { name: "bottom-pane",
      border: {
        color: "green",
        width: 2
      }
    }
  ]
});
</script>

The dash type of the border.

The following dash types are supported:

  • "dash" - a line consisting of dashes
  • "dashDot" - a line consisting of a repeating pattern of dash-dot
  • "dot" - a line consisting of dots
  • "longDash" - a line consisting of a repeating pattern of long-dash
  • "longDashDot" - a line consisting of a repeating pattern of long-dash-dot
  • "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot
  • "solid" - a solid line

Default: "solid"

<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",
      border: {
        dashType: "dashDot",
        width: 2
      }
    },
    { name: "bottom-pane",
      border: {
        dashType: "dashDot",
        width: 2
      }
    }
  ]
});
</script>

The width of the border in pixels. By default the border width is set to zero which means that the border will not appear.

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",
      border: {
        width: 2
      }
    },
    { name: "bottom-pane",
      border: {
        width: 2
      }
    }
  ]
});
</script>