Skip to main content Skip to complementary content
Close announcements banner

getPercent method

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

getPercent()

Gets the value of this cell as a percentage of the total. Might be more than 100% if this is an average.

Version history

Version history
Version state Details
Introduced 2.1

Parameters

None.

Example

<div class="bar" style="width:{{row.measures[0].getPercent()}}%">	

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!