Shimoku docs
Search…
Speed Gauge
Speed gauge chart is a type of data visualization often used to display a single data value with a quantitative context. The advantage of this chart lays in the fact that it’s easy to interpret, useful in situations where the expected value of the data is already known.

The method to use

The method is shimoku.plt.speed_gauge()
The speed gauge s a gauge (a meter) that collects and displays the instantaneous value of a measurable quantity.

1. Default configuration

This can be achieved using:
data_ = [
{
"value": 60,
"name": "Third"
},
]
shimoku.plt.speed_gauge(
data=data_, name='name', value='value',
menu_path='test/speed-gauge-1',
order=0,
rows_size=2, cols_size=12,
min=0, max=100,
)
The result is:
The speed gauge is in the default configuration.

2. Title for the chart, changing data and padding

It is possible to personalize the title of the chart and change data at will. Padding controls the position of the gauge on the page.
This can be achieved using:
data_ = [
{
"value": 60,
"name": "Third"
},
]
shimoku.plt.speed_gauge(
data=data_, name='name', value='value',
menu_path='test/speed-gauge-2',
order=0,
rows_size=2, cols_size=6,
padding='0,0,0,2',
min=0, max=100,
title='Speed (mph)',
)
Note the space before the component using padding='0,0,0,2', and its size with cols_size=6.
Changing menu_path The menu_path can be modified.
It is possible to use any number of rows.
Last modified 4mo ago
Copy link
On this page
The method to use