Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Bar chart adding percentages to labels

$
0
0
Hi Mark,

As pointed in the documentation, percentage field is available only for pie, donut and 100% stacked charts. What I would suggest for your scenario is to add an additional field in your data which contains the calculated point percentage - then you could reach it in the labels.template via the dataItem. As an example: 
//....
.Labels(labels => labels
    .Visible(true)
    .Template("#= value #, #= dataItem.PercentageField # )")
    .Position(ChartBarLabelsPosition.Center)
)


Regards,
Iliana Nikolova
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>