Grouped Indicators

A list of indicators is passed as the input data, each one of them uses one position in the grid, so they use n orders (n being the length of the list). To make this easier to work with, the function s.plt.indicator returns the next available order value.

An example on how to use it would be:

data = [
    {
        "description": "",
        "title": "Estado",
        "value": "Abierto",
        "align": "center",
    },
    {
        "description": "",
        "title": "Price ($)",
        "value": "455",
        "color": "success",
    },
    {
        "description": "this is a description",
        "title": "Volumen",
        "value": "41153"
    },
    {
        "description": "",
        "title": "Cambio €/$",
        "value": "1.1946",
    },
]
order = s.plt.indicator(data=data, order=0)
s.plt.indicator(data=data+data[2:], order=order)

Last updated