data label (column chart-Any Chart)

0
Hi, I am using “Any Chart” widget to display a column chart  like the following.. I want to display the “y” value on the top of each bar( data label). I wanted to see, if anyone has done this or have suggestion on how to do (while I am looking in the ployly doc...). When, I hover, it does show both x and y values. However, I would like to show th y value on the top of each column. This is my first time using Any Chart or Plotly.. Thanks
asked
2 answers
0

Hi Manyam.

I looked into an example in my own app and noticed i'm using 'texttemplate' not 'text'/ See an example below to use the y value.

answered
0

Hi, You can use 'text' and 'textposition' as attributes to your data object. 

See examples here: https://plotly.com/javascript/bar-charts

When you use textposition: auto, the value will be displayed on top.

answered