1
0
mirror of https://github.com/d3/d3.git synced 2025-12-08 19:46:24 +00:00

fixes for dark mode

This commit is contained in:
Philippe Rivière 2024-05-17 17:45:09 +02:00
parent 6d290a757e
commit ab56b7c534
2 changed files with 2 additions and 1 deletions

View File

@ -130,6 +130,7 @@ g.append("text")
.attr("x", 4)
.attr("y", (size + padding) / 2)
.attr("dy", "0.35em")
.attr("fill", "currentColor")
.text(([name]) => name);
// Add the horizontal axis.

View File

@ -82,7 +82,7 @@ svg
)
.call((g) => g.select(".domain").remove());
const rule = svg.append("g").append("line").attr("y1", height).attr("y2", 0).attr("stroke", "black");
const rule = svg.append("g").append("line").attr("y1", height).attr("y2", 0).attr("stroke", "currentColor");
// Create a line and a label for each series.
const serie = svg.append("g").style("font", "bold 10px sans-serif").selectAll("g").data(series).join("g");