I'm new to Highcharts Dashboards.
I'm trying to a simple layout where I have one row with a nested layout: two columns, where the first one will have 5 rows and second one, just one row.
This can be accomplished with:
Code: Select all
gui: {
layouts: [{
id: 'layout-1',
rows: [{
cells: [{
id: 'dashboard-col-0',
layout: {
rows: [{
cells: [{
id: 'kpi-col-0-row-1'
}]
},{
cells: [{
id: 'kpi-col-0-row-2'
}]
},{
cells: [{
id: 'kpi-col-0-row-3'
}]
},{
cells: [{
id: 'kpi-col-0-row-4'
}]
},{
cells: [{
id: 'kpi-col-0-row-5'
}]
}]
}
},{
id: 'dash-chart-col-1',
}]
}]
}
The issue now is that this layout gives 50% width for each column. The KPIs are stretched and the chart is shortened.
I want to control the column width, by setting 25% for the 5 KPIs rows and 75% for the chart.
I could not accomplish it with 'width', 'flex' or something similar. I understand that the dashboard is responsive, but it makes sense in this scenario to control the proportion of the column's width.
Thanks!