series.labels.border Object

The border of the labels.

Example - set the chart series label border

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    {
      data: [1, 2, 3],
      labels: {
        visible: true,
        border: {
          color: "green",
          dashType: "dashDot",
          width: 1
        }
      }
    }
  ]
});
</script>

series.labels.border.color String|Function (default: "black")

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

Example - set the chart series label border color

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

series.labels.border.dashType String|Function (default: "solid")

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

Example - set the chart series label border dash type

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    {
      data: [1, 2, 3],
      labels: {
        visible: true,
        border: {
          dashType: "dashDot",
          width: 1
        }
      }
    }
  ]
});
</script>

series.labels.border.width Number|Function (default: 0)

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

Example - set the chart series label border width

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    {
      data: [1, 2, 3],
      labels: {
        visible: true,
        border: {
          width: 1
        }
      }
    }
  ]
});
</script>
In this article