For the complete documentation index, see llms.txt. This page is also available as Markdown.

Color by Value

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.

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
)
Color for indicators based on value

Last updated

Was this helpful?