Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EvolucionPIB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DESI_24-25
EvolucionPIB
Commits
081374e2
Commit
081374e2
authored
4 months ago
by
frajuar
Browse files
Options
Downloads
Patches
Plain Diff
Con fuente
parent
20c489dd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#12912
passed
4 months ago
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Js/script.js
+1
-7
1 addition, 7 deletions
Js/script.js
css/estilo.css
+6
-6
6 additions, 6 deletions
css/estilo.css
index.html
+1
-1
1 addition, 1 deletion
index.html
with
8 additions
and
14 deletions
Js/script.js
+
1
−
7
View file @
081374e2
...
...
@@ -299,12 +299,6 @@ function dibujaGrafico(country,paises){
.
attr
(
"
class
"
,
"
y axis
"
)
.
call
(
d3
.
axisLeft
(
yScale
));
svg
.
append
(
"
text
"
)
.
style
(
"
font-size
"
,
"
15px
"
)
.
attr
(
"
text-anchor
"
,
"
middle
"
)
.
attr
(
"
transform
"
,
`translate(
${
-
margin
.
left
+
35
}
,
${
height
/
2
-
60
}
)`
)
.
text
(
"
Valor PIB
"
);
// Título
svg
.
append
(
"
text
"
)
.
attr
(
"
x
"
,
width
/
2
)
...
...
@@ -313,6 +307,6 @@ function dibujaGrafico(country,paises){
.
style
(
"
font-size
"
,
"
18px
"
)
.
style
(
"
font-weight
"
,
"
bold
"
)
.
style
(
"
font-family
"
,
"
Arial
"
)
.
text
(
`Evolución de
los datos
para
${
country
}
`
);
.
text
(
`Evolución de
l PIB
para
${
country
}
`
);
}
This diff is collapsed.
Click to expand it.
css/estilo.css
+
6
−
6
View file @
081374e2
...
...
@@ -21,6 +21,7 @@ body {
width
:
100%
;
/* Asegura que ocupe el ancho completo */
height
:
70%
;
/* Asegura que el mapa ocupe el 70% de la pantalla */
background-color
:
rgb
(
207
,
207
,
207
);
position
:
relative
;
}
#yearSelectorContainer
{
position
:
absolute
;
...
...
@@ -33,14 +34,13 @@ body {
font-family
:
Arial
,
sans-serif
;
z-index
:
1000
;
/* Ensures it stays above the map */
}
#footerText
{
position
:
absolute
;
top
:
400px
;
/* Adjust for desired distance from the top */
left
:
20px
;
/* Position it on the right side */
padding
:
10px
;
#textoFuente
{
position
:
absolute
;
bottom
:
0
;
left
:
0
;
font-family
:
Arial
,
sans-serif
;
font-size
:
small
;
z-index
:
1000
;
/*
Ensures it stays above the map
*/
margin
:
5px
;
/*
Ajusta el margen según sea necesario
*/
}
/* Contenedor inferior */
#grafico
{
...
...
This diff is collapsed.
Click to expand it.
index.html
+
1
−
1
View file @
081374e2
...
...
@@ -13,7 +13,7 @@
</div>
<div
id=
"map"
>
<div
id=
"yearSelectorContainer"
></div>
<
div
id=
"
footerText"
>
Texto en la parte inferior izquierda
</div
>
<
p
id=
"
textoFuente"
>
Fuente:
<a
href=
"https://www.kaggle.com/datasets/zgrcemta/world-gdpgdp-gdp-per-capita-and-annual-growths"
>
World GDP
</a>
</p
>
</div>
<div
id=
"grafico"
></div>
<script
src=
"./Js/script.js"
></script>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment