v.0.14
2023.01.13
pip install --upgrade shimoku-api-pythonFixes
menu_path: str = 'test/tabs-test' data = [ {'date': dt.date(2021, 1, 1), 'x': 5, 'y': 5}, {'date': dt.date(2021, 1, 2), 'x': 6, 'y': 5}, {'date': dt.date(2021, 1, 3), 'x': 4, 'y': 5}, {'date': dt.date(2021, 1, 4), 'x': 7, 'y': 5}, {'date': dt.date(2021, 1, 5), 'x': 3, 'y': 5}, ] s.plt.bar( data=data, x='date', y=['x', 'y'], menu_path=menu_path, x_axis_name='Date', y_axis_name=['Revenue'], # row=1, column=1, order=0, rows_size=2, cols_size=12, tabs_index=("Tabs group", "Bar") ) report_dataset_properties = { 'fields': [ { 'title': 'Personal information', 'fields': [ { 'mapping': 'name', 'fieldName': 'name', 'inputType': 'text', }, { 'mapping': 'surname', 'fieldName': 'surname', 'inputType': 'text', }, { 'mapping': 'age', 'fieldName': 'age', 'inputType': 'number', }, { 'mapping': 'tel', 'fieldName': 'phone', 'inputType': 'tel', }, { 'mapping': 'gender', 'fieldName': 'Gender', 'inputType': 'radio', 'options': ['Male', 'Female', 'No-binary', 'Undefined'], }, { 'mapping': 'email', 'fieldName': 'email', 'inputType': 'email', }, ], }, { 'title': 'Other data', 'fields': [ { 'mapping': 'skills', 'fieldName': 'Skills', 'options': ['Backend', 'Frontend', 'UX/UI', 'Api Builder', 'DevOps'], 'inputType': 'checkbox', }, { 'mapping': 'birthDay', 'fieldName': 'Birthday', 'inputType': 'date', }, { 'mapping': 'onCompany', 'fieldName': 'Time on Shimoku', 'inputType': 'dateRange', }, { 'mapping': 'hobbies', 'fieldName': 'Hobbies', 'inputType': 'select', 'options': ['Make Strong Api', 'Sailing to Canarias', 'Send Abracitos'], }, { 'mapping': 'textField2', 'fieldName': 'Test Text', 'inputType': 'text', }, { 'mapping': 'objectives', 'fieldName': 'Objetivos', 'inputType': 'multiSelect', 'options': ['sleep', 'close eyes', 'awake'] }, ], }, ], } s.plt.input_form( menu_path=menu_path, order=0, report_dataset_properties=report_dataset_properties, tabs_index=("Tabs group", "Input Form") ) data_table = [ {'date': dt.date(2021, 1, 1), 'x': 5, 'y': 5, 'filtA': 'A', 'filtB': 'Z', 'name': 'Ana'}, {'date': dt.date(2021, 1, 2), 'x': 6, 'y': 5, 'filtA': 'B', 'filtB': 'Z', 'name': 'Laura'}, {'date': dt.date(2021, 1, 3), 'x': 4, 'y': 5, 'filtA': 'A', 'filtB': 'W', 'name': 'Audrey'}, {'date': dt.date(2021, 1, 4), 'x': 7, 'y': 5, 'filtA': 'B', 'filtB': 'W', 'name': 'Jose'}, {'date': dt.date(2021, 1, 5), 'x': 3, 'y': 5, 'filtA': 'A', 'filtB': 'Z', 'name': 'Jorge'}, ] filter_columns: List[str] = ['filtA', 'filtB'] search_columns: List[str] = ['name'] s.plt.table( title="Test-table", data=data_table, menu_path=menu_path, order=0, filter_columns=filter_columns, sort_table_by_col={'date': 'asc'}, search_columns=search_columns, tabs_index=('Tabs group', 'Table') ) s.plt.change_tabs_group_internal_order( group_name='Tabs group', menu_path=menu_path, tabs_list=['Table', 'Bar', 'Input Form'] )
Arbitrary tabs order and table within tabs
Improvements

Modified theme shimoku 
New Toolbox 
Resulting indicators with dynamic order 
Vertical arrangement of indicators 
Gauge indicators 
Audio recorder component 



Html component created without manually importing the library
Last updated
Was this helpful?