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
b2533c5a
Commit
b2533c5a
authored
Nov 25, 2020
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update date on chart cursor and axes to show Q
parent
c798776d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
evolucion_urbana_charts.js
public/js/evolucion_urbana_charts.js
+8
-1
No files found.
public/js/evolucion_urbana_charts.js
View file @
b2533c5a
...
...
@@ -38,9 +38,16 @@ am4core.ready(function() {
// Create axes
let
xAxis
=
chart
.
xAxes
.
push
(
new
am4charts
.
DateAxis
());
//chart.xAxes.push(new am4charts.DateAxis());
xAxis
.
baseInterval
=
{
timeUnit
:
"month"
,
count
:
1
};
xAxis
.
baseInterval
=
{
timeUnit
:
"month"
,
count
:
3
};
xAxis
.
renderer
.
labels
.
template
.
fill
=
am4core
.
color
(
mainTextColor
);
xAxis
.
renderer
.
labels
.
template
.
fontSize
=
15
;
xAxis
.
renderer
.
labels
.
template
.
location
=
0.5
;
xAxis
.
tooltipDateFormat
=
"q yyyy"
;
xAxis
.
adapter
.
add
(
"getTooltipText"
,
(
text
)
=>
{
return
"Q"
+
text
;
});
xAxis
.
dateFormats
.
setKey
(
"month"
,
"Qq yyyy"
);
xAxis
.
periodChangeDateFormats
.
setKey
(
"month"
,
"Qq yyyy"
);
let
valueAxis1
=
chart
.
yAxes
.
push
(
new
am4charts
.
ValueAxis
());
valueAxis1
.
title
.
text
=
"Área urbanizada (Ha)"
;
...
...
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