Hi,
I have built a dashboard using different graph types and misteriously when I use the scatter type and “Aa” comes up below the legend labels.
It does not happen when I use other type of graphs - what could be the reason?
This is a sample of the code I use:
# create data list
traces = []
for i in cols:
formattedList = ["{:,}".format(int(member)) for member in result[i]]
text_hover = [dat + " , " + "{:,}".format(int(member)) for dat, member in zip(result['date'], result[i])]
traces.append(go.Scatter(
x=result.index,
y=result[i],
text=formattedList,
textposition='bottom center',
mode='lines+markers+text',
hoverinfo='text',
hovertext=text_hover,
opacity=0.7,
marker={
'size': msize,
'line': {'width': 0.5, 'color': 'white'}},
name=i
)
)
For the layout I use a base layout that I modify for each graph:
This is the base layout:
layout_fig = dict(
height=gheight,
font={
“family”: “Raleway”,
“size”: ftxt_size
},
#titlefont=dict(color="#191A1A", size=‘14’),
margin=dict(
l=70,
r=40,
b=60,
t=60
),
#width=400,
hovermode=“closest”,
showlegend=True,
separators=’,.’,
legend={
“x”: -0.0228945952895,
“y”: 1.2,
“orientation”: “h”,
“yanchor”: “top”
},
xaxis=dict(
showgrid=False,
ticks=‘outside’,
automargin=True
),
yaxis=dict(
title=’’,
zeroline=False,
tickformat=’,2r’,
titlefont=dict(
size=ftxt_size,
color=‘rgb(107, 107, 107)’
),
tickfont=dict(
size=ftxt_size,
color=‘rgb(107, 107, 107)’
)
)