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

The border options for the category highlight.

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: {
    categories: ["2012", "2013"],
    highlight: {
      visible: true,
      border: {
        color: "#000000",
        width: 2
      }
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

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

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: {
    categories: ["2012", "2013"],
    highlight: {
      visible: true,
      border: {
        color: "#ff0000"
      }
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The dash type of the category highlight 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({
  categoryAxis: {
    categories: ["2012", "2013"],
    highlight: {
      visible: true,
      border: {
        dashType: "dash"
      }
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The opacity of the category highlight border. By default the category highlight border is opaque.

Default: 1

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  categoryAxis: {
    categories: ["2012", "2013"],
    highlight: {
      visible: true,
      border: {
        opacity: 0.5
      }
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>

The width of the category highlight 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({
  categoryAxis: {
    categories: ["2012", "2013"],
    highlight: {
      visible: true,
      border: {
        width: 2
      }
    }
  },
  series: [
    { data: [1, 2, 3] }
  ]
});
</script>