Skip to content

Commit

Permalink
fix: Use currentColor for multi-series label.
Browse files Browse the repository at this point in the history
  • Loading branch information
jheer committed Oct 23, 2024
1 parent 17beafc commit f11db6c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/public/specs/esm/line-multi-series.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default vg.plot(
y: "unemployment",
z: "division",
r: 2,
fill: "black",
fill: "currentColor",
select: "nearestX"
}
),
Expand All @@ -38,7 +38,7 @@ export default vg.plot(
x: "date",
y: "unemployment",
text: "division",
fill: "black",
fill: "currentColor",
dy: -8,
select: "nearestX"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/public/specs/json/line-multi-series.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"y": "unemployment",
"z": "division",
"r": 2,
"fill": "black",
"fill": "currentColor",
"select": "nearestX"
},
{
Expand All @@ -60,7 +60,7 @@
"x": "date",
"y": "unemployment",
"text": "division",
"fill": "black",
"fill": "currentColor",
"dy": -8,
"select": "nearestX"
}
Expand Down
4 changes: 2 additions & 2 deletions docs/public/specs/yaml/line-multi-series.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ plot:
y: unemployment
z: division
r: 2
fill: black
fill: currentColor
select: nearestX
- mark: text
data: { from: bls_unemp }
x: date
y: unemployment
text: division
fill: black
fill: currentColor
dy: -8
select: nearestX
marginLeft: 24
Expand Down
4 changes: 2 additions & 2 deletions specs/esm/line-multi-series.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default vg.plot(
y: "unemployment",
z: "division",
r: 2,
fill: "black",
fill: "currentColor",
select: "nearestX"
}
),
Expand All @@ -38,7 +38,7 @@ export default vg.plot(
x: "date",
y: "unemployment",
text: "division",
fill: "black",
fill: "currentColor",
dy: -8,
select: "nearestX"
}
Expand Down
4 changes: 2 additions & 2 deletions specs/json/line-multi-series.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"y": "unemployment",
"z": "division",
"r": 2,
"fill": "black",
"fill": "currentColor",
"select": "nearestX"
},
{
Expand All @@ -66,7 +66,7 @@
"x": "date",
"y": "unemployment",
"text": "division",
"fill": "black",
"fill": "currentColor",
"dy": -8,
"select": "nearestX"
}
Expand Down
4 changes: 2 additions & 2 deletions specs/ts/line-multi-series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const spec : Spec = {
"y": "unemployment",
"z": "division",
"r": 2,
"fill": "black",
"fill": "currentColor",
"select": "nearestX"
},
{
Expand All @@ -62,7 +62,7 @@ export const spec : Spec = {
"x": "date",
"y": "unemployment",
"text": "division",
"fill": "black",
"fill": "currentColor",
"dy": -8,
"select": "nearestX"
}
Expand Down
4 changes: 2 additions & 2 deletions specs/yaml/line-multi-series.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ plot:
y: unemployment
z: division
r: 2
fill: black
fill: currentColor
select: nearestX
- mark: text
data: { from: bls_unemp }
x: date
y: unemployment
text: division
fill: black
fill: currentColor
dy: -8
select: nearestX
marginLeft: 24
Expand Down

0 comments on commit f11db6c

Please sign in to comment.