0

How do I display the auto generated percent value as label in the bars?

I have a bar chart with [stack]="{ type: '100%' }". I would like to display the percentage as label in the bar.

Picture of expected chart label

enter image description here

Picture of My chart label

enter image description here

I tried label component but getting the value displayed rather calculated percentage.

<kendo-chart-series-item-labels format="{0:P}" position="center">

Here's the code I tried:

stackblitz

tdy
  • 36,675
  • 19
  • 86
  • 83
Karthik
  • 11
  • 1

0 Answers0