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
0353d3e5
Commit
0353d3e5
authored
Mar 19, 2021
by
Rodrigo Tapia-McClung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix periurbano chart divs
parent
d85f55ff
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
595 additions
and
595 deletions
+595
-595
index.html
public/centropais/index.html
+6
-7
centropais_basemap.js
public/js/centropais_basemap.js
+1
-1
centropais_charts.js
public/js/centropais_charts.js
+1
-1
centropais_functions.js
public/js/centropais_functions.js
+2
-1
centropais_periurbano_charts.js
public/js/centropais_periurbano_charts.js
+583
-584
evolucion_urbana.js
public/js/evolucion_urbana.js
+1
-0
evolucion_urbana_charts.js
public/js/evolucion_urbana_charts.js
+1
-1
No files found.
public/centropais/index.html
View file @
0353d3e5
...
...
@@ -82,16 +82,15 @@
<div
class=
"col-6"
id=
"story"
>
<div
class=
"loader"
></div>
<div
class=
"row h-50 border-bottom"
>
<div
class=
"col"
id=
"topChart"
>
<div
class=
"col"
id=
"top
Left
Chart"
>
<div
class=
"row h-100"
>
<div
id=
"odChart"
></div>
<div
id=
"barChart"
></div>
</div>
</div>
<div
class=
"col
"
id=
"topLef
tChart"
>
<div
class=
"col
border-left"
id=
"topRigh
tChart"
>
<div
class=
"row h-100"
>
</div>
</div>
</div>
...
...
public/js/centropais_basemap.js
View file @
0353d3e5
...
...
@@ -664,7 +664,7 @@ const createFlowLayer = (geojson, type, addOnCreate) => {
// if layer is to be added on creation, add click funcionality and populate chart
if
(
addOnCreate
)
{
flowMapLayer
.
addTo
(
map
).
on
(
"click"
,
odClick
);
let
odChart
=
am4core
.
registry
.
baseSprites
.
find
(
c
=>
c
.
htmlContainer
.
id
===
"topChart"
);
let
odChart
=
am4core
.
registry
.
baseSprites
.
find
(
c
=>
c
.
htmlContainer
.
id
===
"top
Left
Chart"
);
odChart
.
data
=
newData
;
let
chordChart
=
am4core
.
registry
.
baseSprites
.
find
(
c
=>
c
.
htmlContainer
.
id
===
"bottomLeftChart"
);
...
...
public/js/centropais_charts.js
View file @
0353d3e5
...
...
@@ -19,7 +19,7 @@ am4core.ready(function() {
am4core
.
options
.
autoSetClassName
=
true
;
// Themes end
let
chart
=
am4core
.
create
(
"topChart"
,
am4charts
.
XYChart
);
let
chart
=
am4core
.
create
(
"top
Left
Chart"
,
am4charts
.
XYChart
);
chart
.
maskBullets
=
false
;
let
title
=
chart
.
titles
.
create
();
...
...
public/js/centropais_functions.js
View file @
0353d3e5
...
...
@@ -97,6 +97,7 @@ d3.json("https://unpkg.com/d3-time-format@2.1.1/locale/es-MX.json").then(locale
// TODO: remove unused functions
$
(
"#startHeader"
).
remove
();
$
(
"#initial-backdrop"
).
remove
();
$
(
"#topRightChart"
)[
0
].
style
.
setProperty
(
"display"
,
"none"
);
$
(
"#regionSelect"
).
remove
();
$
(
"#mainContainer"
)[
0
].
style
.
setProperty
(
"display"
,
"flex"
,
"important"
);
$
(
"#mexmap"
).
show
();
...
...
@@ -291,7 +292,7 @@ $("#indicatorSelect").on("change", function() {
});
// on select, update chart data
let
odChart
=
am4core
.
registry
.
baseSprites
.
find
(
c
=>
c
.
htmlContainer
.
id
===
"topChart"
);
let
odChart
=
am4core
.
registry
.
baseSprites
.
find
(
c
=>
c
.
htmlContainer
.
id
===
"top
Left
Chart"
);
odChart
.
data
=
odData
[
option
];
let
chordChart
=
am4core
.
registry
.
baseSprites
.
find
(
c
=>
c
.
htmlContainer
.
id
===
"bottomLeftChart"
);
...
...
public/js/centropais_periurbano_charts.js
View file @
0353d3e5
/*
* Copyright 202
0
- All rights reserved.
* Copyright 202
1
- All rights reserved.
* Rodrigo Tapia-McClung
*
*
June 2020
*
March 2021
*/
/* globals am4core, am4charts, am4themes_animated,
intervals
*/
/* globals am4core, am4charts, am4themes_animated,
baseUrl
*/
let
minValue
,
maxValue
;
let
mainTextColor
=
getComputedStyle
(
document
.
body
).
getPropertyValue
(
"--main-text-color"
);
let
cellbgColor
=
getComputedStyle
(
document
.
body
).
getPropertyValue
(
"--main-bg-color"
);
//
let cellbgColor = getComputedStyle(document.body).getPropertyValue("--main-bg-color");
am4core
.
ready
(
function
()
{
let
mainTextColor
=
getComputedStyle
(
document
.
body
).
getPropertyValue
(
"--main-text-color"
);
// Themes begin
//
am4core.useTheme(am4themes_animated);
am4core
.
useTheme
(
am4themes_animated
);
// Themes end
// Create chart instance
...
...
@@ -90,7 +89,7 @@ am4core.ready(function() {
circle
.
fill
=
am4core
.
color
(
"#fff"
);
circle
.
strokeWidth
=
3
;
});
// end am4core.ready()
});
// end am4core.ready()
//++++++++++++++++++++++++++++++++++++++++++++++++++++++BARRAS SEMAFORO++
/*
...
...
@@ -100,7 +99,7 @@ am4core.ready(function() {
am4core
.
ready
(
function
()
{
var
chart
=
am4core
.
create
(
"od
Chart"
,
am4charts
.
XYChart
);
var
chart
=
am4core
.
create
(
"topLeft
Chart"
,
am4charts
.
XYChart
);
chart
.
hiddenState
.
properties
.
opacity
=
0
;
// this creates initial fade-in
/*
...
...
@@ -231,7 +230,7 @@ am4core.ready(function() {
bullet3.label.fontSize = 9;*/
});
// end am4core.ready()
});
// end am4core.ready()
//++++++++++++++++++++++++++++++++++++++++++++ BARRAS CAFES Y LINEAS MORADAS APILADAS ++++++++++++++++++
// FALTA CONSTRUIR QUERY
...
...
@@ -241,7 +240,7 @@ am4core.ready(function() {
am4core
.
useTheme
(
am4themes_animated
);
// Themes end
var
chart
=
am4core
.
create
(
"topLef
tChart"
,
am4charts
.
XYChart
);
var
chart
=
am4core
.
create
(
"topRigh
tChart"
,
am4charts
.
XYChart
);
chart
.
hiddenState
.
properties
.
opacity
=
0
;
// this creates initial fade-in
/*
...
...
@@ -454,7 +453,7 @@ am4core.ready(function() {
//chart.scrollbarX = new am4core.Scrollbar();
});
// end am4core.ready()
});
// end am4core.ready()
//++++++++++++++++++++++++++++++++++++++++++++ HISTORICO POR TRAMOS ++++++++++++++++++
am4core
.
ready
(
function
()
{
...
...
@@ -504,8 +503,8 @@ am4core.ready(function() {
Tramo10
:
2168.042568
,
Tramo11
:
5354.295853
,
Tramo12
:
946.076199
},
{
},
{
category
:
"2018"
,
Tramo7
:
4712.061739
,
Tramo8
:
5798.574005
,
...
...
@@ -513,8 +512,8 @@ am4core.ready(function() {
Tramo10
:
2463.225593
,
Tramo11
:
6065.936419
,
Tramo12
:
1077.998678
},
{
},
{
category
:
"2019"
,
Tramo7
:
5004.426599
,
Tramo8
:
6112.824022
,
...
...
@@ -522,8 +521,8 @@ am4core.ready(function() {
Tramo10
:
2775.836758
,
Tramo11
:
6783.400364
,
Tramo12
:
1238.459944
},
{
},
{
category
:
"2020"
,
Tramo7
:
5364.43353
,
Tramo8
:
6427.625949
,
...
...
@@ -531,7 +530,7 @@ am4core.ready(function() {
Tramo10
:
2972.499167
,
Tramo11
:
7299.502497
,
Tramo12
:
1338.796796
}
}
];
...
...
@@ -665,5 +664,5 @@ am4core.ready(function() {
//chart.scrollbarX = new am4core.Scrollbar();
});
// end am4core.ready()
});
// end am4core.ready()
public/js/evolucion_urbana.js
View file @
0353d3e5
...
...
@@ -352,6 +352,7 @@ L.timeDimension.layer.Tile = (layer, options) => {
$
(
"#startHeader"
).
remove
();
$
(
".picker"
).
remove
();
$
(
"#initial-backdrop"
).
remove
();
$
(
"#topRightChart"
)[
0
].
style
.
setProperty
(
"display"
,
"none"
);
$
(
"#mainContainer"
)[
0
].
style
.
setProperty
(
"display"
,
"flex"
,
"important"
);
$
(
"#mexmap"
).
show
();
...
...
public/js/evolucion_urbana_charts.js
View file @
0353d3e5
...
...
@@ -13,7 +13,7 @@ am4core.ready(function() {
let
mainTextColor
=
getComputedStyle
(
document
.
body
).
getPropertyValue
(
"--main-text-color"
);
// bar and line chart
let
chart
=
am4core
.
create
(
"topChart"
,
am4charts
.
XYChart
);
let
chart
=
am4core
.
create
(
"top
Left
Chart"
,
am4charts
.
XYChart
);
let
ctitle
=
chart
.
titles
.
create
();
ctitle
.
text
=
"Área urbanizada trimestralmente"
;
...
...
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