cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Bar chart data labels in percent

gm_co
New Contributor

Hello, I am currently working with bar visualizations in a new workbook editor. When I use labels, I can see the count of rows returned, and hovering over them shows the percentage of the two values returned. How can I make the percentage display on the chart in the same way the count does?

gm_co_0-1739384118290.png

 

1 REPLY 1

Advika
Databricks Employee
Databricks Employee

Hello @gm_co!

Were you able to sort this out?
You can display % in two ways:

  • In the General settings, check the box for Normalize values to percentage.
  • As you have enabled Labels, just set the Data labels to {{ @@yPercent }}. This will show the percentage directly on the chart, just like the count.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now