Hello everyone, i'm trying to add text on each markers of my line graph and that not work.
Do you have some idea ?
Thanks for your help.
[
{
"name": "S_Out",
"x": {{ SISO.data ['S_Month']}},
"y": {{ SISO.data ['S_Out']}},
"type": "line+text",
"text":["{{SISO.data['S_Out']}}"],
"texttemplate" :"%{y}",
"hovertemplate": "%{x}
%{fullData.name}: %{y}",
"transforms": [
{
"type": "sort",
"target": {{ SISO.data ['S_Month']}},
"order": "ascending"
},
{
"type": "aggregate",
"groups": {{ SISO.data ['S_Month']}},
"aggregations": [
{
"target": "y",
"func": "sum",
"enabled": true
}
]
}
],
"marker": {
"color": "#033663"
},
},
]
NoƩmie
Hi @AntoineF, to add text to each marker on your line chart, you can use "type": "scatter" and "mode": "lines+markers+text". Hope this helps!