diff --git a/xg.js b/xg.js index 0f006282b99c4eb9a7cfd4a1bc5af66420ef3c56..69e2e2e7070c9ab48f168e5250065804a9ddabb9 100644 --- a/xg.js +++ b/xg.js @@ -46,7 +46,7 @@ .style("top", 160 + "px") .style("left", (width + margin.left + margin.right + 160) + "px") .style("width", "260px") - .style("height", "370px") + .style("height", "390px") .style("border", "4px solid black") .style("padding", "10px") .style("background-color", "#f9f9f9") diff --git a/xg2.js b/xg2.js index cceea421fe33008482f615898cc07e01abe8302f..df1ba0f7db757147ddaa00deef34431566d31b97 100644 --- a/xg2.js +++ b/xg2.js @@ -42,7 +42,7 @@ .style("top", 160 + "px") .style("left", (width + margin.left + margin.right + 160) + "px") .style("width", "260px") - .style("height", "370px") + .style("height", "390px") .style("border", "4px solid black") .style("padding", "10px") .style("background-color", "#f9f9f9") @@ -165,7 +165,7 @@ .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(2, Math.abs(d.xG_diff) / 10); // Escala de intensidad ajustable return d.xG_diff > 0 ? d3.interpolateBlues(intensity) // Azul para valores positivos : d3.interpolateReds(intensity); // Rojo para valores negativos