Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fordecyt_2019
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rodrigo Tapia-McClung
fordecyt_2019
Commits
793d472a
Commit
793d472a
authored
Apr 04, 2023
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cuerpos charts
parent
dbc5fa01
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
cuerpos_charts.js
public/js/cuerpos_charts.js
+8
-1
No files found.
public/js/cuerpos_charts.js
View file @
793d472a
...
@@ -240,6 +240,7 @@ const makeRadarChart = (data, months, years) => {
...
@@ -240,6 +240,7 @@ const makeRadarChart = (data, months, years) => {
radarChart
.
legend
.
itemContainers
.
template
.
focusable
=
false
radarChart
.
legend
.
itemContainers
.
template
.
focusable
=
false
radarChart
.
legend
.
itemContainers
.
template
.
cursorOverStyle
=
am4core
.
MouseCursorStyle
.
default
;
radarChart
.
legend
.
itemContainers
.
template
.
cursorOverStyle
=
am4core
.
MouseCursorStyle
.
default
;
$
(
"#radarChart"
).
css
(
"width"
,
Math
.
floor
(
$
(
"#radarChart"
).
parent
().
width
()));
}
}
const
makeLineChart
=
(
data
)
=>
{
const
makeLineChart
=
(
data
)
=>
{
...
@@ -283,6 +284,8 @@ const makeLineChart = (data) => {
...
@@ -283,6 +284,8 @@ const makeLineChart = (data) => {
customizeGrip
(
lineChart
.
scrollbarX
.
startGrip
);
customizeGrip
(
lineChart
.
scrollbarX
.
startGrip
);
customizeGrip
(
lineChart
.
scrollbarX
.
endGrip
);
customizeGrip
(
lineChart
.
scrollbarX
.
endGrip
);
// Style scrollbar
// Style scrollbar
$
(
"#lineChart"
).
css
(
"width"
,
Math
.
floor
(
$
(
"#lineChart"
).
parent
().
width
()));
}
}
const
makeAreaChart
=
(
data
)
=>
{
const
makeAreaChart
=
(
data
)
=>
{
...
@@ -356,6 +359,8 @@ const makeAreaChart = (data) => {
...
@@ -356,6 +359,8 @@ const makeAreaChart = (data) => {
updateBarChartOnHover
(
filterDate
,
barData
);
// FIXME: when calling this update, bar chart may not exist yet
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
)
=>
{
const
makeBarChart
=
(
data
)
=>
{
...
@@ -394,4 +399,6 @@ const makeBarChart = (data) => {
...
@@ -394,4 +399,6 @@ const makeBarChart = (data) => {
makeBarSeries
(
barChart
,
"ap"
,
"Agua permanente"
);
makeBarSeries
(
barChart
,
"ap"
,
"Agua permanente"
);
makeBarSeries
(
barChart
,
"at"
,
"Áreas temporalmente inundadas"
);
makeBarSeries
(
barChart
,
"at"
,
"Áreas temporalmente inundadas"
);
makeBarSeries
(
barChart
,
"av"
,
"Suelos húmedos-vegetación acuática"
);
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment