v.0.13
On 2022.12.23
Last updated
On 2022.12.23
Last updated
This version has been deprecated. If used with the current API version it can produce unexpected behaviour or errors.
The package shimoku-api-python is no longer maintained
To get the new version
This version is another small upgrade with some fixes and new plots. The next versions will bring key features and quality of life upgrades!
Now the horizontal barchart and zero centered barchart follow the Shimoku style of plots and don't ignore the axis name parameters:
When passing the access token to the initialization function it returns an appropiate error.
Executing this code:
the resulting error is:
Has been added a type of input conditionally dependent on other input results. To use it, the name of the parent input has to be inculded as the parameter 'dependsOn' of the child, like so:
When the input has the parameter 'dependsOn', it has to define a set of options for every option in the parent input. In the case shown above the parent input has the options: 'España', 'Colombia', so the child input defines the list ['Madrid', 'Barcelona'] for 'España' and ['Bogotá', 'Medellin'] for 'Colombia'. The result is:
Now multiple input groups can be chained so that they are shown sequentially, through the use of a button. To use this feature the function s.plt.generate_input_form_groups
has to be used. It eases the creation of multiple input forms groups, the user just has to define a dictionary where each key is the name of the group and the value is the list of input components. To activate the sequential show, the parameter dynamic_sequential_show
has to be set to True
.
The following example:
results in:
Two derivative plots from the stacked barchart have been added! This are the horizontal stacked barchart and the stacked area chart, they have the same functionalities as the stacked barchart from v.0.12. This chart now preserve the order of the data, so they will show the data on the dashboard the same way it is ordered in the SDK call. The toolbox has been moved to the bottom right of these plots for visibility's sake.
Using the same data as the stacked barchart example:
The result is:
And the stacked area chart follows the same pattern, after executing the following code:
The result is:
The doughnut chart has been added! It uses the same principle as the pie chart, where more degrees mean a bigger value, but it has an empty center and it shows the name of the category when the mouse hovers above one of the sectors. It has the option to have rounded edges or hard edges, find your fit!
The function needs to know which columns are the 'name' and the 'value', by default it will use the strings 'name' and 'value' respectively, but this can be changed setting the parameters name
and value
to the desired strings.
An example on how to use it is:
Resulting in:
The last plot that has been added is the rose chart! This chart is very similar to the doughnut chart but instead of being the sectors degrees indicating the size of the value, it is the radius of the sector, this means that all sectors are equal in width but vary in height.
After executing the following code:
The result is: