Skip to content

Commit 64d04b0

Browse files
authored
many of our test plots have been bitten by #383 (#838)
since we adopted font-variant="tabular-nums" the left margin is too small for five-digits numbers
1 parent 27d42ec commit 64d04b0

14 files changed

+6256
-6250
lines changed

test/output/athletesWeightCumulative.svg

+80-80
Loading

test/output/carsParcoords.svg

+412-412
Loading

test/output/diamondsCaratPrice.svg

+1,833-1,833
Loading

test/output/diamondsCaratPriceDots.svg

+1,850-1,850
Loading

test/output/diamondsCaratSampling.svg

+2,011-2,011
Loading

test/output/industryUnemployment.svg

+36-36
Loading

test/output/industryUnemploymentStream.svg

+27-27
Loading

test/plots/athletes-weight-cumulative.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as d3 from "d3";
44
export default async function() {
55
const athletes = await d3.csv("data/athletes.csv", d3.autoType);
66
return Plot.plot({
7+
marginLeft: 44,
78
marks: [
89
Plot.rectY(athletes, Plot.binX({y: "count"}, {x: "weight", cumulative: true}))
910
]

test/plots/cars-parcoords.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default async function() {
2323
const xy = Plot.normalizeX("extent", {x: "value", y: "dimension", z: "dimension"});
2424

2525
return Plot.plot({
26-
marginLeft: 100,
26+
marginLeft: 104,
2727
marginRight: 20,
2828
x: {
2929
axis: null

test/plots/diamonds-carat-price-dots.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default async function() {
66
return Plot.plot({
77
height: 640,
88
grid: true,
9+
marginLeft: 44,
910
x: {
1011
label: "Carats →"
1112
},

test/plots/diamonds-carat-price.js

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default async function() {
55
const data = await d3.csv("data/diamonds.csv", d3.autoType);
66
return Plot.plot({
77
height: 640,
8+
marginLeft: 44,
89
color: {
910
scheme: "bupu",
1011
type: "symlog"

test/plots/diamonds-carat-sampling.js

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function sample(n, options) {
1717
export default async function() {
1818
const data = await d3.csv("data/diamonds.csv", d3.autoType);
1919
return Plot.plot({
20+
marginLeft: 44,
2021
marks: [
2122
Plot.dot(data, sample(2000, {
2223
x: "carat",

test/plots/industry-unemployment-stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as d3 from "d3";
44
export default async function() {
55
const data = await d3.csv("data/bls-industry-unemployment.csv", d3.autoType);
66
return Plot.plot({
7+
marginLeft: 44,
78
marks: [
89
Plot.areaY(data, Plot.stackY({
910
x: "date",

test/plots/industry-unemployment.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as d3 from "d3";
44
export default async function() {
55
const data = await d3.csv("data/bls-industry-unemployment.csv", d3.autoType);
66
return Plot.plot({
7+
marginLeft: 44,
78
y: {
89
grid: true
910
},

0 commit comments

Comments
 (0)