2021年4月27日星期二

Show both relative and absolute difference in Plotly Indicator python

I'm trying to use plotly.graph_objs.Indicator for showing output.

go.Indicator(mode = "number+delta", value = 200,               number = {'font': {'size': 30}},               title = {'text': 'HEAD', 'font':{'size':20, 'color':'green'}},               domain = {'x': [0, 1], 'y': [0, 1]},               delta = {'reference':300, 'relative':False})  

Here if I pass relative=True, relative difference will be shown for eg. 30%.

If I pass relative=False, absolute difference will be shown for eg. -20

Is there any way to get both the absolute & relative difference.

https://stackoverflow.com/questions/67285902/show-both-relative-and-absolute-difference-in-plotly-indicator-python April 27, 2021 at 11:17PM

没有评论:

发表评论