v.0.8
On 2022.08.01
Last updated
Was this helpful?
Was this helpful?
# to pick your target app
target_app = [
app
for app in s.business.get_business_apps(s.plt.business_id)
if app['name'] == 'test'
]
asseert len(target_app) == 1
app_id = target_app[0]['id']
s.report.hide_report(
business_id=s.plt.business_id,
app_id=app_id,
report_id=report_id,
ths.report.unhide_report(
business_id=s.plt.business_id,
app_id=app_id,
report_id=report_id,
)bentobox: Dict[str, Union[str, int] = {
bentoboxId: string
bentoboxOrder: int
bentoboxSizeColumns: int
bentoBoxSizeRows: intpy
}menu_path: str = 'test/bentobox-test'
bentobox_id: Dict = {'bentoboxId': 'test20220101'}
bentobox_data: Dict = {
'bentoboxOrder': 0,
'bentoboxSizeColumns': 8,
'bentoboxSizeRows': 20,
}
bentobox_data.update(bentobox_id)
data_ = [
{
"description": "",
"title": "Estado",
"value": "Abierto",
},
]
s.plt.indicator(
data=data_,
menu_path=menu_path,
order=0, rows_size=8, cols_size=12,
value='value',
header='title',
footer='description',
bentobox_data=bentobox_data,
)
s.plt.indicator(
data=data_,
menu_path=menu_path,
order=1, rows_size=8, cols_size=12,
value='value',
header='title',
footer='description',
bentobox_data=bentobox_id,
)
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,
order=2, rows_size=14, cols_size=24,
bentobox_data=bentobox_id,
)