Edit this page

series.labels.color String |Function

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

Example - set the chart series label color as a hex string

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

Example - set the chart series label color as a RGB value

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

Example - set the chart series label color by name

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    {
      labels: {
        visible: true,
        color: "green"
      },
      data: [1, 2, 3]
    }
  ]
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy