Hi Vasanthi,
You can use ‘texttemplate’ for dynamic values.
f.e.:
{ "textposition": "auto", "texttemplate": "<b>%{x}</b>", "textfont": { "color": "white" },
Will have a white bold text including the X value.
GL!