Bars with custom label in each bar

I’m working with a bar chart and would like to show the metric value on each bar with a custom format. The formatting should apply only to this chart, I don’t want it to affect the metric format used elsewhere in the dashboard. Is this possible?

For solving that you can use the serieLabel property:

.set("serieLabel", {
        "show": true,
        "formatter": value => ("the value: " + value)
})

this will allow you to add custom formats to the values

1 Like

Great, it worked perfectly. Now the values are formatted only on that bar chart, thanks for your help

And just one last question, is this serieLabel also applicable to the Raw Data Table and other charts?

This option applies only to Bars, Multimetric Bars, and Tree Map, you can check other serieLabel properties here: Serie Label

1 Like

OK, Got it, thanks for your help