Last updated 10 months ago
Sometimes it is useful for the color of the indicators to show if the value is negative or positive, the parameter color_by_value handles that automatically.
color_by_value
The following example shows how to use it:
s.plt.indicator( data=[{ 'align': 'center', 'title': 'Positive case', 'value': 10, }, { 'align': 'center', 'title': 'Negative case', 'value': -10, }, { 'align': 'center', 'title': 'Neutral case', 'value': 0, }], order=0, color_by_value=True )