Showing values for the bars of a bar chart

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)
2 answers




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



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