Showing values for the bars of a bar chart

2
Is it possible to show the value of each bar in a bar chart (using the Charts widget). Plotly does support showing a value (with the text and textposition attributes and the Chart widget does already show a tooltip with the value, but I would like to be able to show the values directly in the chart. For example, my chart currently shows like this: I’d like it be like this (this is using the “textposition” attribute set to “outside”, if it was “inside” the values should be overlaid in the bars)
asked
2 answers
5

 

 

 

This will resolve, you can also change the position to inside/outside depending on your requirement.

 

answered
0

I think you can do this with the json custom option ‘textposition’ and ‘text’ check out the plotly documentation:

https://plot.ly/javascript/reference/#bar-textposition

answered