Skip to content

Commit a46793f

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

14 files changed

+6256
-6250
lines changed

test/output/athletesWeightCumulative.svg

Lines changed: 80 additions & 80 deletions
Loading

test/output/carsParcoords.svg

Lines changed: 412 additions & 412 deletions
Loading

test/output/diamondsCaratPrice.svg

Lines changed: 1833 additions & 1833 deletions
Loading

test/output/diamondsCaratPriceDots.svg

Lines changed: 1850 additions & 1850 deletions
Loading

test/output/diamondsCaratSampling.svg

Lines changed: 2011 additions & 2011 deletions
Loading

test/output/industryUnemployment.svg

Lines changed: 36 additions & 36 deletions
Loading

test/output/industryUnemploymentStream.svg

Lines changed: 27 additions & 27 deletions
Loading

test/plots/athletes-weight-cumulative.js

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)