You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to create bar chart visualisation that will have value indicators over every bar in bar chart.
bar = Bar().add_xaxis(ds)
for yxais in scores:
bar.add_yaxis(*yxais)
bar.set_global_opts(title_opts=opts.TitleOpts(title=f'Retention percentage'))
bar.set_series_opts(
label_opts=opts.LabelOpts(is_show=False),
markpoint_opts=opts.MarkPointOpts(
data=[
opts.MarkPointItem(type_="max", name="", symbol_size=54),
opts.MarkPointItem(type_="min", name="", symbol_size=54),
opts.MarkPointItem(type_="average", name="", symbol_size=54),
]
),
)
bar.render(metric + ".html")
But, MarkPointItem requires setting "type_" which must be some of max, min or average, but that leaves some of the bars without value above them. How can I set value above every bar in barplot?
The text was updated successfully, but these errors were encountered:
@sunhailin-Leo thank you for detailed response. One more thing, if I have a grouping like in this attached image
how can I set coord parameter in MarkPointItem object?
I want to create bar chart visualisation that will have value indicators over every bar in bar chart.
But, MarkPointItem requires setting "type_" which must be some of max, min or average, but that leaves some of the bars without value above them. How can I set value above every bar in barplot?
The text was updated successfully, but these errors were encountered: