Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RendimientoOfensivoEquiposFutbol
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
RendimientoOfensivoEquiposFutbol
Commits
309c2966
Commit
309c2966
authored
5 months ago
by
ferngon
Browse files
Options
Downloads
Patches
Plain Diff
Update file xg2.js
parent
70a5cb17
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#12813
passed
5 months ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xg2.js
+3
-3
3 additions, 3 deletions
xg2.js
with
3 additions
and
3 deletions
xg2.js
+
3
−
3
View file @
309c2966
...
...
@@ -165,10 +165,10 @@
.
attr
(
"
width
"
,
d
=>
Math
.
abs
(
x
(
d
.
xG_diff
)
-
x
(
0
)))
// Longitud proporcional a xG_diff
.
attr
(
"
height
"
,
y
.
bandwidth
())
.
attr
(
"
fill
"
,
d
=>
{
const
intensity
=
Math
.
min
(
1
,
Math
.
abs
(
d
.
xG_diff
)
/
10
);
// Escala de intensidad ajustable
const
intensity
=
Math
.
min
(
0.2
,
Math
.
abs
(
d
.
xG_diff
)
/
10
);
// Escala de intensidad ajustable
return
d
.
xG_diff
>
0
?
d3
.
interpolateBlues
(
intensity
*
10
)
// Azul para valores positivos
:
d3
.
interpolateReds
(
intensity
*
10
);
// Rojo para valores negativos
?
d3
.
interpolateBlues
(
intensity
)
// Azul para valores positivos
:
d3
.
interpolateReds
(
intensity
);
// Rojo para valores negativos
})
.
on
(
"
click
"
,
function
(
event
,
d
)
{
infoContainer2
...
...
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