Commit 793d472a authored by Rodrigo Tapia-McClung's avatar Rodrigo Tapia-McClung

Fix cuerpos charts

parent dbc5fa01
......@@ -240,6 +240,7 @@ const makeRadarChart = (data, months, years) => {
radarChart.legend.itemContainers.template.focusable = false
radarChart.legend.itemContainers.template.cursorOverStyle = am4core.MouseCursorStyle.default;
$("#radarChart").css("width", Math.floor($("#radarChart").parent().width()));
}
const makeLineChart = (data) => {
......@@ -283,6 +284,8 @@ const makeLineChart = (data) => {
customizeGrip(lineChart.scrollbarX.startGrip);
customizeGrip(lineChart.scrollbarX.endGrip);
// Style scrollbar
$("#lineChart").css("width", Math.floor($("#lineChart").parent().width()));
}
const makeAreaChart = (data) => {
......@@ -356,6 +359,8 @@ const makeAreaChart = (data) => {
updateBarChartOnHover(filterDate, barData); // FIXME: when calling this update, bar chart may not exist yet
}
});
$("#areaChart").css("width", Math.ceil($("#areaChart").parent().width())-10);
}
const makeBarChart = (data) => {
......@@ -394,4 +399,6 @@ const makeBarChart = (data) => {
makeBarSeries(barChart, "ap", "Agua permanente");
makeBarSeries(barChart, "at", "Áreas temporalmente inundadas");
makeBarSeries(barChart, "av", "Suelos húmedos-vegetación acuática");
$("#barChart").css("width", Math.floor($("#barChart").parent().width())-10);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment