From fcd4949c2767fe6532bd1ad23b300643f67492d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Wed, 15 Dec 2021 02:11:19 +0100 Subject: [PATCH 1/8] The grid option accepts a boolean (true), a positive number, and an array of tick values Other changes: * The grids are not mixed with the axis ticks any more. Instead, they are created in a g element below the axis, with a .grid className. * The faceted grids are not generated as interrupted paths, but as groups of lines (making it easier to work with them downstream). * The code is a few lines longer but (imho) easier to read. closes https://github.com/observablehq/plot/issues/7 --- README.md | 2 +- src/axis.js | 98 +++++++++++++++++++++++++++++------------------------ src/plot.js | 4 +++ 3 files changed, 58 insertions(+), 46 deletions(-) diff --git a/README.md b/README.md index 20e5fb7b59..ecc0abfb11 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ Plot automatically generates axes for position scales. You can configure these a * *scale*.**tickPadding** - the separation between the tick and its label (in pixels; default 3) * *scale*.**tickFormat** - how to format tick values as a string (a function or format specifier) * *scale*.**tickRotate** - whether to rotate tick labels (an angle in degrees clockwise; default 0) -* *scale*.**grid** - if true, draw grid lines across the plot for each tick +* *scale*.**grid** - if true, a positive number, or an array of tick values, draw grid lines across the plot for each tick * *scale*.**line** - if true, draw the axis line * *scale*.**label** - a string to label the axis * *scale*.**labelAnchor** - the label anchor: *top*, *right*, *bottom*, *left*, or *center* diff --git a/src/axis.js b/src/axis.js index ddf5ffc8ca..ff9f1db90a 100644 --- a/src/axis.js +++ b/src/axis.js @@ -2,7 +2,7 @@ import {axisTop, axisBottom, axisRight, axisLeft, create, format, utcFormat} fro import {formatIsoDate} from "./format.js"; import {boolean, take, number, string, keyword, maybeKeyword, constant, isTemporal} from "./mark.js"; import {radians} from "./math.js"; -import {impliedString} from "./style.js"; +import {impliedString, offset} from "./style.js"; export class AxisX { constructor({ @@ -27,7 +27,7 @@ export class AxisX { this.tickPadding = number(tickPadding); this.tickFormat = tickFormat; this.fontVariant = impliedString(fontVariant, "normal"); - this.grid = boolean(grid); + this.grid = maybeTicks(grid); this.label = string(label); this.labelAnchor = maybeKeyword(labelAnchor, "labelAnchor", ["center", "left", "right"]); this.labelOffset = number(labelOffset); @@ -59,22 +59,21 @@ export class AxisX { labelAnchor, labelOffset, line, - tickRotate + tickRotate, + ticks } = this; const offset = this.name === "x" ? 0 : axis === "top" ? marginTop - facetMarginTop : marginBottom - facetMarginBottom; const offsetSign = axis === "top" ? -1 : 1; const ty = offsetSign * offset + (axis === "top" ? marginTop : height - marginBottom); return create("svg:g") .attr("transform", `translate(0,${ty})`) + .call(!grid ? () => {} : makeGridX(grid(x, ticks), fy ? fy.bandwidth() : offsetSign * (marginBottom + marginTop - height), index, fy, ty)) .call(createAxis(axis === "top" ? axisTop : axisBottom, x, this)) .call(maybeTickRotate, tickRotate) .attr("font-size", null) .attr("font-family", null) .attr("font-variant", fontVariant) .call(!line ? g => g.select(".domain").remove() : () => {}) - .call(!grid ? () => {} - : fy ? gridFacetX(index, fy, -ty) - : gridX(offsetSign * (marginBottom + marginTop - height))) .call(!label ? () => {} : g => g.append("text") .attr("fill", "currentColor") .attr("transform", `translate(${ @@ -114,7 +113,7 @@ export class AxisY { this.tickPadding = number(tickPadding); this.tickFormat = tickFormat; this.fontVariant = impliedString(fontVariant, "normal"); - this.grid = boolean(grid); + this.grid = maybeTicks(grid); this.label = string(label); this.labelAnchor = maybeKeyword(labelAnchor, "labelAnchor", ["center", "top", "bottom"]); this.labelOffset = number(labelOffset); @@ -144,22 +143,21 @@ export class AxisY { labelAnchor, labelOffset, line, - tickRotate + tickRotate, + ticks } = this; const offset = this.name === "y" ? 0 : axis === "left" ? marginLeft - facetMarginLeft : marginRight - facetMarginRight; const offsetSign = axis === "left" ? -1 : 1; const tx = offsetSign * offset + (axis === "right" ? width - marginRight : marginLeft); return create("svg:g") .attr("transform", `translate(${tx},0)`) + .call(!grid ? () => {} : makeGridY(grid(y, ticks), fx ? fx.bandwidth() : offsetSign * (marginLeft + marginRight - width), index, fx, tx)) .call(createAxis(axis === "right" ? axisRight : axisLeft, y, this)) .call(maybeTickRotate, tickRotate) .attr("font-size", null) .attr("font-family", null) .attr("font-variant", fontVariant) .call(!line ? g => g.select(".domain").remove() : () => {}) - .call(!grid ? () => {} - : fx ? gridFacetY(index, fx, -tx) - : gridY(offsetSign * (marginLeft + marginRight - width))) .call(!label ? () => {} : g => g.append("text") .attr("fill", "currentColor") .attr("transform", `translate(${labelOffset * offsetSign},${ @@ -178,40 +176,6 @@ export class AxisY { } } -function gridX(y2) { - return g => g.selectAll(".tick line") - .clone(true) - .attr("stroke-opacity", 0.1) - .attr("y2", y2); -} - -function gridY(x2) { - return g => g.selectAll(".tick line") - .clone(true) - .attr("stroke-opacity", 0.1) - .attr("x2", x2); -} - -function gridFacetX(index, fy, ty) { - const dy = fy.bandwidth(); - const domain = fy.domain(); - return g => g.selectAll(".tick") - .append("path") - .attr("stroke", "currentColor") - .attr("stroke-opacity", 0.1) - .attr("d", (index ? take(domain, index) : domain).map(v => `M0,${fy(v) + ty}v${dy}`).join("")); -} - -function gridFacetY(index, fx, tx) { - const dx = fx.bandwidth(); - const domain = fx.domain(); - return g => g.selectAll(".tick") - .append("path") - .attr("stroke", "currentColor") - .attr("stroke-opacity", 0.1) - .attr("d", (index ? take(domain, index) : domain).map(v => `M${fx(v) + tx},0h${dx}`).join("")); -} - // D3 doesn’t provide a tick format for ordinal scales; we want shorthand when // an ordinal domain is numbers or dates, and we want null to mean the empty // string, not the default identity format. @@ -254,3 +218,47 @@ function maybeTickRotate(g, rotate) { text.setAttribute("dy", "0.32em"); } } + +function makeGridX(ticks, dy, index, fy, ty) { + const domain = fy ? fy.domain() : [ty]; + let steps = index ? take(domain, index) : domain; + if (fy) steps = steps.map(fy); + return g => g.append("g") + .attr("class", "grid") + .selectAll() + .data(steps) + .join("g") + .attr("transform", v => `translate(${offset},${v - ty})`) + .selectAll() + .data(() => ticks) + .join("line") + .attr("x1", d => d) + .attr("x2", d => d) + .attr("y1", dy); +} + +function makeGridY(ticks, dx, index, fx, tx) { + const domain = fx ? fx.domain() : [tx]; + let steps = index ? take(domain, index) : domain; + if (fx) steps = steps.map(fx); + return g => g.append("g") + .attr("class", "grid") + .selectAll() + .data(steps) + .join("g") + .attr("transform", v => `translate(${v - tx},${offset})`) + .selectAll() + .data(() => ticks) + .join("line") + .attr("y1", d => d) + .attr("y2", d => d) + .attr("x1", dx); +} + +function maybeTicks(grid) { + if (!grid) return false; + if (grid === true) return (scale, ticks) => (scale.ticks ? scale.ticks(ticks) : scale.domain()).map(scale); + if (Array.isArray(grid)) return (scale) => grid.map(scale); + if (grid === +grid) return (scale) => (scale.ticks ? scale.ticks.apply(scale, [grid]) : scale.domain()).map(scale); + throw new Error(`Unexpected grid option: ${grid}`); +} diff --git a/src/plot.js b/src/plot.js index d83e5715e7..25bf3659d0 100644 --- a/src/plot.js +++ b/src/plot.js @@ -85,6 +85,10 @@ export function plot(options = {}) { .${className} text { white-space: pre; } + .${className} .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } `)) .call(applyInlineStyles, style) .node(); From 5ffbd417869269c9eb2b5277f193537862064959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Wed, 15 Dec 2021 02:12:30 +0100 Subject: [PATCH 2/8] fix snapshots --- test/output/aaplBollinger.svg | 65 +- test/output/aaplCandlestick.svg | 69 +- test/output/aaplChangeVolume.svg | 101 +- test/output/aaplClose.svg | 49 +- test/output/aaplCloseUntyped.svg | 49 +- test/output/aaplMonthly.svg | 5 + test/output/aaplVolume.svg | 45 +- test/output/aaplVolumeRect.svg | 65 +- test/output/anscombeQuartet.svg | 104 +- test/output/athletesHeightWeight.svg | 121 +- test/output/athletesHeightWeightBin.svg | 85 +- test/output/athletesHeightWeightBinStroke.svg | 85 +- test/output/athletesHeightWeightSex.svg | 85 +- test/output/athletesHeightWeightSport.svg | 121 +- test/output/athletesNationality.svg | 33 +- test/output/athletesSexWeight.svg | 53 +- test/output/athletesSportSex.svg | 53 +- test/output/athletesSportWeight.svg | 266 +- test/output/athletesWeight.svg | 5 + test/output/athletesWeightCumulative.svg | 5 + test/output/availability.svg | 5 + test/output/ballotStatusRace.svg | 59 +- test/output/beckerBarley.svg | 332 +- test/output/caltrain.html | 5 + test/output/carsMpg.svg | 49 +- test/output/carsParcoords.svg | 5 + test/output/collapsedHistogram.svg | 5 + test/output/covidIhmeProjectedDeaths.svg | 217 +- test/output/crimeanWarOverlapped.svg | 5 + test/output/crimeanWarStacked.svg | 5 + test/output/d3Survey2015Comfort.svg | 53 +- test/output/d3Survey2015Why.svg | 53 +- test/output/diamondsCaratPrice.svg | 3671 +++++++-------- test/output/diamondsCaratPriceDots.svg | 3950 +++++++++-------- test/output/empty.svg | 101 +- test/output/emptyX.svg | 5 + test/output/figcaption.html | 61 +- test/output/figcaptionHtml.html | 61 +- test/output/firstLadies.svg | 5 + test/output/footballCoverage.svg | 109 +- test/output/fruitSales.svg | 5 + test/output/fruitSalesDate.svg | 5 + test/output/gistempAnomaly.svg | 49 +- test/output/gistempAnomalyMoving.svg | 49 +- test/output/gistempAnomalyTransform.svg | 37 +- test/output/googleTrendsRidgeline.svg | 5 + test/output/gridChoropleth.svg | 5 + test/output/hadcrutWarmingStripes.svg | 5 + test/output/highCardinalityOrdinal.svg | 5 + test/output/identityScale.svg | 5 + test/output/industryUnemployment.svg | 41 +- test/output/industryUnemploymentShare.svg | 53 +- test/output/industryUnemploymentStream.svg | 5 + test/output/learningPoverty.svg | 53 +- test/output/letterFrequencyBar.svg | 37 +- test/output/letterFrequencyCloud.svg | 5 + test/output/letterFrequencyColumn.svg | 61 +- test/output/letterFrequencyDot.svg | 5 + test/output/letterFrequencyLollipop.svg | 61 +- test/output/logDegenerate.svg | 5 + test/output/metroInequality.svg | 133 +- test/output/metroInequalityChange.svg | 133 +- test/output/metroUnemployment.svg | 5 + test/output/metroUnemploymentHighlight.svg | 45 +- test/output/metroUnemploymentIndex.svg | 5 + test/output/metroUnemploymentMoving.svg | 5 + test/output/metroUnemploymentNormalize.svg | 37 +- test/output/metroUnemploymentRidgeline.svg | 5 + test/output/metroUnemploymentStroke.svg | 5 + test/output/mobyDickFaceted.svg | 59 +- test/output/mobyDickLetterFrequency.svg | 61 +- test/output/mobyDickLetterPairs.svg | 5 + test/output/mobyDickLetterPosition.svg | 5 + .../mobyDickLetterRelativeFrequency.svg | 61 +- test/output/morleyBoxplot.svg | 45 +- test/output/moviesProfitByGenre.svg | 33 +- test/output/musicRevenue.svg | 57 +- test/output/ordinalBar.svg | 37 +- test/output/penguinCulmen.svg | 126 +- test/output/penguinCulmenArray.svg | 126 +- test/output/penguinIslandUnknown.svg | 5 + test/output/penguinMass.svg | 49 +- test/output/penguinMassSex.svg | 5 + test/output/penguinMassSexSpecies.svg | 5 + test/output/penguinMassSpecies.svg | 49 +- test/output/penguinSex.svg | 5 + test/output/penguinSexMassCulmenSpecies.svg | 161 +- test/output/penguinSpeciesGroup.svg | 5 + test/output/penguinSpeciesIsland.svg | 41 +- test/output/penguinSpeciesIslandRelative.svg | 5 + test/output/penguinSpeciesIslandSex.svg | 73 +- test/output/polylinear.svg | 101 +- test/output/randomBins.svg | 5 + test/output/randomBinsXY.svg | 5 + test/output/randomQuantile.svg | 5 + test/output/randomWalk.svg | 5 + test/output/seattlePrecipitationRule.svg | 5 + test/output/seattleTemperatureBand.svg | 41 +- test/output/seattleTemperatureCell.svg | 5 + test/output/sfCovidDeaths.svg | 5 + test/output/sfTemperatureBand.svg | 45 +- test/output/sfTemperatureBandArea.svg | 69 +- test/output/simpsonsRatings.svg | 225 +- test/output/simpsonsRatingsDots.svg | 5 + test/output/simpsonsViews.svg | 121 +- test/output/singleValueBar.svg | 5 + test/output/singleValueBin.svg | 5 + test/output/softwareVersions.svg | 5 + test/output/stackedBar.svg | 5 + test/output/stackedRect.svg | 5 + test/output/stargazers.svg | 53 +- test/output/stargazersBinned.svg | 61 +- test/output/stargazersHourly.svg | 65 +- test/output/stargazersHourlyGroup.svg | 65 +- test/output/stocksIndex.svg | 49 +- test/output/travelersYearOverYear.svg | 73 +- test/output/uniformRandomDifference.svg | 53 +- test/output/untypedDateBin.svg | 5 + test/output/usCongressAge.svg | 37 +- test/output/usCongressAgeGender.svg | 41 +- test/output/usPopulationStateAge.svg | 93 +- test/output/usPopulationStateAgeDots.svg | 53 +- test/output/usPresidentFavorabilityDots.svg | 53 +- test/output/usPresidentialElection2020.svg | 221 +- test/output/usPresidentialForecast2016.svg | 5 + test/output/usRetailSales.svg | 57 +- test/output/usStatePopulationChange.svg | 257 +- test/output/wealthBritainBar.svg | 5 + test/output/wealthBritainProportionPlot.svg | 5 + test/output/wordCloud.svg | 5 + test/output/wordLengthMobyDick.svg | 53 +- test/plots/diamonds-carat-price-dots.js | 3 +- test/plots/diamonds-carat-price.js | 1 + 133 files changed, 7999 insertions(+), 6088 deletions(-) diff --git a/test/output/aaplBollinger.svg b/test/output/aaplBollinger.svg index 812d2fa9a8..ddefe426ac 100644 --- a/test/output/aaplBollinger.svg +++ b/test/output/aaplBollinger.svg @@ -11,63 +11,72 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 - - 100 + 100 - - 110 + 110 - - 120 + 120 - - 130 + 130 - - 140 + 140 - - 150 + 150 - - 160 + 160 - - 170 + 170 - - 180 + 180 - - 190 + 190 ↑ Close diff --git a/test/output/aaplCandlestick.svg b/test/output/aaplCandlestick.svg index 37701ca780..4ab6247f02 100644 --- a/test/output/aaplCandlestick.svg +++ b/test/output/aaplCandlestick.svg @@ -11,65 +11,78 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + - - 155 + 155 - - 160 + 160 - - 165 + 165 - - 170 + 170 - - 175 + 175 - - 180 + 180 - - 185 + 185 - - 190 + 190 ↑ Apple stock price ($) + + + + + + + + + + - - December + December - - 2018 + 2018 - - February + February - - March + March - - April + April - - May + May diff --git a/test/output/aaplChangeVolume.svg b/test/output/aaplChangeVolume.svg index 8de5da0360..631127069d 100644 --- a/test/output/aaplChangeVolume.svg +++ b/test/output/aaplChangeVolume.svg @@ -11,97 +11,110 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + - - 7.1 + 7.1 - - 7.2 + 7.2 - - 7.3 + 7.3 - - 7.4 + 7.4 - - 7.5 + 7.5 - - 7.6 + 7.6 - - 7.7 + 7.7 - - 7.8 + 7.8 - - 7.9 + 7.9 - - 8.0 + 8.0 - - 8.1 + 8.1 - - 8.2 + 8.2 - - 8.3 + 8.3 - - 8.4 + 8.4 ↑ Volume (log₁₀) + + + + + + + + + + + + - - −6 + −6 - - −4 + −4 - - −2 + −2 - - +0 + +0 - - +2 + +2 - - +4 + +4 - - +6 + +6 - - +8 + +8 Daily change (%) → diff --git a/test/output/aaplClose.svg b/test/output/aaplClose.svg index 410cb0b36f..a56b057727 100644 --- a/test/output/aaplClose.svg +++ b/test/output/aaplClose.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - 0 + 0 - - 20 + 20 - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 - - 180 + 180 ↑ Close diff --git a/test/output/aaplCloseUntyped.svg b/test/output/aaplCloseUntyped.svg index c3fbfcf783..3674f2bcca 100644 --- a/test/output/aaplCloseUntyped.svg +++ b/test/output/aaplCloseUntyped.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - 0 + 0 - - 20 + 20 - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 - - 180 + 180 ↑ Close diff --git a/test/output/aaplMonthly.svg b/test/output/aaplMonthly.svg index 5cdd5edb35..653daa6d67 100644 --- a/test/output/aaplMonthly.svg +++ b/test/output/aaplMonthly.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/aaplVolume.svg b/test/output/aaplVolume.svg index ab09cc59f2..3b00f010b3 100644 --- a/test/output/aaplVolume.svg +++ b/test/output/aaplVolume.svg @@ -11,43 +11,52 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 ↑ Frequency (%) diff --git a/test/output/aaplVolumeRect.svg b/test/output/aaplVolumeRect.svg index c1deac92e1..d84f383793 100644 --- a/test/output/aaplVolumeRect.svg +++ b/test/output/aaplVolumeRect.svg @@ -11,63 +11,72 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + - - 0 + 0 - - 5 + 5 - - 10 + 10 - - 15 + 15 - - 20 + 20 - - 25 + 25 - - 30 + 30 - - 35 + 35 - - 40 + 40 - - 45 + 45 - - 50 + 50 - - 55 + 55 - - 60 + 60 - - 65 + 65 ↑ Daily trade volume (millions) diff --git a/test/output/anscombeQuartet.svg b/test/output/anscombeQuartet.svg index cbe281fb52..e9b079ca4d 100644 --- a/test/output/anscombeQuartet.svg +++ b/test/output/anscombeQuartet.svg @@ -11,27 +11,57 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 - 6 - 8 - 10 - 12 - ↑ y @@ -51,65 +81,81 @@ + + + + + + + - - 5 + 5 - - 10 + 10 - - 15 + 15 + + + + + + + - - 5 + 5 - - 10 + 10 - - 15 + 15 + + + + + + + - - 5 + 5 - - 10 + 10 - - 15 + 15 + + + + + + + - - 5 + 5 - - 10 + 10 - - 15 + 15 x → diff --git a/test/output/athletesHeightWeight.svg b/test/output/athletesHeightWeight.svg index 42ecac2e6f..78ba4a1e75 100644 --- a/test/output/athletesHeightWeight.svg +++ b/test/output/athletesHeightWeight.svg @@ -11,117 +11,130 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + - - 1.25 + 1.25 - - 1.30 + 1.30 - - 1.35 + 1.35 - - 1.40 + 1.40 - - 1.45 + 1.45 - - 1.50 + 1.50 - - 1.55 + 1.55 - - 1.60 + 1.60 - - 1.65 + 1.65 - - 1.70 + 1.70 - - 1.75 + 1.75 - - 1.80 + 1.80 - - 1.85 + 1.85 - - 1.90 + 1.90 - - 1.95 + 1.95 - - 2.00 + 2.00 - - 2.05 + 2.05 - - 2.10 + 2.10 - - 2.15 + 2.15 - - 2.20 + 2.20 ↑ height + + + + + + + + + + + - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 weight → diff --git a/test/output/athletesHeightWeightBin.svg b/test/output/athletesHeightWeightBin.svg index 3f06987e8b..7ae74aeb7d 100644 --- a/test/output/athletesHeightWeightBin.svg +++ b/test/output/athletesHeightWeightBin.svg @@ -11,81 +11,94 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 1.2 + 1.2 - - 1.3 + 1.3 - - 1.4 + 1.4 - - 1.5 + 1.5 - - 1.6 + 1.6 - - 1.7 + 1.7 - - 1.8 + 1.8 - - 1.9 + 1.9 - - 2.0 + 2.0 - - 2.1 + 2.1 - - 2.2 + 2.2 ↑ height + + + + + + + + + + + - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 weight → diff --git a/test/output/athletesHeightWeightBinStroke.svg b/test/output/athletesHeightWeightBinStroke.svg index 69262933f1..a1ece5a78d 100644 --- a/test/output/athletesHeightWeightBinStroke.svg +++ b/test/output/athletesHeightWeightBinStroke.svg @@ -11,81 +11,94 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 1.2 + 1.2 - - 1.3 + 1.3 - - 1.4 + 1.4 - - 1.5 + 1.5 - - 1.6 + 1.6 - - 1.7 + 1.7 - - 1.8 + 1.8 - - 1.9 + 1.9 - - 2.0 + 2.0 - - 2.1 + 2.1 - - 2.2 + 2.2 ↑ height + + + + + + + + + + + - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 weight → diff --git a/test/output/athletesHeightWeightSex.svg b/test/output/athletesHeightWeightSex.svg index a14777803f..b761479281 100644 --- a/test/output/athletesHeightWeightSex.svg +++ b/test/output/athletesHeightWeightSex.svg @@ -11,81 +11,94 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 1.2 + 1.2 - - 1.3 + 1.3 - - 1.4 + 1.4 - - 1.5 + 1.5 - - 1.6 + 1.6 - - 1.7 + 1.7 - - 1.8 + 1.8 - - 1.9 + 1.9 - - 2.0 + 2.0 - - 2.1 + 2.1 - - 2.2 + 2.2 ↑ height + + + + + + + + + + + - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 weight → diff --git a/test/output/athletesHeightWeightSport.svg b/test/output/athletesHeightWeightSport.svg index 406c4b541a..9b6e297d7d 100644 --- a/test/output/athletesHeightWeightSport.svg +++ b/test/output/athletesHeightWeightSport.svg @@ -11,117 +11,130 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + - - 1.25 + 1.25 - - 1.30 + 1.30 - - 1.35 + 1.35 - - 1.40 + 1.40 - - 1.45 + 1.45 - - 1.50 + 1.50 - - 1.55 + 1.55 - - 1.60 + 1.60 - - 1.65 + 1.65 - - 1.70 + 1.70 - - 1.75 + 1.75 - - 1.80 + 1.80 - - 1.85 + 1.85 - - 1.90 + 1.90 - - 1.95 + 1.95 - - 2.00 + 2.00 - - 2.05 + 2.05 - - 2.10 + 2.10 - - 2.15 + 2.15 - - 2.20 + 2.20 ↑ height + + + + + + + + + + + - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 weight → diff --git a/test/output/athletesNationality.svg b/test/output/athletesNationality.svg index fd9e0409fa..8447d7899f 100644 --- a/test/output/athletesNationality.svg +++ b/test/output/athletesNationality.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -75,29 +80,33 @@ + + + + + + + + + + - - 0 + 0 - - 100 + 100 - - 200 + 200 - - 300 + 300 - - 400 + 400 - - 500 + 500 Frequency → diff --git a/test/output/athletesSexWeight.svg b/test/output/athletesSexWeight.svg index 4f407d8e95..800a8a080f 100644 --- a/test/output/athletesSexWeight.svg +++ b/test/output/athletesSexWeight.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0 + 0 - - 100 + 100 - - 200 + 200 - - 300 + 300 - - 400 + 400 - - 500 + 500 - - 600 + 600 - - 700 + 700 - - 800 + 800 - - 900 + 900 - - 1,000 + 1,000 ↑ Frequency diff --git a/test/output/athletesSportSex.svg b/test/output/athletesSportSex.svg index 3d8cd6d2b9..346ccec6d2 100644 --- a/test/output/athletesSportSex.svg +++ b/test/output/athletesSportSex.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -99,49 +104,53 @@ + + + + + + + + + + + + + + + - - 0 + 0 - - 10 + 10 - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 - - 100 + 100 Women (%) → diff --git a/test/output/athletesSportWeight.svg b/test/output/athletesSportWeight.svg index 7e1ce1795f..69c973216b 100644 --- a/test/output/athletesSportWeight.svg +++ b/test/output/athletesSportWeight.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -99,34 +104,281 @@ sport + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 40 - 60 - 80 - 100 - 120 - 140 - 160 - weight → diff --git a/test/output/athletesWeight.svg b/test/output/athletesWeight.svg index b471bdae26..34a68fd0d1 100644 --- a/test/output/athletesWeight.svg +++ b/test/output/athletesWeight.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/athletesWeightCumulative.svg b/test/output/athletesWeightCumulative.svg index 4fc471b2ad..9bde5cae1a 100644 --- a/test/output/athletesWeightCumulative.svg +++ b/test/output/athletesWeightCumulative.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/availability.svg b/test/output/availability.svg index 849c0d04a1..93b6fc4d94 100644 --- a/test/output/availability.svg +++ b/test/output/availability.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/ballotStatusRace.svg b/test/output/ballotStatusRace.svg index 489839bbd6..31a5bc45c4 100644 --- a/test/output/ballotStatusRace.svg +++ b/test/output/ballotStatusRace.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -39,21 +44,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 - 20 - 40 - 60 - Frequency (%) → diff --git a/test/output/beckerBarley.svg b/test/output/beckerBarley.svg index 7f8a0ec7b4..77c010c0a4 100644 --- a/test/output/beckerBarley.svg +++ b/test/output/beckerBarley.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -33,297 +38,370 @@ site + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 - 20 - 30 - 40 - 50 - 60 - 70 - yield → + + + + + + + + + + + + + + - - Trebi + Trebi - - Wisconsin No. 38 + Wisconsin No. 38 - - No. 457 + No. 457 - - Glabron + Glabron - - Peatland + Peatland - - Velvet + Velvet - - No. 475 + No. 475 - - Manchuria + Manchuria - - No. 462 + No. 462 - - Svansota + Svansota + + + + + + + + + + + + + + - - Trebi + Trebi - - Wisconsin No. 38 + Wisconsin No. 38 - - No. 457 + No. 457 - - Glabron + Glabron - - Peatland + Peatland - - Velvet + Velvet - - No. 475 + No. 475 - - Manchuria + Manchuria - - No. 462 + No. 462 - - Svansota + Svansota + + + + + + + + + + + + + + - - Trebi + Trebi - - Wisconsin No. 38 + Wisconsin No. 38 - - No. 457 + No. 457 - - Glabron + Glabron - - Peatland + Peatland - - Velvet + Velvet - - No. 475 + No. 475 - - Manchuria + Manchuria - - No. 462 + No. 462 - - Svansota + Svansota + + + + + + + + + + + + + + - - Trebi + Trebi - - Wisconsin No. 38 + Wisconsin No. 38 - - No. 457 + No. 457 - - Glabron + Glabron - - Peatland + Peatland - - Velvet + Velvet - - No. 475 + No. 475 - - Manchuria + Manchuria - - No. 462 + No. 462 - - Svansota + Svansota variety + + + + + + + + + + + + + + - - Trebi + Trebi - - Wisconsin No. 38 + Wisconsin No. 38 - - No. 457 + No. 457 - - Glabron + Glabron - - Peatland + Peatland - - Velvet + Velvet - - No. 475 + No. 475 - - Manchuria + Manchuria - - No. 462 + No. 462 - - Svansota + Svansota + + + + + + + + + + + + + + - - Trebi + Trebi - - Wisconsin No. 38 + Wisconsin No. 38 - - No. 457 + No. 457 - - Glabron + Glabron - - Peatland + Peatland - - Velvet + Velvet - - No. 475 + No. 475 - - Manchuria + Manchuria - - No. 462 + No. 462 - - Svansota + Svansota diff --git a/test/output/caltrain.html b/test/output/caltrain.html index 7763f85a8f..cdb190bf50 100644 --- a/test/output/caltrain.html +++ b/test/output/caltrain.html @@ -45,6 +45,11 @@ .plot-2 text { white-space: pre; } + + .plot-2 .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } Northbound Southbound diff --git a/test/output/carsMpg.svg b/test/output/carsMpg.svg index f0de5307f1..4e8a2fd945 100644 --- a/test/output/carsMpg.svg +++ b/test/output/carsMpg.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - 0 + 0 - - 5 + 5 - - 10 + 10 - - 15 + 15 - - 20 + 20 - - 25 + 25 - - 30 + 30 - - 35 + 35 - - 40 + 40 - - 45 + 45 ↑ economy (mpg) diff --git a/test/output/carsParcoords.svg b/test/output/carsParcoords.svg index 5dc08ea61b..0a83bab62f 100644 --- a/test/output/carsParcoords.svg +++ b/test/output/carsParcoords.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/collapsedHistogram.svg b/test/output/collapsedHistogram.svg index 40d88b823f..fe0327afbf 100644 --- a/test/output/collapsedHistogram.svg +++ b/test/output/collapsedHistogram.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/covidIhmeProjectedDeaths.svg b/test/output/covidIhmeProjectedDeaths.svg index e1c3b1b8d6..88cc373d86 100644 --- a/test/output/covidIhmeProjectedDeaths.svg +++ b/test/output/covidIhmeProjectedDeaths.svg @@ -11,213 +11,226 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - + - - + - - + - - + - - 10 + 10 - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - + - - + - - + - - + - - 100 + 100 - - 200 + 200 - - 300 + 300 - - 400 + 400 - - 500 + 500 - - + - - + - - + - - + - - 1,000 + 1,000 - - 2,000 + 2,000 - - 3,000 + 3,000 - - 4,000 + 4,000 ↑ Deaths per day to COVID-19 (projected) + + + + + + + + + + + + + + + + + + + + + + + + - - March + March - - Mar 08 + Mar 08 - - Mar 15 + Mar 15 - - Mar 22 + Mar 22 - - Mar 29 + Mar 29 - - Apr 05 + Apr 05 - - Apr 12 + Apr 12 - - Apr 19 + Apr 19 - - Apr 26 + Apr 26 - - May 03 + May 03 - - May 10 + May 10 - - May 17 + May 17 - - May 24 + May 24 - - May 31 + May 31 - - Jun 07 + Jun 07 - - Jun 14 + Jun 14 - - Jun 21 + Jun 21 - - Jun 28 + Jun 28 - - Jul 05 + Jul 05 - - Jul 12 + Jul 12 diff --git a/test/output/crimeanWarOverlapped.svg b/test/output/crimeanWarOverlapped.svg index 6694fb196f..3a94a0b7e0 100644 --- a/test/output/crimeanWarOverlapped.svg +++ b/test/output/crimeanWarOverlapped.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/crimeanWarStacked.svg b/test/output/crimeanWarStacked.svg index f4893378ca..59d8591a0c 100644 --- a/test/output/crimeanWarStacked.svg +++ b/test/output/crimeanWarStacked.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/d3Survey2015Comfort.svg b/test/output/d3Survey2015Comfort.svg index b2f0d5ec6b..89fea0ca65 100644 --- a/test/output/d3Survey2015Comfort.svg +++ b/test/output/d3Survey2015Comfort.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -30,49 +35,53 @@ How comfortable are you with d3 now? + + + + + + + + + + + + + + + - - 0 + 0 - - 10 + 10 - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 - - 100 + 100 Frequency (%) → diff --git a/test/output/d3Survey2015Why.svg b/test/output/d3Survey2015Why.svg index 7927ff06e5..1b120403ed 100644 --- a/test/output/d3Survey2015Why.svg +++ b/test/output/d3Survey2015Why.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -60,49 +65,53 @@ Why do you want to learn d3? + + + + + + + + + + + + + + + - - 0 + 0 - - 10 + 10 - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 - - 100 + 100 Frequency (%) → diff --git a/test/output/diamondsCaratPrice.svg b/test/output/diamondsCaratPrice.svg index 2888cf8641..e86084c51c 100644 --- a/test/output/diamondsCaratPrice.svg +++ b/test/output/diamondsCaratPrice.svg @@ -11,8 +11,13 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } - + 1,000 @@ -69,1861 +74,1861 @@ 19,000 - ↑ price + ↑ price - + 0.5 - + 1.0 - + 1.5 - + 2.0 - + 2.5 - + 3.0 - + 3.5 - + 4.0 - + 4.5 - + 5.0 carat → - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/output/diamondsCaratPriceDots.svg b/test/output/diamondsCaratPriceDots.svg index 7bd3539feb..171bf34631 100644 --- a/test/output/diamondsCaratPriceDots.svg +++ b/test/output/diamondsCaratPriceDots.svg @@ -11,1944 +11,2118 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - 1,000 + 1,000 - - 2,000 + 2,000 - - 3,000 + 3,000 - - 4,000 + 4,000 - - 5,000 + 5,000 - - 6,000 + 6,000 - - 7,000 + 7,000 - - 8,000 + 8,000 - - 9,000 + 9,000 - - 10,000 + 10,000 - - 11,000 + 11,000 - - 12,000 + 12,000 - - 13,000 + 13,000 - - 14,000 + 14,000 - - 15,000 + 15,000 - - 16,000 + 16,000 - - 17,000 + 17,000 - - 18,000 - ↑ Price ($) + 18,000 + ↑ Price ($) - - - 0.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.5 - - - 1.0 + + 1.0 - - - 1.5 + + 1.5 - - - 2.0 + + 2.0 - - - 2.5 + + 2.5 - - - 3.0 + + 3.0 - - - 3.5 + + 3.5 - - - 4.0 + + 4.0 - - - 4.5 + + 4.5 - - - 5.0 + + 5.0 Carats → - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/output/empty.svg b/test/output/empty.svg index fb8758cf14..b82ec63eee 100644 --- a/test/output/empty.svg +++ b/test/output/empty.svg @@ -11,97 +11,110 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0.0 + 0.0 - - 0.1 + 0.1 - - 0.2 + 0.2 - - 0.3 + 0.3 - - 0.4 + 0.4 - - 0.5 + 0.5 - - 0.6 + 0.6 - - 0.7 + 0.7 - - 0.8 + 0.8 - - 0.9 + 0.9 - - 1.0 + 1.0 + + + + + + + + + + + + + + + - - 0.0 + 0.0 - - 0.1 + 0.1 - - 0.2 + 0.2 - - 0.3 + 0.3 - - 0.4 + 0.4 - - 0.5 + 0.5 - - 0.6 + 0.6 - - 0.7 + 0.7 - - 0.8 + 0.8 - - 0.9 + 0.9 - - 1.0 + 1.0 diff --git a/test/output/emptyX.svg b/test/output/emptyX.svg index b0d0fe0bef..212a3536d7 100644 --- a/test/output/emptyX.svg +++ b/test/output/emptyX.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } \ No newline at end of file diff --git a/test/output/figcaption.html b/test/output/figcaption.html index 65458003f1..530c2bfc1e 100644 --- a/test/output/figcaption.html +++ b/test/output/figcaption.html @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0 + 0 - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - 6 + 6 - - 7 + 7 - - 8 + 8 - - 9 + 9 - - 10 + 10 - - 11 + 11 - - 12 + 12 ↑ Frequency (%) diff --git a/test/output/figcaptionHtml.html b/test/output/figcaptionHtml.html index 6f56f21678..696de7761c 100644 --- a/test/output/figcaptionHtml.html +++ b/test/output/figcaptionHtml.html @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0 + 0 - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - 6 + 6 - - 7 + 7 - - 8 + 8 - - 9 + 9 - - 10 + 10 - - 11 + 11 - - 12 + 12 ↑ Frequency (%) diff --git a/test/output/firstLadies.svg b/test/output/firstLadies.svg index 7d2f7f0637..eb6370c5a4 100644 --- a/test/output/firstLadies.svg +++ b/test/output/firstLadies.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/footballCoverage.svg b/test/output/footballCoverage.svg index 8f7267f3b0..3927ae63b6 100644 --- a/test/output/footballCoverage.svg +++ b/test/output/footballCoverage.svg @@ -11,51 +11,138 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0% - 5% - 10% - 15% - 20% - 25% - 30% - 35% - 40% - 45% - 50% - diff --git a/test/output/fruitSales.svg b/test/output/fruitSales.svg index d4643128b5..3565954dae 100644 --- a/test/output/fruitSales.svg +++ b/test/output/fruitSales.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/fruitSalesDate.svg b/test/output/fruitSalesDate.svg index 86f39a9527..3186eecf54 100644 --- a/test/output/fruitSalesDate.svg +++ b/test/output/fruitSalesDate.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/gistempAnomaly.svg b/test/output/gistempAnomaly.svg index 8045a47714..5073be82b7 100644 --- a/test/output/gistempAnomaly.svg +++ b/test/output/gistempAnomaly.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - −0.6 + −0.6 - - −0.4 + −0.4 - - −0.2 + −0.2 - - +0.0 + +0.0 - - +0.2 + +0.2 - - +0.4 + +0.4 - - +0.6 + +0.6 - - +0.8 + +0.8 - - +1.0 + +1.0 - - +1.2 + +1.2 ↑ Temperature anomaly (°C) diff --git a/test/output/gistempAnomalyMoving.svg b/test/output/gistempAnomalyMoving.svg index dd5fa2347d..a59716233d 100644 --- a/test/output/gistempAnomalyMoving.svg +++ b/test/output/gistempAnomalyMoving.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - −0.6 + −0.6 - - −0.4 + −0.4 - - −0.2 + −0.2 - - +0.0 + +0.0 - - +0.2 + +0.2 - - +0.4 + +0.4 - - +0.6 + +0.6 - - +0.8 + +0.8 - - +1.0 + +1.0 - - +1.2 + +1.2 ↑ Temperature anomaly (°C) diff --git a/test/output/gistempAnomalyTransform.svg b/test/output/gistempAnomalyTransform.svg index d92151dace..223529ecfc 100644 --- a/test/output/gistempAnomalyTransform.svg +++ b/test/output/gistempAnomalyTransform.svg @@ -11,35 +11,44 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + - - −1.0 + −1.0 - - −0.5 + −0.5 - - +0.0 + +0.0 - - +0.5 + +0.5 - - +1.0 + +1.0 - - +1.5 + +1.5 - - +2.0 + +2.0 ↑ Temperature anomaly (°F) diff --git a/test/output/googleTrendsRidgeline.svg b/test/output/googleTrendsRidgeline.svg index 6607664579..191e993653 100644 --- a/test/output/googleTrendsRidgeline.svg +++ b/test/output/googleTrendsRidgeline.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/gridChoropleth.svg b/test/output/gridChoropleth.svg index 0a5b1f8837..f8e813671b 100644 --- a/test/output/gridChoropleth.svg +++ b/test/output/gridChoropleth.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/hadcrutWarmingStripes.svg b/test/output/hadcrutWarmingStripes.svg index b3cee4841e..a7f3c79026 100644 --- a/test/output/hadcrutWarmingStripes.svg +++ b/test/output/hadcrutWarmingStripes.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/highCardinalityOrdinal.svg b/test/output/highCardinalityOrdinal.svg index f2473874ea..7675adf832 100644 --- a/test/output/highCardinalityOrdinal.svg +++ b/test/output/highCardinalityOrdinal.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/identityScale.svg b/test/output/identityScale.svg index 4b7ebabdf2..86052cf523 100644 --- a/test/output/identityScale.svg +++ b/test/output/identityScale.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/industryUnemployment.svg b/test/output/industryUnemployment.svg index f82b9fd7d0..42749e258a 100644 --- a/test/output/industryUnemployment.svg +++ b/test/output/industryUnemployment.svg @@ -11,39 +11,48 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + - - 0 + 0 - - 2,000 + 2,000 - - 4,000 + 4,000 - - 6,000 + 6,000 - - 8,000 + 8,000 - - 10,000 + 10,000 - - 12,000 + 12,000 - - 14,000 + 14,000 ↑ unemployed diff --git a/test/output/industryUnemploymentShare.svg b/test/output/industryUnemploymentShare.svg index 982a97f99c..13b5eed9fb 100644 --- a/test/output/industryUnemploymentShare.svg +++ b/test/output/industryUnemploymentShare.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0% + 0% - - 10% + 10% - - 20% + 20% - - 30% + 30% - - 40% + 40% - - 50% + 50% - - 60% + 60% - - 70% + 70% - - 80% + 80% - - 90% + 90% - - 100% + 100% ↑ unemployed diff --git a/test/output/industryUnemploymentStream.svg b/test/output/industryUnemploymentStream.svg index 407637bb01..1f2bd6368b 100644 --- a/test/output/industryUnemploymentStream.svg +++ b/test/output/industryUnemploymentStream.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/learningPoverty.svg b/test/output/learningPoverty.svg index 4b405a6eea..41749db39c 100644 --- a/test/output/learningPoverty.svg +++ b/test/output/learningPoverty.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -315,49 +320,53 @@ + + + + + + + + + + + + + + + - - 100% + 100% - - 80% + 80% - - 60% + 60% - - 40% + 40% - - 20% + 20% - - 0% + 0% - - 20% + 20% - - 40% + 40% - - 60% + 60% - - 80% + 80% - - 100% + 100% diff --git a/test/output/letterFrequencyBar.svg b/test/output/letterFrequencyBar.svg index 1d4ddd7b83..4029729bc0 100644 --- a/test/output/letterFrequencyBar.svg +++ b/test/output/letterFrequencyBar.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -93,33 +98,37 @@ + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 Frequency (%) → diff --git a/test/output/letterFrequencyCloud.svg b/test/output/letterFrequencyCloud.svg index 9bd78fc46f..58da103851 100644 --- a/test/output/letterFrequencyCloud.svg +++ b/test/output/letterFrequencyCloud.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } ETAOINSHRDLCUMWFGYPBVKJXQZ \ No newline at end of file diff --git a/test/output/letterFrequencyColumn.svg b/test/output/letterFrequencyColumn.svg index 62513959a1..0a8db17a2a 100644 --- a/test/output/letterFrequencyColumn.svg +++ b/test/output/letterFrequencyColumn.svg @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0 + 0 - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - 6 + 6 - - 7 + 7 - - 8 + 8 - - 9 + 9 - - 10 + 10 - - 11 + 11 - - 12 + 12 ↑ Frequency (%) diff --git a/test/output/letterFrequencyDot.svg b/test/output/letterFrequencyDot.svg index 11919db8db..39acd8acfe 100644 --- a/test/output/letterFrequencyDot.svg +++ b/test/output/letterFrequencyDot.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/letterFrequencyLollipop.svg b/test/output/letterFrequencyLollipop.svg index bda230e520..9fd23cb940 100644 --- a/test/output/letterFrequencyLollipop.svg +++ b/test/output/letterFrequencyLollipop.svg @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0.00 + 0.00 - - 0.01 + 0.01 - - 0.02 + 0.02 - - 0.03 + 0.03 - - 0.04 + 0.04 - - 0.05 + 0.05 - - 0.06 + 0.06 - - 0.07 + 0.07 - - 0.08 + 0.08 - - 0.09 + 0.09 - - 0.10 + 0.10 - - 0.11 + 0.11 - - 0.12 + 0.12 ↑ frequency diff --git a/test/output/logDegenerate.svg b/test/output/logDegenerate.svg index ef5876e1f7..1df575e0c7 100644 --- a/test/output/logDegenerate.svg +++ b/test/output/logDegenerate.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/metroInequality.svg b/test/output/metroInequality.svg index 55e7872a8e..0c99c4d18c 100644 --- a/test/output/metroInequality.svg +++ b/test/output/metroInequality.svg @@ -11,129 +11,142 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + - - 3.4 + 3.4 - - 3.6 + 3.6 - - 3.8 + 3.8 - - 4.0 + 4.0 - - 4.2 + 4.2 - - 4.4 + 4.4 - - 4.6 + 4.6 - - 4.8 + 4.8 - - 5.0 + 5.0 - - 5.2 + 5.2 - - 5.4 + 5.4 - - 5.6 + 5.6 ↑ Inequality + + + + + + + + + + + + + + + + + + + + + + - - 200k + 200k - - 300k + 300k - - + - - + - - + - - + - - + - - + - - 1M + 1M - - 2M + 2M - - 3M + 3M - - + - - + - - + - - + - - + - - + - - 10M + 10M Population → diff --git a/test/output/metroInequalityChange.svg b/test/output/metroInequalityChange.svg index 7b414bec03..19b31f6476 100644 --- a/test/output/metroInequalityChange.svg +++ b/test/output/metroInequalityChange.svg @@ -11,129 +11,142 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 3.5 + 3.5 - - 4.0 + 4.0 - - 4.5 + 4.5 - - 5.0 + 5.0 - - 5.5 + 5.5 - - 6.0 + 6.0 - - 6.5 + 6.5 - - 7.0 + 7.0 - - 7.5 + 7.5 - - 8.0 + 8.0 - - 8.5 + 8.5 ↑ Inequality + + + + + + + + + + + + + + + + + + + + + + + - - 200k + 200k - - 300k + 300k - - + - - + - - + - - + - - + - - + - - 1M + 1M - - 2M + 2M - - 3M + 3M - - + - - + - - + - - + - - + - - + - - 10M + 10M - - 20M + 20M Population → diff --git a/test/output/metroUnemployment.svg b/test/output/metroUnemployment.svg index 85ac672345..f09c580ac2 100644 --- a/test/output/metroUnemployment.svg +++ b/test/output/metroUnemployment.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/metroUnemploymentHighlight.svg b/test/output/metroUnemploymentHighlight.svg index d881a80c91..95326292df 100644 --- a/test/output/metroUnemploymentHighlight.svg +++ b/test/output/metroUnemploymentHighlight.svg @@ -11,43 +11,52 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 ↑ Unemployment (%) diff --git a/test/output/metroUnemploymentIndex.svg b/test/output/metroUnemploymentIndex.svg index 3af5af5069..b4c83f16af 100644 --- a/test/output/metroUnemploymentIndex.svg +++ b/test/output/metroUnemploymentIndex.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/metroUnemploymentMoving.svg b/test/output/metroUnemploymentMoving.svg index 3aaa3b0d62..5f432c976c 100644 --- a/test/output/metroUnemploymentMoving.svg +++ b/test/output/metroUnemploymentMoving.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/metroUnemploymentNormalize.svg b/test/output/metroUnemploymentNormalize.svg index eab9cd8301..2d1a9cb678 100644 --- a/test/output/metroUnemploymentNormalize.svg +++ b/test/output/metroUnemploymentNormalize.svg @@ -11,35 +11,44 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + - - 0.8× + 0.8× - - 0.9× + 0.9× - - + - - + - - + - - + - - + ↑ Change in unemployment (%) diff --git a/test/output/metroUnemploymentRidgeline.svg b/test/output/metroUnemploymentRidgeline.svg index 28419cab1c..0d4f8bbc42 100644 --- a/test/output/metroUnemploymentRidgeline.svg +++ b/test/output/metroUnemploymentRidgeline.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/metroUnemploymentStroke.svg b/test/output/metroUnemploymentStroke.svg index 7af3583a07..346ff78430 100644 --- a/test/output/metroUnemploymentStroke.svg +++ b/test/output/metroUnemploymentStroke.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/mobyDickFaceted.svg b/test/output/mobyDickFaceted.svg index 53c093dfed..086716617a 100644 --- a/test/output/mobyDickFaceted.svg +++ b/test/output/mobyDickFaceted.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -31,65 +36,91 @@ + + + + + + + + + + + + + + + + + + + + 0 - 200 - 400 - 600 - 800 - 1,000 - 1,200 - ↑ Frequency + + + + + + + + + + + + + + + + + + + + 0 - 200 - 400 - 600 - 800 - 1,000 - 1,200 - diff --git a/test/output/mobyDickLetterFrequency.svg b/test/output/mobyDickLetterFrequency.svg index a578a863e4..30e802c2ca 100644 --- a/test/output/mobyDickLetterFrequency.svg +++ b/test/output/mobyDickLetterFrequency.svg @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0 + 0 - - 100 + 100 - - 200 + 200 - - 300 + 300 - - 400 + 400 - - 500 + 500 - - 600 + 600 - - 700 + 700 - - 800 + 800 - - 900 + 900 - - 1,000 + 1,000 - - 1,100 + 1,100 - - 1,200 + 1,200 ↑ Frequency diff --git a/test/output/mobyDickLetterPairs.svg b/test/output/mobyDickLetterPairs.svg index 7cc8338bb9..2e2695db8f 100644 --- a/test/output/mobyDickLetterPairs.svg +++ b/test/output/mobyDickLetterPairs.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/mobyDickLetterPosition.svg b/test/output/mobyDickLetterPosition.svg index 77123c6a1f..b5c3d8e816 100644 --- a/test/output/mobyDickLetterPosition.svg +++ b/test/output/mobyDickLetterPosition.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/mobyDickLetterRelativeFrequency.svg b/test/output/mobyDickLetterRelativeFrequency.svg index 606db4daba..d6c073fe08 100644 --- a/test/output/mobyDickLetterRelativeFrequency.svg +++ b/test/output/mobyDickLetterRelativeFrequency.svg @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0 + 0 - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - 6 + 6 - - 7 + 7 - - 8 + 8 - - 9 + 9 - - 10 + 10 - - 11 + 11 - - 12 + 12 ↑ Frequency (%) diff --git a/test/output/morleyBoxplot.svg b/test/output/morleyBoxplot.svg index e149fd7c34..7a89c6e6d3 100644 --- a/test/output/morleyBoxplot.svg +++ b/test/output/morleyBoxplot.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -30,41 +35,45 @@ Expt + + + + + + + + + + + + + - - 650 + 650 - - 700 + 700 - - 750 + 750 - - 800 + 800 - - 850 + 850 - - 900 + 900 - - 950 + 950 - - 1,000 + 1,000 - - 1,050 + 1,050 Speed → diff --git a/test/output/moviesProfitByGenre.svg b/test/output/moviesProfitByGenre.svg index d887f8f2cf..bbfabc1a33 100644 --- a/test/output/moviesProfitByGenre.svg +++ b/test/output/moviesProfitByGenre.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -54,29 +59,33 @@ + + + + + + + + + + - - 0 + 0 - - 200 + 200 - - 400 + 400 - - 600 + 600 - - 800 + 800 - - 1,000 + 1,000 Profit ($M) → diff --git a/test/output/musicRevenue.svg b/test/output/musicRevenue.svg index 465a3625a3..6e78df7297 100644 --- a/test/output/musicRevenue.svg +++ b/test/output/musicRevenue.svg @@ -11,55 +11,64 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 - - 18 + 18 - - 20 + 20 - - 22 + 22 ↑ Annual revenue (billions, adj.) diff --git a/test/output/ordinalBar.svg b/test/output/ordinalBar.svg index 2d823947f6..5636ae0001 100644 --- a/test/output/ordinalBar.svg +++ b/test/output/ordinalBar.svg @@ -11,35 +11,44 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + - - 0 + 0 - - A + A - - B + B - - C + C - - D + D - - E + E - - F + F diff --git a/test/output/penguinCulmen.svg b/test/output/penguinCulmen.svg index 825c182fff..e68d454d42 100644 --- a/test/output/penguinCulmen.svg +++ b/test/output/penguinCulmen.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -37,109 +42,188 @@ + + + + + + + + + + + + + + + + + + + + + + + 35 - 40 - 45 - 50 - 55 - ↑ culmen_length_mm + + + + + + + + + + + + + + + + 35 - 40 - 45 - 50 - 55 - + + + + + + + + + + + + + + + + + + + + + + + 35 - 40 - 45 - 50 - 55 - + + + + + + + + + + + + + + 15 - 20 - + + + + + + + + + + + + + + 15 - 20 - + + + + + + + + + + 15 - 20 - culmen_depth_mm → diff --git a/test/output/penguinCulmenArray.svg b/test/output/penguinCulmenArray.svg index 326f2920ba..04f9379c3f 100644 --- a/test/output/penguinCulmenArray.svg +++ b/test/output/penguinCulmenArray.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -37,109 +42,188 @@ + + + + + + + + + + + + + + + + + + + + + + + 35 - 40 - 45 - 50 - 55 - + + + + + + + + + + + + + + + + 35 - 40 - 45 - 50 - 55 - + + + + + + + + + + + + + + + + + + + + + + + 35 - 40 - 45 - 50 - 55 - + + + + + + + + + + + + + + 15 - 20 - + + + + + + + + + + + + + + 15 - 20 - + + + + + + + + + + 15 - 20 - diff --git a/test/output/penguinIslandUnknown.svg b/test/output/penguinIslandUnknown.svg index b7a48d6ba2..4e16312774 100644 --- a/test/output/penguinIslandUnknown.svg +++ b/test/output/penguinIslandUnknown.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/penguinMass.svg b/test/output/penguinMass.svg index d02d9c3435..73bbdebbba 100644 --- a/test/output/penguinMass.svg +++ b/test/output/penguinMass.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - 0 + 0 - - 10 + 10 - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 ↑ Frequency diff --git a/test/output/penguinMassSex.svg b/test/output/penguinMassSex.svg index c6db1311af..bdaf4e13ef 100644 --- a/test/output/penguinMassSex.svg +++ b/test/output/penguinMassSex.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/penguinMassSexSpecies.svg b/test/output/penguinMassSexSpecies.svg index 8f7008571a..d6a9ee8836 100644 --- a/test/output/penguinMassSexSpecies.svg +++ b/test/output/penguinMassSexSpecies.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/penguinMassSpecies.svg b/test/output/penguinMassSpecies.svg index 997f981cf2..c61fa45196 100644 --- a/test/output/penguinMassSpecies.svg +++ b/test/output/penguinMassSpecies.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - 0 + 0 - - 10 + 10 - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 ↑ Frequency diff --git a/test/output/penguinSex.svg b/test/output/penguinSex.svg index 44249f6d19..a619072410 100644 --- a/test/output/penguinSex.svg +++ b/test/output/penguinSex.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/penguinSexMassCulmenSpecies.svg b/test/output/penguinSexMassCulmenSpecies.svg index 0f31bdcf6c..58123e51fa 100644 --- a/test/output/penguinSexMassCulmenSpecies.svg +++ b/test/output/penguinSexMassCulmenSpecies.svg @@ -11,59 +11,98 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 34 - 36 - 38 - 40 - 42 - 44 - 46 - 48 - 50 - 52 - 54 - 56 - 58 - ↑ culmen_length_mm @@ -80,97 +119,109 @@ + + + + + + + + + + + - - 3k + 3k - - 3.5k + 3.5k - - 4k + 4k - - 4.5k + 4.5k - - 5k + 5k - - 5.5k + 5.5k - - 6k + 6k + + + + + + + + + + + - - 3k + 3k - - 3.5k + 3.5k - - 4k + 4k - - 4.5k + 4.5k - - 5k + 5k - - 5.5k + 5.5k - - 6k + 6k + + + + + + + + + + + - - 3k + 3k - - 3.5k + 3.5k - - 4k + 4k - - 4.5k + 4.5k - - 5k + 5k - - 5.5k + 5.5k - - 6k + 6k body_mass_g → diff --git a/test/output/penguinSpeciesGroup.svg b/test/output/penguinSpeciesGroup.svg index d5cbcdd47f..1c712e1724 100644 --- a/test/output/penguinSpeciesGroup.svg +++ b/test/output/penguinSpeciesGroup.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/penguinSpeciesIsland.svg b/test/output/penguinSpeciesIsland.svg index 4db10f5453..1a67200f29 100644 --- a/test/output/penguinSpeciesIsland.svg +++ b/test/output/penguinSpeciesIsland.svg @@ -11,39 +11,48 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + - - 0 + 0 - - 20 + 20 - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 ↑ Frequency diff --git a/test/output/penguinSpeciesIslandRelative.svg b/test/output/penguinSpeciesIslandRelative.svg index 86970ae3ee..0da09971cf 100644 --- a/test/output/penguinSpeciesIslandRelative.svg +++ b/test/output/penguinSpeciesIslandRelative.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/penguinSpeciesIslandSex.svg b/test/output/penguinSpeciesIslandSex.svg index b3353c80d0..3988337bc4 100644 --- a/test/output/penguinSpeciesIslandSex.svg +++ b/test/output/penguinSpeciesIslandSex.svg @@ -11,67 +11,110 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 - 5 - 10 - 15 - 20 - 25 - 30 - 35 - 40 - 45 - 50 - 55 - 60 - 65 - 70 - ↑ Frequency diff --git a/test/output/polylinear.svg b/test/output/polylinear.svg index 7d8f7a8607..acc7ecb6db 100644 --- a/test/output/polylinear.svg +++ b/test/output/polylinear.svg @@ -11,99 +11,108 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + - - 05 + 05 - - 06 + 06 - - 07 + 07 - - 08 + 08 - - 09 + 09 - - 10 + 10 - - 11 + 11 - - 12 + 12 - - 13 + 13 - - 14 + 14 - - 15 + 15 - - 16 + 16 - - 17 + 17 - - 18 + 18 - - 19 + 19 - - 20 + 20 - - 21 + 21 - - 22 + 22 - - 23 + 23 - - 24 + 24 - - 25 + 25 - - 26 + 26 - - 27 + 27 date → diff --git a/test/output/randomBins.svg b/test/output/randomBins.svg index 3b088ef38a..0e21d43126 100644 --- a/test/output/randomBins.svg +++ b/test/output/randomBins.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/randomBinsXY.svg b/test/output/randomBinsXY.svg index ee1d026890..3a7362b02b 100644 --- a/test/output/randomBinsXY.svg +++ b/test/output/randomBinsXY.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/randomQuantile.svg b/test/output/randomQuantile.svg index c883b4e785..f7244f3833 100644 --- a/test/output/randomQuantile.svg +++ b/test/output/randomQuantile.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/randomWalk.svg b/test/output/randomWalk.svg index eaf0e519dd..048bd8eaf1 100644 --- a/test/output/randomWalk.svg +++ b/test/output/randomWalk.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/seattlePrecipitationRule.svg b/test/output/seattlePrecipitationRule.svg index 41a472562e..72f23a07c5 100644 --- a/test/output/seattlePrecipitationRule.svg +++ b/test/output/seattlePrecipitationRule.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/seattleTemperatureBand.svg b/test/output/seattleTemperatureBand.svg index a407cd847c..a4b7921c85 100644 --- a/test/output/seattleTemperatureBand.svg +++ b/test/output/seattleTemperatureBand.svg @@ -11,39 +11,48 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + - - 20 + 20 - - 30 + 30 - - 40 + 40 - - 50 + 50 - - 60 + 60 - - 70 + 70 - - 80 + 80 - - 90 + 90 ↑ Temperature (°F) diff --git a/test/output/seattleTemperatureCell.svg b/test/output/seattleTemperatureCell.svg index a88c40126d..8a9140848b 100644 --- a/test/output/seattleTemperatureCell.svg +++ b/test/output/seattleTemperatureCell.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/sfCovidDeaths.svg b/test/output/sfCovidDeaths.svg index 98d5bcc2fd..6b255244a8 100644 --- a/test/output/sfCovidDeaths.svg +++ b/test/output/sfCovidDeaths.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/sfTemperatureBand.svg b/test/output/sfTemperatureBand.svg index fb9fd2ad8e..6449d30f5a 100644 --- a/test/output/sfTemperatureBand.svg +++ b/test/output/sfTemperatureBand.svg @@ -11,43 +11,52 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + - - 40 + 40 - - 45 + 45 - - 50 + 50 - - 55 + 55 - - 60 + 60 - - 65 + 65 - - 70 + 70 - - 75 + 75 - - 80 + 80 ↑ Daily temperature range (°F) diff --git a/test/output/sfTemperatureBandArea.svg b/test/output/sfTemperatureBandArea.svg index 137c02c876..770686c0d3 100644 --- a/test/output/sfTemperatureBandArea.svg +++ b/test/output/sfTemperatureBandArea.svg @@ -11,67 +11,76 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + - - 42 + 42 - - 44 + 44 - - 46 + 46 - - 48 + 48 - - 50 + 50 - - 52 + 52 - - 54 + 54 - - 56 + 56 - - 58 + 58 - - 60 + 60 - - 62 + 62 - - 64 + 64 - - 66 + 66 - - 68 + 68 - - 70 + 70 ↑ Daily temperature range (°F) diff --git a/test/output/simpsonsRatings.svg b/test/output/simpsonsRatings.svg index d4d8cd19c9..f0889c28c2 100644 --- a/test/output/simpsonsRatings.svg +++ b/test/output/simpsonsRatings.svg @@ -11,221 +11,234 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - 6 + 6 - - 7 + 7 - - 8 + 8 - - 9 + 9 - - 10 + 10 - - 11 + 11 - - 12 + 12 - - 13 + 13 - - 14 + 14 - - 15 + 15 - - 16 + 16 - - 17 + 17 - - 18 + 18 - - 19 + 19 - - 20 + 20 - - 21 + 21 - - 22 + 22 - - 23 + 23 - - 24 + 24 - - 25 + 25 - - 26 + 26 - - 27 + 27 - - 28 + 28 Season + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - 1 + 1 - - 2 + 2 - - 3 + 3 - - 4 + 4 - - 5 + 5 - - 6 + 6 - - 7 + 7 - - 8 + 8 - - 9 + 9 - - 10 + 10 - - 11 + 11 - - 12 + 12 - - 13 + 13 - - 14 + 14 - - 15 + 15 - - 16 + 16 - - 17 + 17 - - 18 + 18 - - 19 + 19 - - 20 + 20 - - 21 + 21 - - 22 + 22 - - 23 + 23 - - 24 + 24 - - 25 + 25 Episode diff --git a/test/output/simpsonsRatingsDots.svg b/test/output/simpsonsRatingsDots.svg index fc132499e9..668afeb6cd 100644 --- a/test/output/simpsonsRatingsDots.svg +++ b/test/output/simpsonsRatingsDots.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/simpsonsViews.svg b/test/output/simpsonsViews.svg index 4a479a2ee4..40ab206252 100644 --- a/test/output/simpsonsViews.svg +++ b/test/output/simpsonsViews.svg @@ -11,117 +11,130 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 - - 18 + 18 - - 20 + 20 - - 22 + 22 - - 24 + 24 - - 26 + 26 - - 28 + 28 - - 30 + 30 - - 32 + 32 ↑ Viewers (U.S., millions) + + + + + + + + + + + + + + - - 4.5 + 4.5 - - 5.0 + 5.0 - - 5.5 + 5.5 - - 6.0 + 6.0 - - 6.5 + 6.5 - - 7.0 + 7.0 - - 7.5 + 7.5 - - 8.0 + 8.0 - - 8.5 + 8.5 - - 9.0 + 9.0 IMDB rating → diff --git a/test/output/singleValueBar.svg b/test/output/singleValueBar.svg index a2e489cb2a..22801c46ea 100644 --- a/test/output/singleValueBar.svg +++ b/test/output/singleValueBar.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/singleValueBin.svg b/test/output/singleValueBin.svg index 795c302cec..00c8937a52 100644 --- a/test/output/singleValueBin.svg +++ b/test/output/singleValueBin.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/softwareVersions.svg b/test/output/softwareVersions.svg index ec45265e54..5c04cda11d 100644 --- a/test/output/softwareVersions.svg +++ b/test/output/softwareVersions.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/stackedBar.svg b/test/output/stackedBar.svg index 01039c9cd8..30283b70ee 100644 --- a/test/output/stackedBar.svg +++ b/test/output/stackedBar.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/stackedRect.svg b/test/output/stackedRect.svg index 46083dfc5d..473c695119 100644 --- a/test/output/stackedRect.svg +++ b/test/output/stackedRect.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/stargazers.svg b/test/output/stargazers.svg index 00b0b68830..c8af8b02ab 100644 --- a/test/output/stargazers.svg +++ b/test/output/stargazers.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0 + 0 - - 100 + 100 - - 200 + 200 - - 300 + 300 - - 400 + 400 - - 500 + 500 - - 600 + 600 - - 700 + 700 - - 800 + 800 - - 900 + 900 - - 1,000 + 1,000 ↑ Stargazers diff --git a/test/output/stargazersBinned.svg b/test/output/stargazersBinned.svg index 03f0efb80a..85af0e8f3d 100644 --- a/test/output/stargazersBinned.svg +++ b/test/output/stargazersBinned.svg @@ -11,59 +11,68 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + - - 0 + 0 - - 50 + 50 - - 100 + 100 - - 150 + 150 - - 200 + 200 - - 250 + 250 - - 300 + 300 - - 350 + 350 - - 400 + 400 - - 450 + 450 - - 500 + 500 - - 550 + 550 - - 600 + 600 ↑ Stargazers added per week diff --git a/test/output/stargazersHourly.svg b/test/output/stargazersHourly.svg index 94dd7bfb10..7ed42624a7 100644 --- a/test/output/stargazersHourly.svg +++ b/test/output/stargazersHourly.svg @@ -11,63 +11,72 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + - - 0 + 0 - - 20 + 20 - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 - - 180 + 180 - - 200 + 200 - - 220 + 220 - - 240 + 240 - - 260 + 260 ↑ Frequency diff --git a/test/output/stargazersHourlyGroup.svg b/test/output/stargazersHourlyGroup.svg index a89bcdcb95..5bb21ef87a 100644 --- a/test/output/stargazersHourlyGroup.svg +++ b/test/output/stargazersHourlyGroup.svg @@ -11,63 +11,72 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + - - 0 + 0 - - 20 + 20 - - 40 + 40 - - 60 + 60 - - 80 + 80 - - 100 + 100 - - 120 + 120 - - 140 + 140 - - 160 + 160 - - 180 + 180 - - 200 + 200 - - 220 + 220 - - 240 + 240 - - 260 + 260 ↑ Frequency diff --git a/test/output/stocksIndex.svg b/test/output/stocksIndex.svg index 1accf66c91..b230c85617 100644 --- a/test/output/stocksIndex.svg +++ b/test/output/stocksIndex.svg @@ -11,47 +11,56 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + - - −40 + −40 - - −30 + −30 - - −20 + −20 - - −10 + −10 - - +0 + +0 - - +100 + +100 - - +200 + +200 - - +300 + +300 - - +400 + +400 - - +500 + +500 ↑ Change in price (%) diff --git a/test/output/travelersYearOverYear.svg b/test/output/travelersYearOverYear.svg index 0a70a65223..c8a6a7f044 100644 --- a/test/output/travelersYearOverYear.svg +++ b/test/output/travelersYearOverYear.svg @@ -11,71 +11,80 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + - - 0.0 + 0.0 - - 0.2 + 0.2 - - 0.4 + 0.4 - - 0.6 + 0.6 - - 0.8 + 0.8 - - 1.0 + 1.0 - - 1.2 + 1.2 - - 1.4 + 1.4 - - 1.6 + 1.6 - - 1.8 + 1.8 - - 2.0 + 2.0 - - 2.2 + 2.2 - - 2.4 + 2.4 - - 2.6 + 2.6 - - 2.8 + 2.8 - - 3.0 + 3.0 ↑ Travelers per day (millions) diff --git a/test/output/uniformRandomDifference.svg b/test/output/uniformRandomDifference.svg index 793d5d4eec..eec3a4adc5 100644 --- a/test/output/uniformRandomDifference.svg +++ b/test/output/uniformRandomDifference.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0.0 + 0.0 - - 0.5 + 0.5 - - 1.0 + 1.0 - - 1.5 + 1.5 - - 2.0 + 2.0 - - 2.5 + 2.5 - - 3.0 + 3.0 - - 3.5 + 3.5 - - 4.0 + 4.0 - - 4.5 + 4.5 - - 5.0 + 5.0 ↑ Frequency (%) diff --git a/test/output/untypedDateBin.svg b/test/output/untypedDateBin.svg index 92c87ad32c..a52db1a6e4 100644 --- a/test/output/untypedDateBin.svg +++ b/test/output/untypedDateBin.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/usCongressAge.svg b/test/output/usCongressAge.svg index 27bfe72dfa..b9c5aec641 100644 --- a/test/output/usCongressAge.svg +++ b/test/output/usCongressAge.svg @@ -11,35 +11,44 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + - - 0 + 0 - - 5 + 5 - - 10 + 10 - - 15 + 15 - - 20 + 20 - - 25 + 25 - - 30 + 30 ↑ Frequency diff --git a/test/output/usCongressAgeGender.svg b/test/output/usCongressAgeGender.svg index 2d2829658d..6da8c17558 100644 --- a/test/output/usCongressAgeGender.svg +++ b/test/output/usCongressAgeGender.svg @@ -11,39 +11,48 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + - - 10 + 10 - - 5 + 5 - - 0 + 0 - - 5 + 5 - - 10 + 10 - - 15 + 15 - - 20 + 20 - - 25 + 25 ← Women · Men → diff --git a/test/output/usPopulationStateAge.svg b/test/output/usPopulationStateAge.svg index 2e9e4aa3de..b1f2cff992 100644 --- a/test/output/usPopulationStateAge.svg +++ b/test/output/usPopulationStateAge.svg @@ -11,89 +11,102 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + - - <10 + <10 - - 10-19 + 10-19 - - 20-29 + 20-29 - - 30-39 + 30-39 - - 40-49 + 40-49 - - 50-59 + 50-59 - - 60-69 + 60-69 - - 70-79 + 70-79 - - ≥80 + ≥80 Age + + + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 - - 18 + 18 - - 20 + 20 Percent (%) → diff --git a/test/output/usPopulationStateAgeDots.svg b/test/output/usPopulationStateAgeDots.svg index 3c8e6e8190..64d4701999 100644 --- a/test/output/usPopulationStateAgeDots.svg +++ b/test/output/usPopulationStateAgeDots.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 - - 18 + 18 - - 20 + 20 Percent (%) → diff --git a/test/output/usPresidentFavorabilityDots.svg b/test/output/usPresidentFavorabilityDots.svg index bfb923b743..110c729f21 100644 --- a/test/output/usPresidentFavorabilityDots.svg +++ b/test/output/usPresidentFavorabilityDots.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - −30 + −30 - - −20 + −20 - - −10 + −10 - - +0 + +0 - - +10 + +10 - - +20 + +20 - - +30 + +30 - - +40 + +40 - - +50 + +50 - - +60 + +60 - - +70 + +70 Net favorability (%) diff --git a/test/output/usPresidentialElection2020.svg b/test/output/usPresidentialElection2020.svg index 43bbb09084..78eb0a00d8 100644 --- a/test/output/usPresidentialElection2020.svg +++ b/test/output/usPresidentialElection2020.svg @@ -11,217 +11,230 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - - + - - + - - 100 + 100 - - 200 + 200 - - 300 + 300 - - + - - + - - + - - + - - + - - + - - 1k + 1k - - 2k + 2k - - 3k + 3k - - + - - + - - + - - + - - + - - + - - 10k + 10k - - 20k + 20k - - 30k + 30k - - + - - + - - + - - + - - + - - + - - 100k + 100k - - 200k + 200k - - 300k + 300k - - + - - + - - + - - + - - + - - + - - 1M + 1M - - 2M + 2M - - 3M + 3M - - + ↑ Total number of votes + + + + + + + + + + + + + - - −80 + −80 - - −60 + −60 - - −40 + −40 - - −20 + −20 - - +0 + +0 - - +20 + +20 - - +40 + +40 - - +60 + +60 - - +80 + +80 ← Biden · Vote margin (%) · Trump → diff --git a/test/output/usPresidentialForecast2016.svg b/test/output/usPresidentialForecast2016.svg index 6380645d3b..3a342661bc 100644 --- a/test/output/usPresidentialForecast2016.svg +++ b/test/output/usPresidentialForecast2016.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/usRetailSales.svg b/test/output/usRetailSales.svg index 8cb19b4271..2c1cbba0bc 100644 --- a/test/output/usRetailSales.svg +++ b/test/output/usRetailSales.svg @@ -11,55 +11,64 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + - - 0 + 0 - - 50 + 50 - - 100 + 100 - - 150 + 150 - - 200 + 200 - - 250 + 250 - - 300 + 300 - - 350 + 350 - - 400 + 400 - - 450 + 450 - - 500 + 500 - - 550 + 550 U.S. retail monthly sales (in billions, seasonally-adjusted) diff --git a/test/output/usStatePopulationChange.svg b/test/output/usStatePopulationChange.svg index 11696f45ff..6c93904f41 100644 --- a/test/output/usStatePopulationChange.svg +++ b/test/output/usStatePopulationChange.svg @@ -11,253 +11,266 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - Texas + Texas - - Florida + Florida - - California + California - - North Carolina + North Carolina - - Georgia + Georgia - - Washington + Washington - - Arizona + Arizona - - Colorado + Colorado - - Virginia + Virginia - - South Carolina + South Carolina - - Tennessee + Tennessee - - Utah + Utah - - Massachusetts + Massachusetts - - Oregon + Oregon - - Nevada + Nevada - - Minnesota + Minnesota - - Maryland + Maryland - - Indiana + Indiana - - Idaho + Idaho - - Oklahoma + Oklahoma - - Ohio + Ohio - - Missouri + Missouri - - Wisconsin + Wisconsin - - Kentucky + Kentucky - - Alabama + Alabama - - Louisiana + Louisiana - - Iowa + Iowa - - Nebraska + Nebraska - - District of Columbia + District of Columbia - - Michigan + Michigan - - Arkansas + Arkansas - - Pennsylvania + Pennsylvania - - New Jersey + New Jersey - - North Dakota + North Dakota - - Montana + Montana - - Delaware + Delaware - - New York + New York - - South Dakota + South Dakota - - Kansas + Kansas - - Hawaii + Hawaii - - New Hampshire + New Hampshire - - New Mexico + New Mexico - - Alaska + Alaska - - Maine + Maine - - Wyoming + Wyoming - - Mississippi + Mississippi - - Rhode Island + Rhode Island - - Vermont + Vermont - - Connecticut + Connecticut - - West Virginia + West Virginia - - Illinois + Illinois - - Puerto Rico + Puerto Rico + + + + + + + + + + + + + - - −0.5 + −0.5 - - +0.0 + +0.0 - - +0.5 + +0.5 - - +1.0 + +1.0 - - +1.5 + +1.5 - - +2.0 + +2.0 - - +2.5 + +2.5 - - +3.0 + +3.0 - - +3.5 + +3.5 ← decrease · Change in population, 2010–2019 (millions) · increase → diff --git a/test/output/wealthBritainBar.svg b/test/output/wealthBritainBar.svg index c9102a3e8c..4b3091ba91 100644 --- a/test/output/wealthBritainBar.svg +++ b/test/output/wealthBritainBar.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/wealthBritainProportionPlot.svg b/test/output/wealthBritainProportionPlot.svg index 5e86d14ea6..65909da4dc 100644 --- a/test/output/wealthBritainProportionPlot.svg +++ b/test/output/wealthBritainProportionPlot.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/wordCloud.svg b/test/output/wordCloud.svg index 78640ec538..2141e27ab2 100644 --- a/test/output/wordCloud.svg +++ b/test/output/wordCloud.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } a (69)about (7)account (2)ago (2)air (2)all (23)almost (3)aloft (2)always (2)am (4)among (2)an (4)and (73)any (2)are (5)as (26)at (5)be (9)because (4)been (2)before (3)begin (2)being (4)besides (2)better (2)between (2)broiled (3)but (15)by (8)can (6)cannot (2)captain (2)care (2)chief (2)city (2)come (3)commodore (2)content (2)cook (3)could (2)country (2)crowds (2)deck (2)deep (2)did (5)distant (2)do (8)does (2)down (6)each (2)else (2)ever (5)every (4)exactly (2)fates (2)find (2)first (4)fixed (2)for (16)forecastle (2)from (11)get (6)glory (2)go (12)going (4)grand (3)great (3)grow (2)hand (3)have (8)having (2)he (10)head (4)healthy (2)here (5)high (4)hill (2)him (3)himself (2)his (10)how (3)however (2)hunks (2)i (43)if (9)image (3)in (48)into (9)is (34)ishmael (2)it (33)its (2)just (2)land (6)lead (2)leaders (2)leaves (2)let (2)like (6)little (4)long (2)look (2)magic (2)make (2)man (3)mast (2)may (3)me (25)meadow (2)mean (2)meaning (2)men (4)metaphysical (2)miles (3)money (4)more (6)most (5)motives (2)much (4)must (4)my (14)myself (3)never (5)no (6)not (11)nothing (3)now (5)ocean (2)of (81)off (3)officer (2)old (6)on (12)once (2)one (10)or (10)order (2)other (5)others (2)ourselves (2)out (3)over (2)own (2)paid (2)part (7)particular (2)parts (3)passenger (4)passengers (3)pay (2)paying (3)perhaps (2)phantom (2)plunged (2)point (2)previous (2)purse (3)requires (2)respectfully (2)reveries (2)right (3)robust (2)round (2)sail (2)sailor (5)same (5)say (3)schoolmaster (2)scores (2)sea (13)seas (2)see (6)set (3)shepherds (2)ship (3)ships (3)should (3)sight (2)sleep (2)so (4)some (11)something (3)sort (3)soul (3)spar (2)stand (5)still (3)stream (2)streets (2)strong (2)such (5)take (6)tell (4)than (4)that (31)the (124)their (4)them (5)themselves (2)then (5)there (16)these (4)they (12)thing (2)things (4)think (2)thinks (2)this (17)those (4)though (7)thousand (2)thousands (2)thump (2)time (6)to (53)two (4)under (2)unless (2)up (4)upon (9)voyage (6)warehouses (2)was (8)water (8)way (6)we (3)well (2)were (7)whale (3)whaling (5)what (9)when (5)whenever (5)where (2)which (4)who (5)why (7)wild (2)will (6)winds (3)with (13)without (3)world (4)would (4)yet (4)yonder (2)you (23)your (6) \ No newline at end of file diff --git a/test/output/wordLengthMobyDick.svg b/test/output/wordLengthMobyDick.svg index 31ea71fdef..dd4a4a4ddd 100644 --- a/test/output/wordLengthMobyDick.svg +++ b/test/output/wordLengthMobyDick.svg @@ -11,51 +11,60 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + + + - - 0 + 0 - - 2 + 2 - - 4 + 4 - - 6 + 6 - - 8 + 8 - - 10 + 10 - - 12 + 12 - - 14 + 14 - - 16 + 16 - - 18 + 18 - - 20 + 20 ↑ Frequency (%) diff --git a/test/plots/diamonds-carat-price-dots.js b/test/plots/diamonds-carat-price-dots.js index ba3f19d469..0f56e338ff 100644 --- a/test/plots/diamonds-carat-price-dots.js +++ b/test/plots/diamonds-carat-price-dots.js @@ -5,7 +5,8 @@ export default async function() { const data = await d3.csv("data/diamonds.csv", d3.autoType); return Plot.plot({ height: 640, - grid: true, + marginLeft: 44, + grid: 100, x: { label: "Carats →" }, diff --git a/test/plots/diamonds-carat-price.js b/test/plots/diamonds-carat-price.js index 3a86705ab5..26803d0fe4 100644 --- a/test/plots/diamonds-carat-price.js +++ b/test/plots/diamonds-carat-price.js @@ -5,6 +5,7 @@ export default async function() { const data = await d3.csv("data/diamonds.csv", d3.autoType); return Plot.plot({ height: 640, + marginLeft: 44, color: { scheme: "bupu", type: "symlog" From e03b7e55fef9f283da40ee82e5900c81782aac6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Wed, 15 Dec 2021 09:47:38 +0100 Subject: [PATCH 3/8] simpler * creates only one mark for each grid under each facet, using a single path instead of many lines. (We might have to create separate paths in the future when we do grid transitions) * much more readable --- src/axis.js | 44 ++- src/mark.js | 2 +- test/output/aaplBollinger.svg | 17 +- test/output/aaplCandlestick.svg | 20 +- test/output/aaplChangeVolume.svg | 28 +- test/output/aaplClose.svg | 13 +- test/output/aaplCloseUntyped.svg | 13 +- test/output/aaplVolume.svg | 12 +- test/output/aaplVolumeRect.svg | 17 +- test/output/anscombeQuartet.svg | 56 +--- test/output/athletesHeightWeight.svg | 33 +-- test/output/athletesHeightWeightBin.svg | 24 +- test/output/athletesHeightWeightBinStroke.svg | 24 +- test/output/athletesHeightWeightSex.svg | 24 +- test/output/athletesHeightWeightSport.svg | 33 +-- test/output/athletesNationality.svg | 9 +- test/output/athletesSexWeight.svg | 14 +- test/output/athletesSportSex.svg | 14 +- test/output/athletesSportWeight.svg | 280 ++---------------- test/output/ballotStatusRace.svg | 56 +--- test/output/beckerBarley.svg | 138 +-------- test/output/carsMpg.svg | 13 +- test/output/covidIhmeProjectedDeaths.svg | 57 +--- test/output/d3Survey2015Comfort.svg | 14 +- test/output/d3Survey2015Why.svg | 14 +- test/output/diamondsCaratPriceDots.svg | 195 +----------- test/output/empty.svg | 28 +- test/output/figcaption.html | 16 +- test/output/figcaptionHtml.html | 16 +- test/output/footballCoverage.svg | 98 +----- test/output/gistempAnomaly.svg | 13 +- test/output/gistempAnomalyMoving.svg | 13 +- test/output/gistempAnomalyTransform.svg | 10 +- test/output/industryUnemployment.svg | 11 +- test/output/industryUnemploymentShare.svg | 14 +- test/output/learningPoverty.svg | 14 +- test/output/letterFrequencyBar.svg | 10 +- test/output/letterFrequencyColumn.svg | 16 +- test/output/letterFrequencyLollipop.svg | 16 +- test/output/metroInequality.svg | 36 +-- test/output/metroInequalityChange.svg | 36 +-- test/output/metroUnemploymentHighlight.svg | 12 +- test/output/metroUnemploymentNormalize.svg | 10 +- test/output/mobyDickFaceted.svg | 40 +-- test/output/mobyDickLetterFrequency.svg | 16 +- .../mobyDickLetterRelativeFrequency.svg | 16 +- test/output/morleyBoxplot.svg | 12 +- test/output/moviesProfitByGenre.svg | 9 +- test/output/musicRevenue.svg | 15 +- test/output/ordinalBar.svg | 10 +- test/output/penguinCulmen.svg | 104 +------ test/output/penguinCulmenArray.svg | 104 +------ test/output/penguinMass.svg | 13 +- test/output/penguinMassSpecies.svg | 13 +- test/output/penguinSexMassCulmenSpecies.svg | 78 +---- test/output/penguinSpeciesIsland.svg | 11 +- test/output/penguinSpeciesIslandSex.svg | 54 +--- test/output/polylinear.svg | 26 +- test/output/seattleTemperatureBand.svg | 11 +- test/output/sfTemperatureBand.svg | 12 +- test/output/sfTemperatureBandArea.svg | 18 +- test/output/simpsonsRatings.svg | 59 +--- test/output/simpsonsViews.svg | 33 +-- test/output/stargazers.svg | 14 +- test/output/stargazersBinned.svg | 16 +- test/output/stargazersHourly.svg | 17 +- test/output/stargazersHourlyGroup.svg | 17 +- test/output/stocksIndex.svg | 13 +- test/output/travelersYearOverYear.svg | 19 +- test/output/uniformRandomDifference.svg | 14 +- test/output/usCongressAge.svg | 10 +- test/output/usCongressAgeGender.svg | 11 +- test/output/usPopulationStateAge.svg | 26 +- test/output/usPopulationStateAgeDots.svg | 14 +- test/output/usPresidentFavorabilityDots.svg | 14 +- test/output/usPresidentialElection2020.svg | 58 +--- test/output/usRetailSales.svg | 15 +- test/output/usStatePopulationChange.svg | 67 +---- test/output/wordLengthMobyDick.svg | 14 +- 79 files changed, 211 insertions(+), 2315 deletions(-) diff --git a/src/axis.js b/src/axis.js index ff9f1db90a..6ff093c3c4 100644 --- a/src/axis.js +++ b/src/axis.js @@ -67,7 +67,12 @@ export class AxisX { const ty = offsetSign * offset + (axis === "top" ? marginTop : height - marginBottom); return create("svg:g") .attr("transform", `translate(0,${ty})`) - .call(!grid ? () => {} : makeGridX(grid(x, ticks), fy ? fy.bandwidth() : offsetSign * (marginBottom + marginTop - height), index, fy, ty)) + .call(!grid ? () => {} + : createGridX( + grid(x, ticks), + fy ? fy.bandwidth() : offsetSign * (marginBottom + marginTop - height), + fy ? take(fy.domain().map(d => fy(d) - ty), index) : [0] + )) .call(createAxis(axis === "top" ? axisTop : axisBottom, x, this)) .call(maybeTickRotate, tickRotate) .attr("font-size", null) @@ -151,7 +156,12 @@ export class AxisY { const tx = offsetSign * offset + (axis === "right" ? width - marginRight : marginLeft); return create("svg:g") .attr("transform", `translate(${tx},0)`) - .call(!grid ? () => {} : makeGridY(grid(y, ticks), fx ? fx.bandwidth() : offsetSign * (marginLeft + marginRight - width), index, fx, tx)) + .call(!grid ? () => {} + : createGridY( + grid(y, ticks), + fx ? fx.bandwidth() : offsetSign * (marginLeft + marginRight - width), + fx ? take(fx.domain().map(d => fx(d) - tx), index) : [0] + )) .call(createAxis(axis === "right" ? axisRight : axisLeft, y, this)) .call(maybeTickRotate, tickRotate) .attr("font-size", null) @@ -219,40 +229,22 @@ function maybeTickRotate(g, rotate) { } } -function makeGridX(ticks, dy, index, fy, ty) { - const domain = fy ? fy.domain() : [ty]; - let steps = index ? take(domain, index) : domain; - if (fy) steps = steps.map(fy); +function createGridX(ticks, dy, steps) { return g => g.append("g") .attr("class", "grid") .selectAll() .data(steps) - .join("g") - .attr("transform", v => `translate(${offset},${v - ty})`) - .selectAll() - .data(() => ticks) - .join("line") - .attr("x1", d => d) - .attr("x2", d => d) - .attr("y1", dy); + .join("path") + .attr("d", v => ticks.map(d => `M${offset + d},${v}v${dy}`).join("")); } -function makeGridY(ticks, dx, index, fx, tx) { - const domain = fx ? fx.domain() : [tx]; - let steps = index ? take(domain, index) : domain; - if (fx) steps = steps.map(fx); +function createGridY(ticks, dx, steps) { return g => g.append("g") .attr("class", "grid") .selectAll() .data(steps) - .join("g") - .attr("transform", v => `translate(${v - tx},${offset})`) - .selectAll() - .data(() => ticks) - .join("line") - .attr("y1", d => d) - .attr("y2", d => d) - .attr("x1", dx); + .join("path") + .attr("d", v => ticks.map(d => `M${v},${offset + d}h${dx}`).join("")); } function maybeTicks(grid) { diff --git a/src/mark.js b/src/mark.js index 7996b1a420..a763a500a1 100644 --- a/src/mark.js +++ b/src/mark.js @@ -220,7 +220,7 @@ export function where(data, test) { // Returns an array [values[index[0]], values[index[1]], …]. export function take(values, index) { - return Array.from(index, i => values[i]); + return index ? Array.from(index, i => values[i]) : values; } export function maybeInput(key, options) { diff --git a/test/output/aaplBollinger.svg b/test/output/aaplBollinger.svg index ddefe426ac..4734d49fc2 100644 --- a/test/output/aaplBollinger.svg +++ b/test/output/aaplBollinger.svg @@ -19,22 +19,7 @@ - - - - - - - - - - - - - - - - + 60 diff --git a/test/output/aaplCandlestick.svg b/test/output/aaplCandlestick.svg index 4ab6247f02..d5d497824d 100644 --- a/test/output/aaplCandlestick.svg +++ b/test/output/aaplCandlestick.svg @@ -19,16 +19,7 @@ - - - - - - - - - - + 155 @@ -57,14 +48,7 @@ - - - - - - - - + December diff --git a/test/output/aaplChangeVolume.svg b/test/output/aaplChangeVolume.svg index 631127069d..f0cc47504c 100644 --- a/test/output/aaplChangeVolume.svg +++ b/test/output/aaplChangeVolume.svg @@ -19,22 +19,7 @@ - - - - - - - - - - - - - - - - + 7.1 @@ -81,16 +66,7 @@ - - - - - - - - - - + −6 diff --git a/test/output/aaplClose.svg b/test/output/aaplClose.svg index a56b057727..e274bbd9b2 100644 --- a/test/output/aaplClose.svg +++ b/test/output/aaplClose.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + 0 diff --git a/test/output/aaplCloseUntyped.svg b/test/output/aaplCloseUntyped.svg index 3674f2bcca..778f0bf035 100644 --- a/test/output/aaplCloseUntyped.svg +++ b/test/output/aaplCloseUntyped.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + 0 diff --git a/test/output/aaplVolume.svg b/test/output/aaplVolume.svg index 3b00f010b3..60c5fc76a4 100644 --- a/test/output/aaplVolume.svg +++ b/test/output/aaplVolume.svg @@ -19,17 +19,7 @@ - - - - - - - - - - - + 0 diff --git a/test/output/aaplVolumeRect.svg b/test/output/aaplVolumeRect.svg index d84f383793..6960640def 100644 --- a/test/output/aaplVolumeRect.svg +++ b/test/output/aaplVolumeRect.svg @@ -19,22 +19,7 @@ - - - - - - - - - - - - - - - - + 0 diff --git a/test/output/anscombeQuartet.svg b/test/output/anscombeQuartet.svg index e9b079ca4d..5ff00d18b1 100644 --- a/test/output/anscombeQuartet.svg +++ b/test/output/anscombeQuartet.svg @@ -19,34 +19,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + 4 @@ -82,11 +58,7 @@ - - - - - + 5 @@ -102,11 +74,7 @@ - - - - - + 5 @@ -122,11 +90,7 @@ - - - - - + 5 @@ -142,11 +106,7 @@ - - - - - + 5 diff --git a/test/output/athletesHeightWeight.svg b/test/output/athletesHeightWeight.svg index 78ba4a1e75..1b56f383c2 100644 --- a/test/output/athletesHeightWeight.svg +++ b/test/output/athletesHeightWeight.svg @@ -19,28 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - + 1.25 @@ -105,15 +84,7 @@ - - - - - - - - - + 40 diff --git a/test/output/athletesHeightWeightBin.svg b/test/output/athletesHeightWeightBin.svg index 7ae74aeb7d..0935c81f62 100644 --- a/test/output/athletesHeightWeightBin.svg +++ b/test/output/athletesHeightWeightBin.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 1.2 @@ -69,15 +57,7 @@ - - - - - - - - - + 40 diff --git a/test/output/athletesHeightWeightBinStroke.svg b/test/output/athletesHeightWeightBinStroke.svg index a1ece5a78d..6f32e93422 100644 --- a/test/output/athletesHeightWeightBinStroke.svg +++ b/test/output/athletesHeightWeightBinStroke.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 1.2 @@ -69,15 +57,7 @@ - - - - - - - - - + 40 diff --git a/test/output/athletesHeightWeightSex.svg b/test/output/athletesHeightWeightSex.svg index b761479281..51b43c47ed 100644 --- a/test/output/athletesHeightWeightSex.svg +++ b/test/output/athletesHeightWeightSex.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 1.2 @@ -69,15 +57,7 @@ - - - - - - - - - + 40 diff --git a/test/output/athletesHeightWeightSport.svg b/test/output/athletesHeightWeightSport.svg index 9b6e297d7d..4fb3343173 100644 --- a/test/output/athletesHeightWeightSport.svg +++ b/test/output/athletesHeightWeightSport.svg @@ -19,28 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - + 1.25 @@ -105,15 +84,7 @@ - - - - - - - - - + 40 diff --git a/test/output/athletesNationality.svg b/test/output/athletesNationality.svg index 8447d7899f..8f5e5a2868 100644 --- a/test/output/athletesNationality.svg +++ b/test/output/athletesNationality.svg @@ -81,14 +81,7 @@ - - - - - - - - + 0 diff --git a/test/output/athletesSexWeight.svg b/test/output/athletesSexWeight.svg index 800a8a080f..4a0ca6814a 100644 --- a/test/output/athletesSexWeight.svg +++ b/test/output/athletesSexWeight.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/athletesSportSex.svg b/test/output/athletesSportSex.svg index 346ccec6d2..bb3623071d 100644 --- a/test/output/athletesSportSex.svg +++ b/test/output/athletesSportSex.svg @@ -105,19 +105,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/athletesSportWeight.svg b/test/output/athletesSportWeight.svg index 69c973216b..fe936b1313 100644 --- a/test/output/athletesSportWeight.svg +++ b/test/output/athletesSportWeight.svg @@ -105,258 +105,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/output/ballotStatusRace.svg b/test/output/ballotStatusRace.svg index 31a5bc45c4..31ddfe9c77 100644 --- a/test/output/ballotStatusRace.svg +++ b/test/output/ballotStatusRace.svg @@ -45,54 +45,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + 0 diff --git a/test/output/beckerBarley.svg b/test/output/beckerBarley.svg index 77c010c0a4..ec7e09ed4e 100644 --- a/test/output/beckerBarley.svg +++ b/test/output/beckerBarley.svg @@ -39,60 +39,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + 10 @@ -120,18 +72,7 @@ - - - - - - - - - - - - + Trebi @@ -168,18 +109,7 @@ - - - - - - - - - - - - + Trebi @@ -216,18 +146,7 @@ - - - - - - - - - - - - + Trebi @@ -264,18 +183,7 @@ - - - - - - - - - - - - + Trebi @@ -312,18 +220,7 @@ - - - - - - - - - - - - + Trebi @@ -360,18 +257,7 @@ - - - - - - - - - - - - + Trebi diff --git a/test/output/carsMpg.svg b/test/output/carsMpg.svg index 4e8a2fd945..40cf328090 100644 --- a/test/output/carsMpg.svg +++ b/test/output/carsMpg.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + 0 diff --git a/test/output/covidIhmeProjectedDeaths.svg b/test/output/covidIhmeProjectedDeaths.svg index 88cc373d86..a7b1bdfd62 100644 --- a/test/output/covidIhmeProjectedDeaths.svg +++ b/test/output/covidIhmeProjectedDeaths.svg @@ -19,39 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 @@ -149,28 +117,7 @@ - - - - - - - - - - - - - - - - - - - - - - + March diff --git a/test/output/d3Survey2015Comfort.svg b/test/output/d3Survey2015Comfort.svg index 89fea0ca65..13978541c6 100644 --- a/test/output/d3Survey2015Comfort.svg +++ b/test/output/d3Survey2015Comfort.svg @@ -36,19 +36,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/d3Survey2015Why.svg b/test/output/d3Survey2015Why.svg index 1b120403ed..ec6c47fc94 100644 --- a/test/output/d3Survey2015Why.svg +++ b/test/output/d3Survey2015Why.svg @@ -66,19 +66,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/diamondsCaratPriceDots.svg b/test/output/diamondsCaratPriceDots.svg index 171bf34631..61824037e0 100644 --- a/test/output/diamondsCaratPriceDots.svg +++ b/test/output/diamondsCaratPriceDots.svg @@ -19,101 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1,000 @@ -172,104 +78,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 0.5 diff --git a/test/output/empty.svg b/test/output/empty.svg index b82ec63eee..ed2946253c 100644 --- a/test/output/empty.svg +++ b/test/output/empty.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0.0 @@ -69,19 +57,7 @@ - - - - - - - - - - - - - + 0.0 diff --git a/test/output/figcaption.html b/test/output/figcaption.html index 530c2bfc1e..2c4eaad35c 100644 --- a/test/output/figcaption.html +++ b/test/output/figcaption.html @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0 diff --git a/test/output/figcaptionHtml.html b/test/output/figcaptionHtml.html index 696de7761c..081aa35540 100644 --- a/test/output/figcaptionHtml.html +++ b/test/output/figcaptionHtml.html @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0 diff --git a/test/output/footballCoverage.svg b/test/output/footballCoverage.svg index 3927ae63b6..4886ee7e9b 100644 --- a/test/output/footballCoverage.svg +++ b/test/output/footballCoverage.svg @@ -19,97 +19,13 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + 0% diff --git a/test/output/gistempAnomaly.svg b/test/output/gistempAnomaly.svg index 5073be82b7..b7c3670a00 100644 --- a/test/output/gistempAnomaly.svg +++ b/test/output/gistempAnomaly.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + −0.6 diff --git a/test/output/gistempAnomalyMoving.svg b/test/output/gistempAnomalyMoving.svg index a59716233d..4d26a20988 100644 --- a/test/output/gistempAnomalyMoving.svg +++ b/test/output/gistempAnomalyMoving.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + −0.6 diff --git a/test/output/gistempAnomalyTransform.svg b/test/output/gistempAnomalyTransform.svg index 223529ecfc..ab9e1602f0 100644 --- a/test/output/gistempAnomalyTransform.svg +++ b/test/output/gistempAnomalyTransform.svg @@ -19,15 +19,7 @@ - - - - - - - - - + −1.0 diff --git a/test/output/industryUnemployment.svg b/test/output/industryUnemployment.svg index 42749e258a..b5a9a1054b 100644 --- a/test/output/industryUnemployment.svg +++ b/test/output/industryUnemployment.svg @@ -19,16 +19,7 @@ - - - - - - - - - - + 0 diff --git a/test/output/industryUnemploymentShare.svg b/test/output/industryUnemploymentShare.svg index 13b5eed9fb..9961e445b6 100644 --- a/test/output/industryUnemploymentShare.svg +++ b/test/output/industryUnemploymentShare.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0% diff --git a/test/output/learningPoverty.svg b/test/output/learningPoverty.svg index 41749db39c..c271fc1721 100644 --- a/test/output/learningPoverty.svg +++ b/test/output/learningPoverty.svg @@ -321,19 +321,7 @@ - - - - - - - - - - - - - + 100% diff --git a/test/output/letterFrequencyBar.svg b/test/output/letterFrequencyBar.svg index 4029729bc0..2e864a1ab8 100644 --- a/test/output/letterFrequencyBar.svg +++ b/test/output/letterFrequencyBar.svg @@ -99,15 +99,7 @@ - - - - - - - - - + 0 diff --git a/test/output/letterFrequencyColumn.svg b/test/output/letterFrequencyColumn.svg index 0a8db17a2a..f4d40846cd 100644 --- a/test/output/letterFrequencyColumn.svg +++ b/test/output/letterFrequencyColumn.svg @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0 diff --git a/test/output/letterFrequencyLollipop.svg b/test/output/letterFrequencyLollipop.svg index 9fd23cb940..5c31cc17d2 100644 --- a/test/output/letterFrequencyLollipop.svg +++ b/test/output/letterFrequencyLollipop.svg @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0.00 diff --git a/test/output/metroInequality.svg b/test/output/metroInequality.svg index 0c99c4d18c..de56114386 100644 --- a/test/output/metroInequality.svg +++ b/test/output/metroInequality.svg @@ -19,20 +19,7 @@ - - - - - - - - - - - - - - + 3.4 @@ -73,26 +60,7 @@ - - - - - - - - - - - - - - - - - - - - + 200k diff --git a/test/output/metroInequalityChange.svg b/test/output/metroInequalityChange.svg index 19b31f6476..e9cb52cd65 100644 --- a/test/output/metroInequalityChange.svg +++ b/test/output/metroInequalityChange.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 3.5 @@ -69,27 +57,7 @@ - - - - - - - - - - - - - - - - - - - - - + 200k diff --git a/test/output/metroUnemploymentHighlight.svg b/test/output/metroUnemploymentHighlight.svg index 95326292df..1b1178b9d5 100644 --- a/test/output/metroUnemploymentHighlight.svg +++ b/test/output/metroUnemploymentHighlight.svg @@ -19,17 +19,7 @@ - - - - - - - - - - - + 0 diff --git a/test/output/metroUnemploymentNormalize.svg b/test/output/metroUnemploymentNormalize.svg index 2d1a9cb678..13b11569ae 100644 --- a/test/output/metroUnemploymentNormalize.svg +++ b/test/output/metroUnemploymentNormalize.svg @@ -19,15 +19,7 @@ - - - - - - - - - + 0.8× diff --git a/test/output/mobyDickFaceted.svg b/test/output/mobyDickFaceted.svg index 086716617a..4fd8316340 100644 --- a/test/output/mobyDickFaceted.svg +++ b/test/output/mobyDickFaceted.svg @@ -37,24 +37,8 @@ - - - - - - - - - - - - - - - - - - + + 0 @@ -82,24 +66,8 @@ - - - - - - - - - - - - - - - - - - + + 0 diff --git a/test/output/mobyDickLetterFrequency.svg b/test/output/mobyDickLetterFrequency.svg index 30e802c2ca..247095d610 100644 --- a/test/output/mobyDickLetterFrequency.svg +++ b/test/output/mobyDickLetterFrequency.svg @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0 diff --git a/test/output/mobyDickLetterRelativeFrequency.svg b/test/output/mobyDickLetterRelativeFrequency.svg index d6c073fe08..7f826263e1 100644 --- a/test/output/mobyDickLetterRelativeFrequency.svg +++ b/test/output/mobyDickLetterRelativeFrequency.svg @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0 diff --git a/test/output/morleyBoxplot.svg b/test/output/morleyBoxplot.svg index 7a89c6e6d3..9241fa289b 100644 --- a/test/output/morleyBoxplot.svg +++ b/test/output/morleyBoxplot.svg @@ -36,17 +36,7 @@ - - - - - - - - - - - + 650 diff --git a/test/output/moviesProfitByGenre.svg b/test/output/moviesProfitByGenre.svg index bbfabc1a33..59288dd574 100644 --- a/test/output/moviesProfitByGenre.svg +++ b/test/output/moviesProfitByGenre.svg @@ -60,14 +60,7 @@ - - - - - - - - + 0 diff --git a/test/output/musicRevenue.svg b/test/output/musicRevenue.svg index 6e78df7297..75732df012 100644 --- a/test/output/musicRevenue.svg +++ b/test/output/musicRevenue.svg @@ -19,20 +19,7 @@ - - - - - - - - - - - - - - + 0 diff --git a/test/output/ordinalBar.svg b/test/output/ordinalBar.svg index 5636ae0001..605e4ceaba 100644 --- a/test/output/ordinalBar.svg +++ b/test/output/ordinalBar.svg @@ -19,15 +19,7 @@ - - - - - - - - - + 0 diff --git a/test/output/penguinCulmen.svg b/test/output/penguinCulmen.svg index e68d454d42..a2a46effed 100644 --- a/test/output/penguinCulmen.svg +++ b/test/output/penguinCulmen.svg @@ -43,27 +43,9 @@ - - - - - - - - - - - - - - - - - - - - - + + + 35 @@ -85,20 +67,8 @@ - - - - - - - - - - - - - - + + 35 @@ -120,27 +90,9 @@ - - - - - - - - - - - - - - - - - - - - - + + + 35 @@ -162,18 +114,9 @@ - - - - - - - - - - - - + + + 15 @@ -186,18 +129,9 @@ - - - - - - - - - - - - + + + 15 @@ -210,14 +144,8 @@ - - - - - - - - + + 15 diff --git a/test/output/penguinCulmenArray.svg b/test/output/penguinCulmenArray.svg index 04f9379c3f..f92f0f5acc 100644 --- a/test/output/penguinCulmenArray.svg +++ b/test/output/penguinCulmenArray.svg @@ -43,27 +43,9 @@ - - - - - - - - - - - - - - - - - - - - - + + + 35 @@ -85,20 +67,8 @@ - - - - - - - - - - - - - - + + 35 @@ -120,27 +90,9 @@ - - - - - - - - - - - - - - - - - - - - - + + + 35 @@ -162,18 +114,9 @@ - - - - - - - - - - - - + + + 15 @@ -186,18 +129,9 @@ - - - - - - - - - - - - + + + 15 @@ -210,14 +144,8 @@ - - - - - - - - + + 15 diff --git a/test/output/penguinMass.svg b/test/output/penguinMass.svg index 73bbdebbba..590a2925c4 100644 --- a/test/output/penguinMass.svg +++ b/test/output/penguinMass.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + 0 diff --git a/test/output/penguinMassSpecies.svg b/test/output/penguinMassSpecies.svg index c61fa45196..5009cdf901 100644 --- a/test/output/penguinMassSpecies.svg +++ b/test/output/penguinMassSpecies.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + 0 diff --git a/test/output/penguinSexMassCulmenSpecies.svg b/test/output/penguinSexMassCulmenSpecies.svg index 58123e51fa..93a9f59830 100644 --- a/test/output/penguinSexMassCulmenSpecies.svg +++ b/test/output/penguinSexMassCulmenSpecies.svg @@ -19,51 +19,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 34 @@ -120,15 +78,7 @@ - - - - - - - - - + 3k @@ -156,15 +106,7 @@ - - - - - - - - - + 3k @@ -192,15 +134,7 @@ - - - - - - - - - + 3k diff --git a/test/output/penguinSpeciesIsland.svg b/test/output/penguinSpeciesIsland.svg index 1a67200f29..e906bf640e 100644 --- a/test/output/penguinSpeciesIsland.svg +++ b/test/output/penguinSpeciesIsland.svg @@ -19,16 +19,7 @@ - - - - - - - - - - + 0 diff --git a/test/output/penguinSpeciesIslandSex.svg b/test/output/penguinSpeciesIslandSex.svg index 3988337bc4..bbecb3758d 100644 --- a/test/output/penguinSpeciesIslandSex.svg +++ b/test/output/penguinSpeciesIslandSex.svg @@ -19,57 +19,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 0 diff --git a/test/output/polylinear.svg b/test/output/polylinear.svg index acc7ecb6db..efda2df933 100644 --- a/test/output/polylinear.svg +++ b/test/output/polylinear.svg @@ -19,31 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + 05 diff --git a/test/output/seattleTemperatureBand.svg b/test/output/seattleTemperatureBand.svg index a4b7921c85..00d27bf014 100644 --- a/test/output/seattleTemperatureBand.svg +++ b/test/output/seattleTemperatureBand.svg @@ -19,16 +19,7 @@ - - - - - - - - - - + 20 diff --git a/test/output/sfTemperatureBand.svg b/test/output/sfTemperatureBand.svg index 6449d30f5a..31bf5f0b24 100644 --- a/test/output/sfTemperatureBand.svg +++ b/test/output/sfTemperatureBand.svg @@ -19,17 +19,7 @@ - - - - - - - - - - - + 40 diff --git a/test/output/sfTemperatureBandArea.svg b/test/output/sfTemperatureBandArea.svg index 770686c0d3..aacf233ba6 100644 --- a/test/output/sfTemperatureBandArea.svg +++ b/test/output/sfTemperatureBandArea.svg @@ -19,23 +19,7 @@ - - - - - - - - - - - - - - - - - + 42 diff --git a/test/output/simpsonsRatings.svg b/test/output/simpsonsRatings.svg index f0889c28c2..a171a6568b 100644 --- a/test/output/simpsonsRatings.svg +++ b/test/output/simpsonsRatings.svg @@ -19,36 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 @@ -137,33 +108,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 diff --git a/test/output/simpsonsViews.svg b/test/output/simpsonsViews.svg index 40ab206252..40511c588b 100644 --- a/test/output/simpsonsViews.svg +++ b/test/output/simpsonsViews.svg @@ -19,25 +19,7 @@ - - - - - - - - - - - - - - - - - - - + 0 @@ -93,18 +75,7 @@ - - - - - - - - - - - - + 4.5 diff --git a/test/output/stargazers.svg b/test/output/stargazers.svg index c8af8b02ab..ee3db11e43 100644 --- a/test/output/stargazers.svg +++ b/test/output/stargazers.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/stargazersBinned.svg b/test/output/stargazersBinned.svg index 85af0e8f3d..91a684b824 100644 --- a/test/output/stargazersBinned.svg +++ b/test/output/stargazersBinned.svg @@ -19,21 +19,7 @@ - - - - - - - - - - - - - - - + 0 diff --git a/test/output/stargazersHourly.svg b/test/output/stargazersHourly.svg index 7ed42624a7..eada35f0c8 100644 --- a/test/output/stargazersHourly.svg +++ b/test/output/stargazersHourly.svg @@ -19,22 +19,7 @@ - - - - - - - - - - - - - - - - + 0 diff --git a/test/output/stargazersHourlyGroup.svg b/test/output/stargazersHourlyGroup.svg index 5bb21ef87a..2fba89c7f2 100644 --- a/test/output/stargazersHourlyGroup.svg +++ b/test/output/stargazersHourlyGroup.svg @@ -19,22 +19,7 @@ - - - - - - - - - - - - - - - - + 0 diff --git a/test/output/stocksIndex.svg b/test/output/stocksIndex.svg index b230c85617..0e9fc192d9 100644 --- a/test/output/stocksIndex.svg +++ b/test/output/stocksIndex.svg @@ -19,18 +19,7 @@ - - - - - - - - - - - - + −40 diff --git a/test/output/travelersYearOverYear.svg b/test/output/travelersYearOverYear.svg index c8a6a7f044..0e24db50d5 100644 --- a/test/output/travelersYearOverYear.svg +++ b/test/output/travelersYearOverYear.svg @@ -19,24 +19,7 @@ - - - - - - - - - - - - - - - - - - + 0.0 diff --git a/test/output/uniformRandomDifference.svg b/test/output/uniformRandomDifference.svg index eec3a4adc5..233ced5dd1 100644 --- a/test/output/uniformRandomDifference.svg +++ b/test/output/uniformRandomDifference.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0.0 diff --git a/test/output/usCongressAge.svg b/test/output/usCongressAge.svg index b9c5aec641..2aaed754eb 100644 --- a/test/output/usCongressAge.svg +++ b/test/output/usCongressAge.svg @@ -19,15 +19,7 @@ - - - - - - - - - + 0 diff --git a/test/output/usCongressAgeGender.svg b/test/output/usCongressAgeGender.svg index 6da8c17558..15157424ef 100644 --- a/test/output/usCongressAgeGender.svg +++ b/test/output/usCongressAgeGender.svg @@ -19,16 +19,7 @@ - - - - - - - - - - + 10 diff --git a/test/output/usPopulationStateAge.svg b/test/output/usPopulationStateAge.svg index b1f2cff992..c4b1e296f6 100644 --- a/test/output/usPopulationStateAge.svg +++ b/test/output/usPopulationStateAge.svg @@ -19,17 +19,7 @@ - - - - - - - - - - - + <10 @@ -61,19 +51,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/usPopulationStateAgeDots.svg b/test/output/usPopulationStateAgeDots.svg index 64d4701999..8f1886bf42 100644 --- a/test/output/usPopulationStateAgeDots.svg +++ b/test/output/usPopulationStateAgeDots.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0 diff --git a/test/output/usPresidentFavorabilityDots.svg b/test/output/usPresidentFavorabilityDots.svg index 110c729f21..be3ee8e241 100644 --- a/test/output/usPresidentFavorabilityDots.svg +++ b/test/output/usPresidentFavorabilityDots.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + −30 diff --git a/test/output/usPresidentialElection2020.svg b/test/output/usPresidentialElection2020.svg index 78eb0a00d8..bdaebca845 100644 --- a/test/output/usPresidentialElection2020.svg +++ b/test/output/usPresidentialElection2020.svg @@ -19,51 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -197,17 +153,7 @@ - - - - - - - - - - - + −80 diff --git a/test/output/usRetailSales.svg b/test/output/usRetailSales.svg index 2c1cbba0bc..3f09362f86 100644 --- a/test/output/usRetailSales.svg +++ b/test/output/usRetailSales.svg @@ -19,20 +19,7 @@ - - - - - - - - - - - - - - + 0 diff --git a/test/output/usStatePopulationChange.svg b/test/output/usStatePopulationChange.svg index 6c93904f41..8719d5d4fc 100644 --- a/test/output/usStatePopulationChange.svg +++ b/test/output/usStatePopulationChange.svg @@ -19,60 +19,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Texas @@ -233,17 +180,7 @@ - - - - - - - - - - - + −0.5 diff --git a/test/output/wordLengthMobyDick.svg b/test/output/wordLengthMobyDick.svg index dd4a4a4ddd..0d7a77f318 100644 --- a/test/output/wordLengthMobyDick.svg +++ b/test/output/wordLengthMobyDick.svg @@ -19,19 +19,7 @@ - - - - - - - - - - - - - + 0 From 04535d5648f1fe577059e6cd4b85215ddca55835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Wed, 15 Dec 2021 15:14:59 +0100 Subject: [PATCH 4/8] back to individual paths, will allow selection (to vary the stroke-dasharray) and transitions (which is why we pass the unscaled ticks). --- src/axis.js | 28 +- test/output/aaplBollinger.svg | 17 +- test/output/aaplCandlestick.svg | 20 +- test/output/aaplChangeVolume.svg | 28 +- test/output/aaplClose.svg | 13 +- test/output/aaplCloseUntyped.svg | 13 +- test/output/aaplVolume.svg | 12 +- test/output/aaplVolumeRect.svg | 17 +- test/output/anscombeQuartet.svg | 56 +++- test/output/athletesHeightWeight.svg | 33 ++- test/output/athletesHeightWeightBin.svg | 24 +- test/output/athletesHeightWeightBinStroke.svg | 24 +- test/output/athletesHeightWeightSex.svg | 24 +- test/output/athletesHeightWeightSport.svg | 33 ++- test/output/athletesNationality.svg | 9 +- test/output/athletesSexWeight.svg | 14 +- test/output/athletesSportSex.svg | 14 +- test/output/athletesSportWeight.svg | 280 ++++++++++++++++-- test/output/ballotStatusRace.svg | 56 +++- test/output/beckerBarley.svg | 138 ++++++++- test/output/carsMpg.svg | 13 +- test/output/covidIhmeProjectedDeaths.svg | 57 +++- test/output/d3Survey2015Comfort.svg | 14 +- test/output/d3Survey2015Why.svg | 14 +- test/output/diamondsCaratPriceDots.svg | 195 +++++++++++- test/output/empty.svg | 28 +- test/output/figcaption.html | 16 +- test/output/figcaptionHtml.html | 16 +- test/output/footballCoverage.svg | 98 +++++- test/output/gistempAnomaly.svg | 13 +- test/output/gistempAnomalyMoving.svg | 13 +- test/output/gistempAnomalyTransform.svg | 10 +- test/output/industryUnemployment.svg | 11 +- test/output/industryUnemploymentShare.svg | 14 +- test/output/learningPoverty.svg | 14 +- test/output/letterFrequencyBar.svg | 10 +- test/output/letterFrequencyColumn.svg | 16 +- test/output/letterFrequencyLollipop.svg | 16 +- test/output/metroInequality.svg | 36 ++- test/output/metroInequalityChange.svg | 36 ++- test/output/metroUnemploymentHighlight.svg | 12 +- test/output/metroUnemploymentNormalize.svg | 10 +- test/output/mobyDickFaceted.svg | 40 ++- test/output/mobyDickLetterFrequency.svg | 16 +- .../mobyDickLetterRelativeFrequency.svg | 16 +- test/output/morleyBoxplot.svg | 12 +- test/output/moviesProfitByGenre.svg | 9 +- test/output/musicRevenue.svg | 15 +- test/output/ordinalBar.svg | 10 +- test/output/penguinCulmen.svg | 104 ++++++- test/output/penguinCulmenArray.svg | 104 ++++++- test/output/penguinMass.svg | 13 +- test/output/penguinMassSpecies.svg | 13 +- test/output/penguinSexMassCulmenSpecies.svg | 78 ++++- test/output/penguinSpeciesIsland.svg | 11 +- test/output/penguinSpeciesIslandSex.svg | 54 +++- test/output/polylinear.svg | 26 +- test/output/seattleTemperatureBand.svg | 11 +- test/output/sfTemperatureBand.svg | 12 +- test/output/sfTemperatureBandArea.svg | 18 +- test/output/simpsonsRatings.svg | 59 +++- test/output/simpsonsViews.svg | 33 ++- test/output/stargazers.svg | 14 +- test/output/stargazersBinned.svg | 16 +- test/output/stargazersHourly.svg | 17 +- test/output/stargazersHourlyGroup.svg | 17 +- test/output/stocksIndex.svg | 13 +- test/output/travelersYearOverYear.svg | 19 +- test/output/uniformRandomDifference.svg | 14 +- test/output/usCongressAge.svg | 10 +- test/output/usCongressAgeGender.svg | 11 +- test/output/usPopulationStateAge.svg | 26 +- test/output/usPopulationStateAgeDots.svg | 14 +- test/output/usPresidentFavorabilityDots.svg | 14 +- test/output/usPresidentialElection2020.svg | 58 +++- test/output/usRetailSales.svg | 15 +- test/output/usStatePopulationChange.svg | 67 ++++- test/output/wordLengthMobyDick.svg | 14 +- 78 files changed, 2307 insertions(+), 201 deletions(-) diff --git a/src/axis.js b/src/axis.js index 6ff093c3c4..09945ce122 100644 --- a/src/axis.js +++ b/src/axis.js @@ -70,6 +70,7 @@ export class AxisX { .call(!grid ? () => {} : createGridX( grid(x, ticks), + x, fy ? fy.bandwidth() : offsetSign * (marginBottom + marginTop - height), fy ? take(fy.domain().map(d => fy(d) - ty), index) : [0] )) @@ -159,6 +160,7 @@ export class AxisY { .call(!grid ? () => {} : createGridY( grid(y, ticks), + y, fx ? fx.bandwidth() : offsetSign * (marginLeft + marginRight - width), fx ? take(fx.domain().map(d => fx(d) - tx), index) : [0] )) @@ -229,28 +231,36 @@ function maybeTickRotate(g, rotate) { } } -function createGridX(ticks, dy, steps) { +function createGridX(ticks, x, dy, steps) { return g => g.append("g") .attr("class", "grid") .selectAll() .data(steps) - .join("path") - .attr("d", v => ticks.map(d => `M${offset + d},${v}v${dy}`).join("")); + .join("g") + .attr("transform", v => `translate(${offset},${v})`) + .selectAll() + .data(ticks) + .join("path") + .attr("d", d => `M${x(d)},0v${dy}`); } -function createGridY(ticks, dx, steps) { +function createGridY(ticks, y, dx, steps) { return g => g.append("g") .attr("class", "grid") .selectAll() .data(steps) - .join("path") - .attr("d", v => ticks.map(d => `M${v},${offset + d}h${dx}`).join("")); + .join("g") + .attr("transform", v => `translate(${v},${offset})`) + .selectAll() + .data(ticks) + .join("path") + .attr("d", d => `M0,${y(d)}h${dx}`); } function maybeTicks(grid) { if (!grid) return false; - if (grid === true) return (scale, ticks) => (scale.ticks ? scale.ticks(ticks) : scale.domain()).map(scale); - if (Array.isArray(grid)) return (scale) => grid.map(scale); - if (grid === +grid) return (scale) => (scale.ticks ? scale.ticks.apply(scale, [grid]) : scale.domain()).map(scale); + if (grid === true) return (scale, ticks) => (scale.ticks ? scale.ticks(ticks) : scale.domain()); + if (Array.isArray(grid)) return () => grid; + if (grid === +grid) return (scale) => (scale.ticks ? scale.ticks.apply(scale, [grid]) : scale.domain()); throw new Error(`Unexpected grid option: ${grid}`); } diff --git a/test/output/aaplBollinger.svg b/test/output/aaplBollinger.svg index 4734d49fc2..9db3df2d5e 100644 --- a/test/output/aaplBollinger.svg +++ b/test/output/aaplBollinger.svg @@ -19,7 +19,22 @@ - + + + + + + + + + + + + + + + + 60 diff --git a/test/output/aaplCandlestick.svg b/test/output/aaplCandlestick.svg index d5d497824d..389e4e0afb 100644 --- a/test/output/aaplCandlestick.svg +++ b/test/output/aaplCandlestick.svg @@ -19,7 +19,16 @@ - + + + + + + + + + + 155 @@ -48,7 +57,14 @@ - + + + + + + + + December diff --git a/test/output/aaplChangeVolume.svg b/test/output/aaplChangeVolume.svg index f0cc47504c..e36edfbd34 100644 --- a/test/output/aaplChangeVolume.svg +++ b/test/output/aaplChangeVolume.svg @@ -19,7 +19,22 @@ - + + + + + + + + + + + + + + + + 7.1 @@ -66,7 +81,16 @@ - + + + + + + + + + + −6 diff --git a/test/output/aaplClose.svg b/test/output/aaplClose.svg index e274bbd9b2..f4a114c53c 100644 --- a/test/output/aaplClose.svg +++ b/test/output/aaplClose.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + 0 diff --git a/test/output/aaplCloseUntyped.svg b/test/output/aaplCloseUntyped.svg index 778f0bf035..4b39f53e88 100644 --- a/test/output/aaplCloseUntyped.svg +++ b/test/output/aaplCloseUntyped.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + 0 diff --git a/test/output/aaplVolume.svg b/test/output/aaplVolume.svg index 60c5fc76a4..b4202ecb0b 100644 --- a/test/output/aaplVolume.svg +++ b/test/output/aaplVolume.svg @@ -19,7 +19,17 @@ - + + + + + + + + + + + 0 diff --git a/test/output/aaplVolumeRect.svg b/test/output/aaplVolumeRect.svg index 6960640def..6c741b4cef 100644 --- a/test/output/aaplVolumeRect.svg +++ b/test/output/aaplVolumeRect.svg @@ -19,7 +19,22 @@ - + + + + + + + + + + + + + + + + 0 diff --git a/test/output/anscombeQuartet.svg b/test/output/anscombeQuartet.svg index 5ff00d18b1..ccc0051a16 100644 --- a/test/output/anscombeQuartet.svg +++ b/test/output/anscombeQuartet.svg @@ -19,10 +19,34 @@ - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 @@ -58,7 +82,11 @@ - + + + + + 5 @@ -74,7 +102,11 @@ - + + + + + 5 @@ -90,7 +122,11 @@ - + + + + + 5 @@ -106,7 +142,11 @@ - + + + + + 5 diff --git a/test/output/athletesHeightWeight.svg b/test/output/athletesHeightWeight.svg index 1b56f383c2..d4eeea0929 100644 --- a/test/output/athletesHeightWeight.svg +++ b/test/output/athletesHeightWeight.svg @@ -19,7 +19,28 @@ - + + + + + + + + + + + + + + + + + + + + + + 1.25 @@ -84,7 +105,15 @@ - + + + + + + + + + 40 diff --git a/test/output/athletesHeightWeightBin.svg b/test/output/athletesHeightWeightBin.svg index 0935c81f62..5888083c00 100644 --- a/test/output/athletesHeightWeightBin.svg +++ b/test/output/athletesHeightWeightBin.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 1.2 @@ -57,7 +69,15 @@ - + + + + + + + + + 40 diff --git a/test/output/athletesHeightWeightBinStroke.svg b/test/output/athletesHeightWeightBinStroke.svg index 6f32e93422..82315aec50 100644 --- a/test/output/athletesHeightWeightBinStroke.svg +++ b/test/output/athletesHeightWeightBinStroke.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 1.2 @@ -57,7 +69,15 @@ - + + + + + + + + + 40 diff --git a/test/output/athletesHeightWeightSex.svg b/test/output/athletesHeightWeightSex.svg index 51b43c47ed..2e3bebf29d 100644 --- a/test/output/athletesHeightWeightSex.svg +++ b/test/output/athletesHeightWeightSex.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 1.2 @@ -57,7 +69,15 @@ - + + + + + + + + + 40 diff --git a/test/output/athletesHeightWeightSport.svg b/test/output/athletesHeightWeightSport.svg index 4fb3343173..9b57f04d01 100644 --- a/test/output/athletesHeightWeightSport.svg +++ b/test/output/athletesHeightWeightSport.svg @@ -19,7 +19,28 @@ - + + + + + + + + + + + + + + + + + + + + + + 1.25 @@ -84,7 +105,15 @@ - + + + + + + + + + 40 diff --git a/test/output/athletesNationality.svg b/test/output/athletesNationality.svg index 8f5e5a2868..9aaea6f668 100644 --- a/test/output/athletesNationality.svg +++ b/test/output/athletesNationality.svg @@ -81,7 +81,14 @@ - + + + + + + + + 0 diff --git a/test/output/athletesSexWeight.svg b/test/output/athletesSexWeight.svg index 4a0ca6814a..ebdb243984 100644 --- a/test/output/athletesSexWeight.svg +++ b/test/output/athletesSexWeight.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/athletesSportSex.svg b/test/output/athletesSportSex.svg index bb3623071d..2ac0bb38dd 100644 --- a/test/output/athletesSportSex.svg +++ b/test/output/athletesSportSex.svg @@ -105,7 +105,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/athletesSportWeight.svg b/test/output/athletesSportWeight.svg index fe936b1313..ea08ffc3a2 100644 --- a/test/output/athletesSportWeight.svg +++ b/test/output/athletesSportWeight.svg @@ -105,34 +105,258 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/output/ballotStatusRace.svg b/test/output/ballotStatusRace.svg index 31ddfe9c77..3fc9bd5315 100644 --- a/test/output/ballotStatusRace.svg +++ b/test/output/ballotStatusRace.svg @@ -45,14 +45,54 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 diff --git a/test/output/beckerBarley.svg b/test/output/beckerBarley.svg index ec7e09ed4e..c3445a4431 100644 --- a/test/output/beckerBarley.svg +++ b/test/output/beckerBarley.svg @@ -39,12 +39,60 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 @@ -72,7 +120,18 @@ - + + + + + + + + + + + + Trebi @@ -109,7 +168,18 @@ - + + + + + + + + + + + + Trebi @@ -146,7 +216,18 @@ - + + + + + + + + + + + + Trebi @@ -183,7 +264,18 @@ - + + + + + + + + + + + + Trebi @@ -220,7 +312,18 @@ - + + + + + + + + + + + + Trebi @@ -257,7 +360,18 @@ - + + + + + + + + + + + + Trebi diff --git a/test/output/carsMpg.svg b/test/output/carsMpg.svg index 40cf328090..0491cd5a22 100644 --- a/test/output/carsMpg.svg +++ b/test/output/carsMpg.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + 0 diff --git a/test/output/covidIhmeProjectedDeaths.svg b/test/output/covidIhmeProjectedDeaths.svg index a7b1bdfd62..afcba2c221 100644 --- a/test/output/covidIhmeProjectedDeaths.svg +++ b/test/output/covidIhmeProjectedDeaths.svg @@ -19,7 +19,39 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 @@ -117,7 +149,28 @@ - + + + + + + + + + + + + + + + + + + + + + + March diff --git a/test/output/d3Survey2015Comfort.svg b/test/output/d3Survey2015Comfort.svg index 13978541c6..ef4fb5ef59 100644 --- a/test/output/d3Survey2015Comfort.svg +++ b/test/output/d3Survey2015Comfort.svg @@ -36,7 +36,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/d3Survey2015Why.svg b/test/output/d3Survey2015Why.svg index ec6c47fc94..94a0f68271 100644 --- a/test/output/d3Survey2015Why.svg +++ b/test/output/d3Survey2015Why.svg @@ -66,7 +66,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/diamondsCaratPriceDots.svg b/test/output/diamondsCaratPriceDots.svg index 61824037e0..80837c4dfb 100644 --- a/test/output/diamondsCaratPriceDots.svg +++ b/test/output/diamondsCaratPriceDots.svg @@ -19,7 +19,101 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1,000 @@ -78,7 +172,104 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0.5 diff --git a/test/output/empty.svg b/test/output/empty.svg index ed2946253c..ffabf33642 100644 --- a/test/output/empty.svg +++ b/test/output/empty.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0.0 @@ -57,7 +69,19 @@ - + + + + + + + + + + + + + 0.0 diff --git a/test/output/figcaption.html b/test/output/figcaption.html index 2c4eaad35c..81715e5751 100644 --- a/test/output/figcaption.html +++ b/test/output/figcaption.html @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0 diff --git a/test/output/figcaptionHtml.html b/test/output/figcaptionHtml.html index 081aa35540..7197c2f039 100644 --- a/test/output/figcaptionHtml.html +++ b/test/output/figcaptionHtml.html @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0 diff --git a/test/output/footballCoverage.svg b/test/output/footballCoverage.svg index 4886ee7e9b..fb20561917 100644 --- a/test/output/footballCoverage.svg +++ b/test/output/footballCoverage.svg @@ -19,13 +19,97 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0% diff --git a/test/output/gistempAnomaly.svg b/test/output/gistempAnomaly.svg index b7c3670a00..8c157b71f6 100644 --- a/test/output/gistempAnomaly.svg +++ b/test/output/gistempAnomaly.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + −0.6 diff --git a/test/output/gistempAnomalyMoving.svg b/test/output/gistempAnomalyMoving.svg index 4d26a20988..69abfaf014 100644 --- a/test/output/gistempAnomalyMoving.svg +++ b/test/output/gistempAnomalyMoving.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + −0.6 diff --git a/test/output/gistempAnomalyTransform.svg b/test/output/gistempAnomalyTransform.svg index ab9e1602f0..2476a6e732 100644 --- a/test/output/gistempAnomalyTransform.svg +++ b/test/output/gistempAnomalyTransform.svg @@ -19,7 +19,15 @@ - + + + + + + + + + −1.0 diff --git a/test/output/industryUnemployment.svg b/test/output/industryUnemployment.svg index b5a9a1054b..9c474b30c7 100644 --- a/test/output/industryUnemployment.svg +++ b/test/output/industryUnemployment.svg @@ -19,7 +19,16 @@ - + + + + + + + + + + 0 diff --git a/test/output/industryUnemploymentShare.svg b/test/output/industryUnemploymentShare.svg index 9961e445b6..c7ba401642 100644 --- a/test/output/industryUnemploymentShare.svg +++ b/test/output/industryUnemploymentShare.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0% diff --git a/test/output/learningPoverty.svg b/test/output/learningPoverty.svg index c271fc1721..095056f4cc 100644 --- a/test/output/learningPoverty.svg +++ b/test/output/learningPoverty.svg @@ -321,7 +321,19 @@ - + + + + + + + + + + + + + 100% diff --git a/test/output/letterFrequencyBar.svg b/test/output/letterFrequencyBar.svg index 2e864a1ab8..b5266caf1a 100644 --- a/test/output/letterFrequencyBar.svg +++ b/test/output/letterFrequencyBar.svg @@ -99,7 +99,15 @@ - + + + + + + + + + 0 diff --git a/test/output/letterFrequencyColumn.svg b/test/output/letterFrequencyColumn.svg index f4d40846cd..7cf27fb080 100644 --- a/test/output/letterFrequencyColumn.svg +++ b/test/output/letterFrequencyColumn.svg @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0 diff --git a/test/output/letterFrequencyLollipop.svg b/test/output/letterFrequencyLollipop.svg index 5c31cc17d2..a501764271 100644 --- a/test/output/letterFrequencyLollipop.svg +++ b/test/output/letterFrequencyLollipop.svg @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0.00 diff --git a/test/output/metroInequality.svg b/test/output/metroInequality.svg index de56114386..f0e4a2293f 100644 --- a/test/output/metroInequality.svg +++ b/test/output/metroInequality.svg @@ -19,7 +19,20 @@ - + + + + + + + + + + + + + + 3.4 @@ -60,7 +73,26 @@ - + + + + + + + + + + + + + + + + + + + + 200k diff --git a/test/output/metroInequalityChange.svg b/test/output/metroInequalityChange.svg index e9cb52cd65..2dd79916ed 100644 --- a/test/output/metroInequalityChange.svg +++ b/test/output/metroInequalityChange.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 3.5 @@ -57,7 +69,27 @@ - + + + + + + + + + + + + + + + + + + + + + 200k diff --git a/test/output/metroUnemploymentHighlight.svg b/test/output/metroUnemploymentHighlight.svg index 1b1178b9d5..e83bd330e0 100644 --- a/test/output/metroUnemploymentHighlight.svg +++ b/test/output/metroUnemploymentHighlight.svg @@ -19,7 +19,17 @@ - + + + + + + + + + + + 0 diff --git a/test/output/metroUnemploymentNormalize.svg b/test/output/metroUnemploymentNormalize.svg index 13b11569ae..01843856af 100644 --- a/test/output/metroUnemploymentNormalize.svg +++ b/test/output/metroUnemploymentNormalize.svg @@ -19,7 +19,15 @@ - + + + + + + + + + 0.8× diff --git a/test/output/mobyDickFaceted.svg b/test/output/mobyDickFaceted.svg index 4fd8316340..b8667c88e6 100644 --- a/test/output/mobyDickFaceted.svg +++ b/test/output/mobyDickFaceted.svg @@ -37,8 +37,24 @@ - - + + + + + + + + + + + + + + + + + + 0 @@ -66,8 +82,24 @@ - - + + + + + + + + + + + + + + + + + + 0 diff --git a/test/output/mobyDickLetterFrequency.svg b/test/output/mobyDickLetterFrequency.svg index 247095d610..6112001a76 100644 --- a/test/output/mobyDickLetterFrequency.svg +++ b/test/output/mobyDickLetterFrequency.svg @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0 diff --git a/test/output/mobyDickLetterRelativeFrequency.svg b/test/output/mobyDickLetterRelativeFrequency.svg index 7f826263e1..9bc1b890cd 100644 --- a/test/output/mobyDickLetterRelativeFrequency.svg +++ b/test/output/mobyDickLetterRelativeFrequency.svg @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0 diff --git a/test/output/morleyBoxplot.svg b/test/output/morleyBoxplot.svg index 9241fa289b..2ad7fc82e0 100644 --- a/test/output/morleyBoxplot.svg +++ b/test/output/morleyBoxplot.svg @@ -36,7 +36,17 @@ - + + + + + + + + + + + 650 diff --git a/test/output/moviesProfitByGenre.svg b/test/output/moviesProfitByGenre.svg index 59288dd574..b639315c26 100644 --- a/test/output/moviesProfitByGenre.svg +++ b/test/output/moviesProfitByGenre.svg @@ -60,7 +60,14 @@ - + + + + + + + + 0 diff --git a/test/output/musicRevenue.svg b/test/output/musicRevenue.svg index 75732df012..f79161d8f3 100644 --- a/test/output/musicRevenue.svg +++ b/test/output/musicRevenue.svg @@ -19,7 +19,20 @@ - + + + + + + + + + + + + + + 0 diff --git a/test/output/ordinalBar.svg b/test/output/ordinalBar.svg index 605e4ceaba..be478b21d2 100644 --- a/test/output/ordinalBar.svg +++ b/test/output/ordinalBar.svg @@ -19,7 +19,15 @@ - + + + + + + + + + 0 diff --git a/test/output/penguinCulmen.svg b/test/output/penguinCulmen.svg index a2a46effed..47a1fff870 100644 --- a/test/output/penguinCulmen.svg +++ b/test/output/penguinCulmen.svg @@ -43,9 +43,27 @@ - - - + + + + + + + + + + + + + + + + + + + + + 35 @@ -67,8 +85,20 @@ - - + + + + + + + + + + + + + + 35 @@ -90,9 +120,27 @@ - - - + + + + + + + + + + + + + + + + + + + + + 35 @@ -114,9 +162,18 @@ - - - + + + + + + + + + + + + 15 @@ -129,9 +186,18 @@ - - - + + + + + + + + + + + + 15 @@ -144,8 +210,14 @@ - - + + + + + + + + 15 diff --git a/test/output/penguinCulmenArray.svg b/test/output/penguinCulmenArray.svg index f92f0f5acc..4a868fa457 100644 --- a/test/output/penguinCulmenArray.svg +++ b/test/output/penguinCulmenArray.svg @@ -43,9 +43,27 @@ - - - + + + + + + + + + + + + + + + + + + + + + 35 @@ -67,8 +85,20 @@ - - + + + + + + + + + + + + + + 35 @@ -90,9 +120,27 @@ - - - + + + + + + + + + + + + + + + + + + + + + 35 @@ -114,9 +162,18 @@ - - - + + + + + + + + + + + + 15 @@ -129,9 +186,18 @@ - - - + + + + + + + + + + + + 15 @@ -144,8 +210,14 @@ - - + + + + + + + + 15 diff --git a/test/output/penguinMass.svg b/test/output/penguinMass.svg index 590a2925c4..86e9ddf88c 100644 --- a/test/output/penguinMass.svg +++ b/test/output/penguinMass.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + 0 diff --git a/test/output/penguinMassSpecies.svg b/test/output/penguinMassSpecies.svg index 5009cdf901..aceb238057 100644 --- a/test/output/penguinMassSpecies.svg +++ b/test/output/penguinMassSpecies.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + 0 diff --git a/test/output/penguinSexMassCulmenSpecies.svg b/test/output/penguinSexMassCulmenSpecies.svg index 93a9f59830..00afbaf6ec 100644 --- a/test/output/penguinSexMassCulmenSpecies.svg +++ b/test/output/penguinSexMassCulmenSpecies.svg @@ -19,9 +19,51 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 34 @@ -78,7 +120,15 @@ - + + + + + + + + + 3k @@ -106,7 +156,15 @@ - + + + + + + + + + 3k @@ -134,7 +192,15 @@ - + + + + + + + + + 3k diff --git a/test/output/penguinSpeciesIsland.svg b/test/output/penguinSpeciesIsland.svg index e906bf640e..60753d5038 100644 --- a/test/output/penguinSpeciesIsland.svg +++ b/test/output/penguinSpeciesIsland.svg @@ -19,7 +19,16 @@ - + + + + + + + + + + 0 diff --git a/test/output/penguinSpeciesIslandSex.svg b/test/output/penguinSpeciesIslandSex.svg index bbecb3758d..b9743cef9b 100644 --- a/test/output/penguinSpeciesIslandSex.svg +++ b/test/output/penguinSpeciesIslandSex.svg @@ -19,9 +19,57 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 diff --git a/test/output/polylinear.svg b/test/output/polylinear.svg index efda2df933..b3bad99302 100644 --- a/test/output/polylinear.svg +++ b/test/output/polylinear.svg @@ -19,7 +19,31 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + 05 diff --git a/test/output/seattleTemperatureBand.svg b/test/output/seattleTemperatureBand.svg index 00d27bf014..734589d42e 100644 --- a/test/output/seattleTemperatureBand.svg +++ b/test/output/seattleTemperatureBand.svg @@ -19,7 +19,16 @@ - + + + + + + + + + + 20 diff --git a/test/output/sfTemperatureBand.svg b/test/output/sfTemperatureBand.svg index 31bf5f0b24..fbd3947b31 100644 --- a/test/output/sfTemperatureBand.svg +++ b/test/output/sfTemperatureBand.svg @@ -19,7 +19,17 @@ - + + + + + + + + + + + 40 diff --git a/test/output/sfTemperatureBandArea.svg b/test/output/sfTemperatureBandArea.svg index aacf233ba6..541d12ec98 100644 --- a/test/output/sfTemperatureBandArea.svg +++ b/test/output/sfTemperatureBandArea.svg @@ -19,7 +19,23 @@ - + + + + + + + + + + + + + + + + + 42 diff --git a/test/output/simpsonsRatings.svg b/test/output/simpsonsRatings.svg index a171a6568b..dd016ec9c0 100644 --- a/test/output/simpsonsRatings.svg +++ b/test/output/simpsonsRatings.svg @@ -19,7 +19,36 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 @@ -108,7 +137,33 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 diff --git a/test/output/simpsonsViews.svg b/test/output/simpsonsViews.svg index 40511c588b..d8c44fc215 100644 --- a/test/output/simpsonsViews.svg +++ b/test/output/simpsonsViews.svg @@ -19,7 +19,25 @@ - + + + + + + + + + + + + + + + + + + + 0 @@ -75,7 +93,18 @@ - + + + + + + + + + + + + 4.5 diff --git a/test/output/stargazers.svg b/test/output/stargazers.svg index ee3db11e43..1eb2bfb77f 100644 --- a/test/output/stargazers.svg +++ b/test/output/stargazers.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/stargazersBinned.svg b/test/output/stargazersBinned.svg index 91a684b824..79a3e78a9b 100644 --- a/test/output/stargazersBinned.svg +++ b/test/output/stargazersBinned.svg @@ -19,7 +19,21 @@ - + + + + + + + + + + + + + + + 0 diff --git a/test/output/stargazersHourly.svg b/test/output/stargazersHourly.svg index eada35f0c8..1fc4275dca 100644 --- a/test/output/stargazersHourly.svg +++ b/test/output/stargazersHourly.svg @@ -19,7 +19,22 @@ - + + + + + + + + + + + + + + + + 0 diff --git a/test/output/stargazersHourlyGroup.svg b/test/output/stargazersHourlyGroup.svg index 2fba89c7f2..3d76d84601 100644 --- a/test/output/stargazersHourlyGroup.svg +++ b/test/output/stargazersHourlyGroup.svg @@ -19,7 +19,22 @@ - + + + + + + + + + + + + + + + + 0 diff --git a/test/output/stocksIndex.svg b/test/output/stocksIndex.svg index 0e9fc192d9..51ba4f85f5 100644 --- a/test/output/stocksIndex.svg +++ b/test/output/stocksIndex.svg @@ -19,7 +19,18 @@ - + + + + + + + + + + + + −40 diff --git a/test/output/travelersYearOverYear.svg b/test/output/travelersYearOverYear.svg index 0e24db50d5..539cabc936 100644 --- a/test/output/travelersYearOverYear.svg +++ b/test/output/travelersYearOverYear.svg @@ -19,7 +19,24 @@ - + + + + + + + + + + + + + + + + + + 0.0 diff --git a/test/output/uniformRandomDifference.svg b/test/output/uniformRandomDifference.svg index 233ced5dd1..02f065cc5b 100644 --- a/test/output/uniformRandomDifference.svg +++ b/test/output/uniformRandomDifference.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0.0 diff --git a/test/output/usCongressAge.svg b/test/output/usCongressAge.svg index 2aaed754eb..5bc733951a 100644 --- a/test/output/usCongressAge.svg +++ b/test/output/usCongressAge.svg @@ -19,7 +19,15 @@ - + + + + + + + + + 0 diff --git a/test/output/usCongressAgeGender.svg b/test/output/usCongressAgeGender.svg index 15157424ef..c9fdf939f4 100644 --- a/test/output/usCongressAgeGender.svg +++ b/test/output/usCongressAgeGender.svg @@ -19,7 +19,16 @@ - + + + + + + + + + + 10 diff --git a/test/output/usPopulationStateAge.svg b/test/output/usPopulationStateAge.svg index c4b1e296f6..3b3478f28f 100644 --- a/test/output/usPopulationStateAge.svg +++ b/test/output/usPopulationStateAge.svg @@ -19,7 +19,17 @@ - + + + + + + + + + + + <10 @@ -51,7 +61,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/usPopulationStateAgeDots.svg b/test/output/usPopulationStateAgeDots.svg index 8f1886bf42..79a3e2f682 100644 --- a/test/output/usPopulationStateAgeDots.svg +++ b/test/output/usPopulationStateAgeDots.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0 diff --git a/test/output/usPresidentFavorabilityDots.svg b/test/output/usPresidentFavorabilityDots.svg index be3ee8e241..2662d125d2 100644 --- a/test/output/usPresidentFavorabilityDots.svg +++ b/test/output/usPresidentFavorabilityDots.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + −30 diff --git a/test/output/usPresidentialElection2020.svg b/test/output/usPresidentialElection2020.svg index bdaebca845..0329dc8054 100644 --- a/test/output/usPresidentialElection2020.svg +++ b/test/output/usPresidentialElection2020.svg @@ -19,7 +19,51 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -153,7 +197,17 @@ - + + + + + + + + + + + −80 diff --git a/test/output/usRetailSales.svg b/test/output/usRetailSales.svg index 3f09362f86..2c1e258a78 100644 --- a/test/output/usRetailSales.svg +++ b/test/output/usRetailSales.svg @@ -19,7 +19,20 @@ - + + + + + + + + + + + + + + 0 diff --git a/test/output/usStatePopulationChange.svg b/test/output/usStatePopulationChange.svg index 8719d5d4fc..47889dedfb 100644 --- a/test/output/usStatePopulationChange.svg +++ b/test/output/usStatePopulationChange.svg @@ -19,7 +19,60 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Texas @@ -180,7 +233,17 @@ - + + + + + + + + + + + −0.5 diff --git a/test/output/wordLengthMobyDick.svg b/test/output/wordLengthMobyDick.svg index 0d7a77f318..ed3c995aa9 100644 --- a/test/output/wordLengthMobyDick.svg +++ b/test/output/wordLengthMobyDick.svg @@ -19,7 +19,19 @@ - + + + + + + + + + + + + + 0 From 07d46b292f7859094de00dcc1d09c1ad757feb9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Tue, 11 Jan 2022 16:13:06 +0100 Subject: [PATCH 5/8] fix recent tests --- test/output/athletesBinsColors.svg | 5 +++ test/output/clamp.svg | 5 +++ test/output/decathlon.html | 69 ++++++++++++++++++------------ test/output/documentationLinks.svg | 45 +++++++++++-------- test/output/infinityLog.svg | 5 +++ test/output/vectorField.svg | 5 +++ 6 files changed, 88 insertions(+), 46 deletions(-) diff --git a/test/output/athletesBinsColors.svg b/test/output/athletesBinsColors.svg index 47370986d6..025618abce 100644 --- a/test/output/athletesBinsColors.svg +++ b/test/output/athletesBinsColors.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/clamp.svg b/test/output/clamp.svg index 61f30c921a..21d615b4b2 100644 --- a/test/output/clamp.svg +++ b/test/output/clamp.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/decathlon.html b/test/output/decathlon.html index 190469706f..639feb7d3f 100644 --- a/test/output/decathlon.html +++ b/test/output/decathlon.html @@ -63,65 +63,78 @@ .plot-2 text { white-space: pre; } + + .plot-2 .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } + + + + + + + + + + + + + - - 10.3 + 10.3 - - 10.4 + 10.4 - - 10.5 + 10.5 - - 10.6 + 10.6 - - 10.7 + 10.7 - - 10.8 + 10.8 - - 10.9 + 10.9 - - 11.0 + 11.0 - - 11.1 + 11.1 ↑ 100 Meters + + + + + + + + + - - 7.2 + 7.2 - - 7.4 + 7.4 - - 7.6 + 7.6 - - 7.8 + 7.8 - - 8.0 + 8.0 Long Jump → diff --git a/test/output/documentationLinks.svg b/test/output/documentationLinks.svg index 7702a2f523..7f7738400b 100644 --- a/test/output/documentationLinks.svg +++ b/test/output/documentationLinks.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } @@ -90,41 +95,45 @@ + + + + + + + + + + + + + - - 0 + 0 - - 5 + 5 - - 10 + 10 - - 15 + 15 - - 20 + 20 - - 25 + 25 - - 30 + 30 - - 35 + 35 - - 40 + 40 likes → diff --git a/test/output/infinityLog.svg b/test/output/infinityLog.svg index cfa39b4db5..aa7b85e810 100644 --- a/test/output/infinityLog.svg +++ b/test/output/infinityLog.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } diff --git a/test/output/vectorField.svg b/test/output/vectorField.svg index 67d5f579ec..9278d4be05 100644 --- a/test/output/vectorField.svg +++ b/test/output/vectorField.svg @@ -11,6 +11,11 @@ .plot text { white-space: pre; } + + .plot .grid { + stroke: currentColor; + stroke-opacity: 0.1; + } From 62037b1a9faf18bf1ebf585993339dc4fff09965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Tue, 11 Jan 2022 16:18:22 +0100 Subject: [PATCH 6/8] apply grid attributes directly --- src/axis.js | 4 ++++ src/plot.js | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/axis.js b/src/axis.js index 09945ce122..9cedcadf6e 100644 --- a/src/axis.js +++ b/src/axis.js @@ -234,6 +234,8 @@ function maybeTickRotate(g, rotate) { function createGridX(ticks, x, dy, steps) { return g => g.append("g") .attr("class", "grid") + .attr("stroke", "currentColor") + .attr("stroke-opacity", "0.1") .selectAll() .data(steps) .join("g") @@ -247,6 +249,8 @@ function createGridX(ticks, x, dy, steps) { function createGridY(ticks, y, dx, steps) { return g => g.append("g") .attr("class", "grid") + .attr("stroke", "currentColor") + .attr("stroke-opacity", "0.1") .selectAll() .data(steps) .join("g") diff --git a/src/plot.js b/src/plot.js index 25bf3659d0..d83e5715e7 100644 --- a/src/plot.js +++ b/src/plot.js @@ -85,10 +85,6 @@ export function plot(options = {}) { .${className} text { white-space: pre; } - .${className} .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } `)) .call(applyInlineStyles, style) .node(); From 90dc9383608b73b925b1637b8394e9a3d98629c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Tue, 11 Jan 2022 16:18:35 +0100 Subject: [PATCH 7/8] fix all tests --- test/output/aaplBollinger.svg | 7 +------ test/output/aaplCandlestick.svg | 9 ++------- test/output/aaplChangeVolume.svg | 9 ++------- test/output/aaplClose.svg | 7 +------ test/output/aaplCloseUntyped.svg | 7 +------ test/output/aaplMonthly.svg | 5 ----- test/output/aaplVolume.svg | 7 +------ test/output/aaplVolumeRect.svg | 7 +------ test/output/anscombeQuartet.svg | 15 +++++---------- test/output/athletesBinsColors.svg | 5 ----- test/output/athletesHeightWeight.svg | 9 ++------- test/output/athletesHeightWeightBin.svg | 9 ++------- test/output/athletesHeightWeightBinStroke.svg | 9 ++------- test/output/athletesHeightWeightSex.svg | 9 ++------- test/output/athletesHeightWeightSport.svg | 9 ++------- test/output/athletesNationality.svg | 7 +------ test/output/athletesSexWeight.svg | 7 +------ test/output/athletesSportSex.svg | 7 +------ test/output/athletesSportWeight.svg | 7 +------ test/output/athletesWeight.svg | 5 ----- test/output/athletesWeightCumulative.svg | 5 ----- test/output/availability.svg | 5 ----- test/output/ballotStatusRace.svg | 7 +------ test/output/beckerBarley.svg | 19 +++++++------------ test/output/caltrain.html | 5 ----- test/output/carsMpg.svg | 7 +------ test/output/carsParcoords.svg | 5 ----- test/output/clamp.svg | 5 ----- test/output/collapsedHistogram.svg | 5 ----- test/output/covidIhmeProjectedDeaths.svg | 9 ++------- test/output/crimeanWarOverlapped.svg | 5 ----- test/output/crimeanWarStacked.svg | 5 ----- test/output/d3Survey2015Comfort.svg | 7 +------ test/output/d3Survey2015Why.svg | 7 +------ test/output/decathlon.html | 9 ++------- test/output/diamondsCaratPrice.svg | 5 ----- test/output/diamondsCaratPriceDots.svg | 9 ++------- test/output/documentationLinks.svg | 7 +------ test/output/empty.svg | 9 ++------- test/output/emptyX.svg | 5 ----- test/output/figcaption.html | 7 +------ test/output/figcaptionHtml.html | 7 +------ test/output/firstLadies.svg | 5 ----- test/output/footballCoverage.svg | 7 +------ test/output/fruitSales.svg | 5 ----- test/output/fruitSalesDate.svg | 5 ----- test/output/gistempAnomaly.svg | 7 +------ test/output/gistempAnomalyMoving.svg | 7 +------ test/output/gistempAnomalyTransform.svg | 7 +------ test/output/googleTrendsRidgeline.svg | 5 ----- test/output/gridChoropleth.svg | 5 ----- test/output/hadcrutWarmingStripes.svg | 5 ----- test/output/highCardinalityOrdinal.svg | 5 ----- test/output/identityScale.svg | 5 ----- test/output/industryUnemployment.svg | 7 +------ test/output/industryUnemploymentShare.svg | 7 +------ test/output/industryUnemploymentStream.svg | 5 ----- test/output/infinityLog.svg | 5 ----- test/output/learningPoverty.svg | 7 +------ test/output/letterFrequencyBar.svg | 7 +------ test/output/letterFrequencyCloud.svg | 5 ----- test/output/letterFrequencyColumn.svg | 7 +------ test/output/letterFrequencyDot.svg | 5 ----- test/output/letterFrequencyLollipop.svg | 7 +------ test/output/logDegenerate.svg | 5 ----- test/output/metroInequality.svg | 9 ++------- test/output/metroInequalityChange.svg | 9 ++------- test/output/metroUnemployment.svg | 5 ----- test/output/metroUnemploymentHighlight.svg | 7 +------ test/output/metroUnemploymentIndex.svg | 5 ----- test/output/metroUnemploymentMoving.svg | 5 ----- test/output/metroUnemploymentNormalize.svg | 7 +------ test/output/metroUnemploymentRidgeline.svg | 5 ----- test/output/metroUnemploymentStroke.svg | 5 ----- test/output/mobyDickFaceted.svg | 9 ++------- test/output/mobyDickLetterFrequency.svg | 7 +------ test/output/mobyDickLetterPairs.svg | 5 ----- test/output/mobyDickLetterPosition.svg | 5 ----- .../mobyDickLetterRelativeFrequency.svg | 7 +------ test/output/morleyBoxplot.svg | 7 +------ test/output/moviesProfitByGenre.svg | 7 +------ test/output/musicRevenue.svg | 7 +------ test/output/ordinalBar.svg | 7 +------ test/output/penguinCulmen.svg | 17 ++++++----------- test/output/penguinCulmenArray.svg | 17 ++++++----------- test/output/penguinIslandUnknown.svg | 5 ----- test/output/penguinMass.svg | 7 +------ test/output/penguinMassSex.svg | 5 ----- test/output/penguinMassSexSpecies.svg | 5 ----- test/output/penguinMassSpecies.svg | 7 +------ test/output/penguinSex.svg | 5 ----- test/output/penguinSexMassCulmenSpecies.svg | 13 ++++--------- test/output/penguinSpeciesGroup.svg | 5 ----- test/output/penguinSpeciesIsland.svg | 7 +------ test/output/penguinSpeciesIslandRelative.svg | 5 ----- test/output/penguinSpeciesIslandSex.svg | 7 +------ test/output/polylinear.svg | 7 +------ test/output/randomBins.svg | 5 ----- test/output/randomBinsXY.svg | 5 ----- test/output/randomQuantile.svg | 5 ----- test/output/randomWalk.svg | 5 ----- test/output/seattlePrecipitationRule.svg | 5 ----- test/output/seattleTemperatureBand.svg | 7 +------ test/output/seattleTemperatureCell.svg | 5 ----- test/output/sfCovidDeaths.svg | 5 ----- test/output/sfTemperatureBand.svg | 7 +------ test/output/sfTemperatureBandArea.svg | 7 +------ test/output/simpsonsRatings.svg | 9 ++------- test/output/simpsonsRatingsDots.svg | 5 ----- test/output/simpsonsViews.svg | 9 ++------- test/output/singleValueBar.svg | 5 ----- test/output/singleValueBin.svg | 5 ----- test/output/softwareVersions.svg | 5 ----- test/output/stackedBar.svg | 5 ----- test/output/stackedRect.svg | 5 ----- test/output/stargazers.svg | 7 +------ test/output/stargazersBinned.svg | 7 +------ test/output/stargazersHourly.svg | 7 +------ test/output/stargazersHourlyGroup.svg | 7 +------ test/output/stocksIndex.svg | 7 +------ test/output/travelersYearOverYear.svg | 7 +------ test/output/uniformRandomDifference.svg | 7 +------ test/output/untypedDateBin.svg | 5 ----- test/output/usCongressAge.svg | 7 +------ test/output/usCongressAgeGender.svg | 7 +------ test/output/usPopulationStateAge.svg | 9 ++------- test/output/usPopulationStateAgeDots.svg | 7 +------ test/output/usPresidentFavorabilityDots.svg | 7 +------ test/output/usPresidentialElection2020.svg | 9 ++------- test/output/usPresidentialForecast2016.svg | 5 ----- test/output/usRetailSales.svg | 7 +------ test/output/usStatePopulationChange.svg | 9 ++------- test/output/vectorField.svg | 5 ----- test/output/wealthBritainBar.svg | 5 ----- test/output/wealthBritainProportionPlot.svg | 5 ----- test/output/wordCloud.svg | 5 ----- test/output/wordLengthMobyDick.svg | 7 +------ 137 files changed, 121 insertions(+), 806 deletions(-) diff --git a/test/output/aaplBollinger.svg b/test/output/aaplBollinger.svg index 9db3df2d5e..352e8b265d 100644 --- a/test/output/aaplBollinger.svg +++ b/test/output/aaplBollinger.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/aaplCandlestick.svg b/test/output/aaplCandlestick.svg index 389e4e0afb..dd25850bc5 100644 --- a/test/output/aaplCandlestick.svg +++ b/test/output/aaplCandlestick.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -56,7 +51,7 @@ ↑ Apple stock price ($) - + diff --git a/test/output/aaplChangeVolume.svg b/test/output/aaplChangeVolume.svg index e36edfbd34..33dae914c5 100644 --- a/test/output/aaplChangeVolume.svg +++ b/test/output/aaplChangeVolume.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -80,7 +75,7 @@ ↑ Volume (log₁₀) - + diff --git a/test/output/aaplClose.svg b/test/output/aaplClose.svg index f4a114c53c..865c060a38 100644 --- a/test/output/aaplClose.svg +++ b/test/output/aaplClose.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/aaplCloseUntyped.svg b/test/output/aaplCloseUntyped.svg index 4b39f53e88..0f69ae8687 100644 --- a/test/output/aaplCloseUntyped.svg +++ b/test/output/aaplCloseUntyped.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/aaplMonthly.svg b/test/output/aaplMonthly.svg index 653daa6d67..5cdd5edb35 100644 --- a/test/output/aaplMonthly.svg +++ b/test/output/aaplMonthly.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/aaplVolume.svg b/test/output/aaplVolume.svg index b4202ecb0b..6d64d311e5 100644 --- a/test/output/aaplVolume.svg +++ b/test/output/aaplVolume.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/aaplVolumeRect.svg b/test/output/aaplVolumeRect.svg index 6c741b4cef..b7cf918006 100644 --- a/test/output/aaplVolumeRect.svg +++ b/test/output/aaplVolumeRect.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/anscombeQuartet.svg b/test/output/anscombeQuartet.svg index ccc0051a16..1b626d5be6 100644 --- a/test/output/anscombeQuartet.svg +++ b/test/output/anscombeQuartet.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -81,7 +76,7 @@ - + @@ -101,7 +96,7 @@ - + @@ -121,7 +116,7 @@ - + @@ -141,7 +136,7 @@ - + diff --git a/test/output/athletesBinsColors.svg b/test/output/athletesBinsColors.svg index 025618abce..47370986d6 100644 --- a/test/output/athletesBinsColors.svg +++ b/test/output/athletesBinsColors.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/athletesHeightWeight.svg b/test/output/athletesHeightWeight.svg index d4eeea0929..2a286dca63 100644 --- a/test/output/athletesHeightWeight.svg +++ b/test/output/athletesHeightWeight.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -104,7 +99,7 @@ ↑ height - + diff --git a/test/output/athletesHeightWeightBin.svg b/test/output/athletesHeightWeightBin.svg index 5888083c00..be776cb537 100644 --- a/test/output/athletesHeightWeightBin.svg +++ b/test/output/athletesHeightWeightBin.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -68,7 +63,7 @@ ↑ height - + diff --git a/test/output/athletesHeightWeightBinStroke.svg b/test/output/athletesHeightWeightBinStroke.svg index 82315aec50..55a4b2ce99 100644 --- a/test/output/athletesHeightWeightBinStroke.svg +++ b/test/output/athletesHeightWeightBinStroke.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -68,7 +63,7 @@ ↑ height - + diff --git a/test/output/athletesHeightWeightSex.svg b/test/output/athletesHeightWeightSex.svg index 2e3bebf29d..c9e2dadc5f 100644 --- a/test/output/athletesHeightWeightSex.svg +++ b/test/output/athletesHeightWeightSex.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -68,7 +63,7 @@ ↑ height - + diff --git a/test/output/athletesHeightWeightSport.svg b/test/output/athletesHeightWeightSport.svg index 9b57f04d01..bd00e92643 100644 --- a/test/output/athletesHeightWeightSport.svg +++ b/test/output/athletesHeightWeightSport.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -104,7 +99,7 @@ ↑ height - + diff --git a/test/output/athletesNationality.svg b/test/output/athletesNationality.svg index 9aaea6f668..3518839a7f 100644 --- a/test/output/athletesNationality.svg +++ b/test/output/athletesNationality.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -80,7 +75,7 @@ - + diff --git a/test/output/athletesSexWeight.svg b/test/output/athletesSexWeight.svg index ebdb243984..daf88aabda 100644 --- a/test/output/athletesSexWeight.svg +++ b/test/output/athletesSexWeight.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/athletesSportSex.svg b/test/output/athletesSportSex.svg index 2ac0bb38dd..db0a995421 100644 --- a/test/output/athletesSportSex.svg +++ b/test/output/athletesSportSex.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -104,7 +99,7 @@ - + diff --git a/test/output/athletesSportWeight.svg b/test/output/athletesSportWeight.svg index ea08ffc3a2..d6f1ef6d41 100644 --- a/test/output/athletesSportWeight.svg +++ b/test/output/athletesSportWeight.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -104,7 +99,7 @@ sport - + diff --git a/test/output/athletesWeight.svg b/test/output/athletesWeight.svg index 34a68fd0d1..b471bdae26 100644 --- a/test/output/athletesWeight.svg +++ b/test/output/athletesWeight.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/athletesWeightCumulative.svg b/test/output/athletesWeightCumulative.svg index 9bde5cae1a..4fc471b2ad 100644 --- a/test/output/athletesWeightCumulative.svg +++ b/test/output/athletesWeightCumulative.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/availability.svg b/test/output/availability.svg index 93b6fc4d94..849c0d04a1 100644 --- a/test/output/availability.svg +++ b/test/output/availability.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/ballotStatusRace.svg b/test/output/ballotStatusRace.svg index 3fc9bd5315..32a405c8cd 100644 --- a/test/output/ballotStatusRace.svg +++ b/test/output/ballotStatusRace.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -44,7 +39,7 @@ - + diff --git a/test/output/beckerBarley.svg b/test/output/beckerBarley.svg index c3445a4431..639dff4c4a 100644 --- a/test/output/beckerBarley.svg +++ b/test/output/beckerBarley.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -38,7 +33,7 @@ site - + @@ -119,7 +114,7 @@ - + @@ -167,7 +162,7 @@ - + @@ -215,7 +210,7 @@ - + @@ -263,7 +258,7 @@ - + @@ -311,7 +306,7 @@ - + @@ -359,7 +354,7 @@ - + diff --git a/test/output/caltrain.html b/test/output/caltrain.html index cdb190bf50..7763f85a8f 100644 --- a/test/output/caltrain.html +++ b/test/output/caltrain.html @@ -45,11 +45,6 @@ .plot-2 text { white-space: pre; } - - .plot-2 .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } Northbound Southbound diff --git a/test/output/carsMpg.svg b/test/output/carsMpg.svg index 0491cd5a22..8027d4e237 100644 --- a/test/output/carsMpg.svg +++ b/test/output/carsMpg.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/carsParcoords.svg b/test/output/carsParcoords.svg index 0a83bab62f..5dc08ea61b 100644 --- a/test/output/carsParcoords.svg +++ b/test/output/carsParcoords.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/clamp.svg b/test/output/clamp.svg index 21d615b4b2..61f30c921a 100644 --- a/test/output/clamp.svg +++ b/test/output/clamp.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/collapsedHistogram.svg b/test/output/collapsedHistogram.svg index fe0327afbf..40d88b823f 100644 --- a/test/output/collapsedHistogram.svg +++ b/test/output/collapsedHistogram.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/covidIhmeProjectedDeaths.svg b/test/output/covidIhmeProjectedDeaths.svg index afcba2c221..c4f99f4448 100644 --- a/test/output/covidIhmeProjectedDeaths.svg +++ b/test/output/covidIhmeProjectedDeaths.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -148,7 +143,7 @@ ↑ Deaths per day to COVID-19 (projected) - + diff --git a/test/output/crimeanWarOverlapped.svg b/test/output/crimeanWarOverlapped.svg index 3a94a0b7e0..6694fb196f 100644 --- a/test/output/crimeanWarOverlapped.svg +++ b/test/output/crimeanWarOverlapped.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/crimeanWarStacked.svg b/test/output/crimeanWarStacked.svg index 59d8591a0c..f4893378ca 100644 --- a/test/output/crimeanWarStacked.svg +++ b/test/output/crimeanWarStacked.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/d3Survey2015Comfort.svg b/test/output/d3Survey2015Comfort.svg index ef4fb5ef59..1dcc48eec6 100644 --- a/test/output/d3Survey2015Comfort.svg +++ b/test/output/d3Survey2015Comfort.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -35,7 +30,7 @@ How comfortable are you with d3 now? - + diff --git a/test/output/d3Survey2015Why.svg b/test/output/d3Survey2015Why.svg index 94a0f68271..872d6db1c6 100644 --- a/test/output/d3Survey2015Why.svg +++ b/test/output/d3Survey2015Why.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -65,7 +60,7 @@ Why do you want to learn d3? - + diff --git a/test/output/decathlon.html b/test/output/decathlon.html index 639feb7d3f..636e859f7b 100644 --- a/test/output/decathlon.html +++ b/test/output/decathlon.html @@ -63,14 +63,9 @@ .plot-2 text { white-space: pre; } - - .plot-2 .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -112,7 +107,7 @@ ↑ 100 Meters - + diff --git a/test/output/diamondsCaratPrice.svg b/test/output/diamondsCaratPrice.svg index e86084c51c..69e75c3849 100644 --- a/test/output/diamondsCaratPrice.svg +++ b/test/output/diamondsCaratPrice.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/diamondsCaratPriceDots.svg b/test/output/diamondsCaratPriceDots.svg index 80837c4dfb..ba1b823a7d 100644 --- a/test/output/diamondsCaratPriceDots.svg +++ b/test/output/diamondsCaratPriceDots.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -171,7 +166,7 @@ ↑ Price ($) - + diff --git a/test/output/documentationLinks.svg b/test/output/documentationLinks.svg index 7f7738400b..93a629580d 100644 --- a/test/output/documentationLinks.svg +++ b/test/output/documentationLinks.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -95,7 +90,7 @@ - + diff --git a/test/output/empty.svg b/test/output/empty.svg index ffabf33642..b186dd5dab 100644 --- a/test/output/empty.svg +++ b/test/output/empty.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -68,7 +63,7 @@ - + diff --git a/test/output/emptyX.svg b/test/output/emptyX.svg index 212a3536d7..b0d0fe0bef 100644 --- a/test/output/emptyX.svg +++ b/test/output/emptyX.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } \ No newline at end of file diff --git a/test/output/figcaption.html b/test/output/figcaption.html index 81715e5751..e7097a4d5c 100644 --- a/test/output/figcaption.html +++ b/test/output/figcaption.html @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/figcaptionHtml.html b/test/output/figcaptionHtml.html index 7197c2f039..868deb2115 100644 --- a/test/output/figcaptionHtml.html +++ b/test/output/figcaptionHtml.html @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/firstLadies.svg b/test/output/firstLadies.svg index eb6370c5a4..7d2f7f0637 100644 --- a/test/output/firstLadies.svg +++ b/test/output/firstLadies.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/footballCoverage.svg b/test/output/footballCoverage.svg index fb20561917..d84e0db987 100644 --- a/test/output/footballCoverage.svg +++ b/test/output/footballCoverage.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/fruitSales.svg b/test/output/fruitSales.svg index 3565954dae..d4643128b5 100644 --- a/test/output/fruitSales.svg +++ b/test/output/fruitSales.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/fruitSalesDate.svg b/test/output/fruitSalesDate.svg index 3186eecf54..86f39a9527 100644 --- a/test/output/fruitSalesDate.svg +++ b/test/output/fruitSalesDate.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/gistempAnomaly.svg b/test/output/gistempAnomaly.svg index 8c157b71f6..9755867f35 100644 --- a/test/output/gistempAnomaly.svg +++ b/test/output/gistempAnomaly.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/gistempAnomalyMoving.svg b/test/output/gistempAnomalyMoving.svg index 69abfaf014..8f0bc932c4 100644 --- a/test/output/gistempAnomalyMoving.svg +++ b/test/output/gistempAnomalyMoving.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/gistempAnomalyTransform.svg b/test/output/gistempAnomalyTransform.svg index 2476a6e732..324142fb40 100644 --- a/test/output/gistempAnomalyTransform.svg +++ b/test/output/gistempAnomalyTransform.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/googleTrendsRidgeline.svg b/test/output/googleTrendsRidgeline.svg index 191e993653..6607664579 100644 --- a/test/output/googleTrendsRidgeline.svg +++ b/test/output/googleTrendsRidgeline.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/gridChoropleth.svg b/test/output/gridChoropleth.svg index f8e813671b..0a5b1f8837 100644 --- a/test/output/gridChoropleth.svg +++ b/test/output/gridChoropleth.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/hadcrutWarmingStripes.svg b/test/output/hadcrutWarmingStripes.svg index a7f3c79026..b3cee4841e 100644 --- a/test/output/hadcrutWarmingStripes.svg +++ b/test/output/hadcrutWarmingStripes.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/highCardinalityOrdinal.svg b/test/output/highCardinalityOrdinal.svg index 7675adf832..f2473874ea 100644 --- a/test/output/highCardinalityOrdinal.svg +++ b/test/output/highCardinalityOrdinal.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/identityScale.svg b/test/output/identityScale.svg index 86052cf523..4b7ebabdf2 100644 --- a/test/output/identityScale.svg +++ b/test/output/identityScale.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/industryUnemployment.svg b/test/output/industryUnemployment.svg index 9c474b30c7..a0899beeef 100644 --- a/test/output/industryUnemployment.svg +++ b/test/output/industryUnemployment.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/industryUnemploymentShare.svg b/test/output/industryUnemploymentShare.svg index c7ba401642..82c8a3b864 100644 --- a/test/output/industryUnemploymentShare.svg +++ b/test/output/industryUnemploymentShare.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/industryUnemploymentStream.svg b/test/output/industryUnemploymentStream.svg index 1f2bd6368b..407637bb01 100644 --- a/test/output/industryUnemploymentStream.svg +++ b/test/output/industryUnemploymentStream.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/infinityLog.svg b/test/output/infinityLog.svg index aa7b85e810..cfa39b4db5 100644 --- a/test/output/infinityLog.svg +++ b/test/output/infinityLog.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/learningPoverty.svg b/test/output/learningPoverty.svg index 095056f4cc..ee67da8148 100644 --- a/test/output/learningPoverty.svg +++ b/test/output/learningPoverty.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -320,7 +315,7 @@ - + diff --git a/test/output/letterFrequencyBar.svg b/test/output/letterFrequencyBar.svg index b5266caf1a..53dbf2eabc 100644 --- a/test/output/letterFrequencyBar.svg +++ b/test/output/letterFrequencyBar.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -98,7 +93,7 @@ - + diff --git a/test/output/letterFrequencyCloud.svg b/test/output/letterFrequencyCloud.svg index 58da103851..9bd78fc46f 100644 --- a/test/output/letterFrequencyCloud.svg +++ b/test/output/letterFrequencyCloud.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } ETAOINSHRDLCUMWFGYPBVKJXQZ \ No newline at end of file diff --git a/test/output/letterFrequencyColumn.svg b/test/output/letterFrequencyColumn.svg index 7cf27fb080..fd42181fc5 100644 --- a/test/output/letterFrequencyColumn.svg +++ b/test/output/letterFrequencyColumn.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/letterFrequencyDot.svg b/test/output/letterFrequencyDot.svg index 39acd8acfe..11919db8db 100644 --- a/test/output/letterFrequencyDot.svg +++ b/test/output/letterFrequencyDot.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/letterFrequencyLollipop.svg b/test/output/letterFrequencyLollipop.svg index a501764271..4423b96acd 100644 --- a/test/output/letterFrequencyLollipop.svg +++ b/test/output/letterFrequencyLollipop.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/logDegenerate.svg b/test/output/logDegenerate.svg index 1df575e0c7..ef5876e1f7 100644 --- a/test/output/logDegenerate.svg +++ b/test/output/logDegenerate.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/metroInequality.svg b/test/output/metroInequality.svg index f0e4a2293f..0fa267b78f 100644 --- a/test/output/metroInequality.svg +++ b/test/output/metroInequality.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -72,7 +67,7 @@ ↑ Inequality - + diff --git a/test/output/metroInequalityChange.svg b/test/output/metroInequalityChange.svg index 2dd79916ed..143e5154a3 100644 --- a/test/output/metroInequalityChange.svg +++ b/test/output/metroInequalityChange.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -68,7 +63,7 @@ ↑ Inequality - + diff --git a/test/output/metroUnemployment.svg b/test/output/metroUnemployment.svg index f09c580ac2..85ac672345 100644 --- a/test/output/metroUnemployment.svg +++ b/test/output/metroUnemployment.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/metroUnemploymentHighlight.svg b/test/output/metroUnemploymentHighlight.svg index e83bd330e0..6ab8f8ea5c 100644 --- a/test/output/metroUnemploymentHighlight.svg +++ b/test/output/metroUnemploymentHighlight.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/metroUnemploymentIndex.svg b/test/output/metroUnemploymentIndex.svg index b4c83f16af..3af5af5069 100644 --- a/test/output/metroUnemploymentIndex.svg +++ b/test/output/metroUnemploymentIndex.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/metroUnemploymentMoving.svg b/test/output/metroUnemploymentMoving.svg index 5f432c976c..3aaa3b0d62 100644 --- a/test/output/metroUnemploymentMoving.svg +++ b/test/output/metroUnemploymentMoving.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/metroUnemploymentNormalize.svg b/test/output/metroUnemploymentNormalize.svg index 01843856af..39538e83ec 100644 --- a/test/output/metroUnemploymentNormalize.svg +++ b/test/output/metroUnemploymentNormalize.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/metroUnemploymentRidgeline.svg b/test/output/metroUnemploymentRidgeline.svg index 0d4f8bbc42..28419cab1c 100644 --- a/test/output/metroUnemploymentRidgeline.svg +++ b/test/output/metroUnemploymentRidgeline.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/metroUnemploymentStroke.svg b/test/output/metroUnemploymentStroke.svg index 346ff78430..7af3583a07 100644 --- a/test/output/metroUnemploymentStroke.svg +++ b/test/output/metroUnemploymentStroke.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/mobyDickFaceted.svg b/test/output/mobyDickFaceted.svg index b8667c88e6..7b115b7631 100644 --- a/test/output/mobyDickFaceted.svg +++ b/test/output/mobyDickFaceted.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -36,7 +31,7 @@ - + @@ -81,7 +76,7 @@ - + diff --git a/test/output/mobyDickLetterFrequency.svg b/test/output/mobyDickLetterFrequency.svg index 6112001a76..7a4959ce1d 100644 --- a/test/output/mobyDickLetterFrequency.svg +++ b/test/output/mobyDickLetterFrequency.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/mobyDickLetterPairs.svg b/test/output/mobyDickLetterPairs.svg index 2e2695db8f..7cc8338bb9 100644 --- a/test/output/mobyDickLetterPairs.svg +++ b/test/output/mobyDickLetterPairs.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/mobyDickLetterPosition.svg b/test/output/mobyDickLetterPosition.svg index b5c3d8e816..77123c6a1f 100644 --- a/test/output/mobyDickLetterPosition.svg +++ b/test/output/mobyDickLetterPosition.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/mobyDickLetterRelativeFrequency.svg b/test/output/mobyDickLetterRelativeFrequency.svg index 9bc1b890cd..a95abb1d0f 100644 --- a/test/output/mobyDickLetterRelativeFrequency.svg +++ b/test/output/mobyDickLetterRelativeFrequency.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/morleyBoxplot.svg b/test/output/morleyBoxplot.svg index 2ad7fc82e0..09f8f3cbf9 100644 --- a/test/output/morleyBoxplot.svg +++ b/test/output/morleyBoxplot.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -35,7 +30,7 @@ Expt - + diff --git a/test/output/moviesProfitByGenre.svg b/test/output/moviesProfitByGenre.svg index b639315c26..ab8dd34e90 100644 --- a/test/output/moviesProfitByGenre.svg +++ b/test/output/moviesProfitByGenre.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -59,7 +54,7 @@ - + diff --git a/test/output/musicRevenue.svg b/test/output/musicRevenue.svg index f79161d8f3..0d853a131d 100644 --- a/test/output/musicRevenue.svg +++ b/test/output/musicRevenue.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/ordinalBar.svg b/test/output/ordinalBar.svg index be478b21d2..ca6312e370 100644 --- a/test/output/ordinalBar.svg +++ b/test/output/ordinalBar.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/penguinCulmen.svg b/test/output/penguinCulmen.svg index 47a1fff870..9895c3a5ab 100644 --- a/test/output/penguinCulmen.svg +++ b/test/output/penguinCulmen.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -42,7 +37,7 @@ - + @@ -84,7 +79,7 @@ - + @@ -119,7 +114,7 @@ - + @@ -161,7 +156,7 @@ - + @@ -185,7 +180,7 @@ - + @@ -209,7 +204,7 @@ - + diff --git a/test/output/penguinCulmenArray.svg b/test/output/penguinCulmenArray.svg index 4a868fa457..eef5378a5e 100644 --- a/test/output/penguinCulmenArray.svg +++ b/test/output/penguinCulmenArray.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } @@ -42,7 +37,7 @@ - + @@ -84,7 +79,7 @@ - + @@ -119,7 +114,7 @@ - + @@ -161,7 +156,7 @@ - + @@ -185,7 +180,7 @@ - + @@ -209,7 +204,7 @@ - + diff --git a/test/output/penguinIslandUnknown.svg b/test/output/penguinIslandUnknown.svg index 4e16312774..b7a48d6ba2 100644 --- a/test/output/penguinIslandUnknown.svg +++ b/test/output/penguinIslandUnknown.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/penguinMass.svg b/test/output/penguinMass.svg index 86e9ddf88c..71d818c10b 100644 --- a/test/output/penguinMass.svg +++ b/test/output/penguinMass.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/penguinMassSex.svg b/test/output/penguinMassSex.svg index bdaf4e13ef..c6db1311af 100644 --- a/test/output/penguinMassSex.svg +++ b/test/output/penguinMassSex.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/penguinMassSexSpecies.svg b/test/output/penguinMassSexSpecies.svg index d6a9ee8836..8f7008571a 100644 --- a/test/output/penguinMassSexSpecies.svg +++ b/test/output/penguinMassSexSpecies.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/penguinMassSpecies.svg b/test/output/penguinMassSpecies.svg index aceb238057..2716c49467 100644 --- a/test/output/penguinMassSpecies.svg +++ b/test/output/penguinMassSpecies.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/penguinSex.svg b/test/output/penguinSex.svg index a619072410..44249f6d19 100644 --- a/test/output/penguinSex.svg +++ b/test/output/penguinSex.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/penguinSexMassCulmenSpecies.svg b/test/output/penguinSexMassCulmenSpecies.svg index 00afbaf6ec..f24653db6b 100644 --- a/test/output/penguinSexMassCulmenSpecies.svg +++ b/test/output/penguinSexMassCulmenSpecies.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -119,7 +114,7 @@ - + @@ -155,7 +150,7 @@ - + @@ -191,7 +186,7 @@ - + diff --git a/test/output/penguinSpeciesGroup.svg b/test/output/penguinSpeciesGroup.svg index 1c712e1724..d5cbcdd47f 100644 --- a/test/output/penguinSpeciesGroup.svg +++ b/test/output/penguinSpeciesGroup.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/penguinSpeciesIsland.svg b/test/output/penguinSpeciesIsland.svg index 60753d5038..cca9910878 100644 --- a/test/output/penguinSpeciesIsland.svg +++ b/test/output/penguinSpeciesIsland.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/penguinSpeciesIslandRelative.svg b/test/output/penguinSpeciesIslandRelative.svg index 0da09971cf..86970ae3ee 100644 --- a/test/output/penguinSpeciesIslandRelative.svg +++ b/test/output/penguinSpeciesIslandRelative.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/penguinSpeciesIslandSex.svg b/test/output/penguinSpeciesIslandSex.svg index b9743cef9b..af272fd096 100644 --- a/test/output/penguinSpeciesIslandSex.svg +++ b/test/output/penguinSpeciesIslandSex.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/polylinear.svg b/test/output/polylinear.svg index b3bad99302..b9b0a00d4f 100644 --- a/test/output/polylinear.svg +++ b/test/output/polylinear.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/randomBins.svg b/test/output/randomBins.svg index 0e21d43126..3b088ef38a 100644 --- a/test/output/randomBins.svg +++ b/test/output/randomBins.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/randomBinsXY.svg b/test/output/randomBinsXY.svg index 3a7362b02b..ee1d026890 100644 --- a/test/output/randomBinsXY.svg +++ b/test/output/randomBinsXY.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/randomQuantile.svg b/test/output/randomQuantile.svg index f7244f3833..c883b4e785 100644 --- a/test/output/randomQuantile.svg +++ b/test/output/randomQuantile.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/randomWalk.svg b/test/output/randomWalk.svg index 048bd8eaf1..eaf0e519dd 100644 --- a/test/output/randomWalk.svg +++ b/test/output/randomWalk.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/seattlePrecipitationRule.svg b/test/output/seattlePrecipitationRule.svg index 72f23a07c5..41a472562e 100644 --- a/test/output/seattlePrecipitationRule.svg +++ b/test/output/seattlePrecipitationRule.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/seattleTemperatureBand.svg b/test/output/seattleTemperatureBand.svg index 734589d42e..605acf13a5 100644 --- a/test/output/seattleTemperatureBand.svg +++ b/test/output/seattleTemperatureBand.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/seattleTemperatureCell.svg b/test/output/seattleTemperatureCell.svg index 8a9140848b..a88c40126d 100644 --- a/test/output/seattleTemperatureCell.svg +++ b/test/output/seattleTemperatureCell.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/sfCovidDeaths.svg b/test/output/sfCovidDeaths.svg index 6b255244a8..98d5bcc2fd 100644 --- a/test/output/sfCovidDeaths.svg +++ b/test/output/sfCovidDeaths.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/sfTemperatureBand.svg b/test/output/sfTemperatureBand.svg index fbd3947b31..3a7e2332e2 100644 --- a/test/output/sfTemperatureBand.svg +++ b/test/output/sfTemperatureBand.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/sfTemperatureBandArea.svg b/test/output/sfTemperatureBandArea.svg index 541d12ec98..efa6180294 100644 --- a/test/output/sfTemperatureBandArea.svg +++ b/test/output/sfTemperatureBandArea.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/simpsonsRatings.svg b/test/output/simpsonsRatings.svg index dd016ec9c0..7f9739593d 100644 --- a/test/output/simpsonsRatings.svg +++ b/test/output/simpsonsRatings.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -136,7 +131,7 @@ Season - + diff --git a/test/output/simpsonsRatingsDots.svg b/test/output/simpsonsRatingsDots.svg index 668afeb6cd..fc132499e9 100644 --- a/test/output/simpsonsRatingsDots.svg +++ b/test/output/simpsonsRatingsDots.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/simpsonsViews.svg b/test/output/simpsonsViews.svg index d8c44fc215..e618c3f7d6 100644 --- a/test/output/simpsonsViews.svg +++ b/test/output/simpsonsViews.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -92,7 +87,7 @@ ↑ Viewers (U.S., millions) - + diff --git a/test/output/singleValueBar.svg b/test/output/singleValueBar.svg index 22801c46ea..a2e489cb2a 100644 --- a/test/output/singleValueBar.svg +++ b/test/output/singleValueBar.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/singleValueBin.svg b/test/output/singleValueBin.svg index 00c8937a52..795c302cec 100644 --- a/test/output/singleValueBin.svg +++ b/test/output/singleValueBin.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/softwareVersions.svg b/test/output/softwareVersions.svg index 5c04cda11d..ec45265e54 100644 --- a/test/output/softwareVersions.svg +++ b/test/output/softwareVersions.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/stackedBar.svg b/test/output/stackedBar.svg index 30283b70ee..01039c9cd8 100644 --- a/test/output/stackedBar.svg +++ b/test/output/stackedBar.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/stackedRect.svg b/test/output/stackedRect.svg index 473c695119..46083dfc5d 100644 --- a/test/output/stackedRect.svg +++ b/test/output/stackedRect.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/stargazers.svg b/test/output/stargazers.svg index 1eb2bfb77f..6a943df1ed 100644 --- a/test/output/stargazers.svg +++ b/test/output/stargazers.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/stargazersBinned.svg b/test/output/stargazersBinned.svg index 79a3e78a9b..e68705ff7f 100644 --- a/test/output/stargazersBinned.svg +++ b/test/output/stargazersBinned.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/stargazersHourly.svg b/test/output/stargazersHourly.svg index 1fc4275dca..1d674c3a5b 100644 --- a/test/output/stargazersHourly.svg +++ b/test/output/stargazersHourly.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/stargazersHourlyGroup.svg b/test/output/stargazersHourlyGroup.svg index 3d76d84601..0f754725d4 100644 --- a/test/output/stargazersHourlyGroup.svg +++ b/test/output/stargazersHourlyGroup.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/stocksIndex.svg b/test/output/stocksIndex.svg index 51ba4f85f5..29728346ac 100644 --- a/test/output/stocksIndex.svg +++ b/test/output/stocksIndex.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/travelersYearOverYear.svg b/test/output/travelersYearOverYear.svg index 539cabc936..92369856a3 100644 --- a/test/output/travelersYearOverYear.svg +++ b/test/output/travelersYearOverYear.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/uniformRandomDifference.svg b/test/output/uniformRandomDifference.svg index 02f065cc5b..25c54f53dd 100644 --- a/test/output/uniformRandomDifference.svg +++ b/test/output/uniformRandomDifference.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/untypedDateBin.svg b/test/output/untypedDateBin.svg index a52db1a6e4..92c87ad32c 100644 --- a/test/output/untypedDateBin.svg +++ b/test/output/untypedDateBin.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/usCongressAge.svg b/test/output/usCongressAge.svg index 5bc733951a..fa66132253 100644 --- a/test/output/usCongressAge.svg +++ b/test/output/usCongressAge.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/usCongressAgeGender.svg b/test/output/usCongressAgeGender.svg index c9fdf939f4..fdda10e296 100644 --- a/test/output/usCongressAgeGender.svg +++ b/test/output/usCongressAgeGender.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/usPopulationStateAge.svg b/test/output/usPopulationStateAge.svg index 3b3478f28f..4336569d02 100644 --- a/test/output/usPopulationStateAge.svg +++ b/test/output/usPopulationStateAge.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -60,7 +55,7 @@ Age - + diff --git a/test/output/usPopulationStateAgeDots.svg b/test/output/usPopulationStateAgeDots.svg index 79a3e2f682..577b81a49b 100644 --- a/test/output/usPopulationStateAgeDots.svg +++ b/test/output/usPopulationStateAgeDots.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/usPresidentFavorabilityDots.svg b/test/output/usPresidentFavorabilityDots.svg index 2662d125d2..b14b5828e5 100644 --- a/test/output/usPresidentFavorabilityDots.svg +++ b/test/output/usPresidentFavorabilityDots.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/usPresidentialElection2020.svg b/test/output/usPresidentialElection2020.svg index 0329dc8054..a81e3c6849 100644 --- a/test/output/usPresidentialElection2020.svg +++ b/test/output/usPresidentialElection2020.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -196,7 +191,7 @@ ↑ Total number of votes - + diff --git a/test/output/usPresidentialForecast2016.svg b/test/output/usPresidentialForecast2016.svg index 3a342661bc..6380645d3b 100644 --- a/test/output/usPresidentialForecast2016.svg +++ b/test/output/usPresidentialForecast2016.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/usRetailSales.svg b/test/output/usRetailSales.svg index 2c1e258a78..c4b1e83889 100644 --- a/test/output/usRetailSales.svg +++ b/test/output/usRetailSales.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + diff --git a/test/output/usStatePopulationChange.svg b/test/output/usStatePopulationChange.svg index 47889dedfb..bfa2331a5a 100644 --- a/test/output/usStatePopulationChange.svg +++ b/test/output/usStatePopulationChange.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + @@ -232,7 +227,7 @@ - + diff --git a/test/output/vectorField.svg b/test/output/vectorField.svg index 9278d4be05..67d5f579ec 100644 --- a/test/output/vectorField.svg +++ b/test/output/vectorField.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/wealthBritainBar.svg b/test/output/wealthBritainBar.svg index 4b3091ba91..c9102a3e8c 100644 --- a/test/output/wealthBritainBar.svg +++ b/test/output/wealthBritainBar.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/wealthBritainProportionPlot.svg b/test/output/wealthBritainProportionPlot.svg index 65909da4dc..5e86d14ea6 100644 --- a/test/output/wealthBritainProportionPlot.svg +++ b/test/output/wealthBritainProportionPlot.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } diff --git a/test/output/wordCloud.svg b/test/output/wordCloud.svg index 2141e27ab2..78640ec538 100644 --- a/test/output/wordCloud.svg +++ b/test/output/wordCloud.svg @@ -11,11 +11,6 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } a (69)about (7)account (2)ago (2)air (2)all (23)almost (3)aloft (2)always (2)am (4)among (2)an (4)and (73)any (2)are (5)as (26)at (5)be (9)because (4)been (2)before (3)begin (2)being (4)besides (2)better (2)between (2)broiled (3)but (15)by (8)can (6)cannot (2)captain (2)care (2)chief (2)city (2)come (3)commodore (2)content (2)cook (3)could (2)country (2)crowds (2)deck (2)deep (2)did (5)distant (2)do (8)does (2)down (6)each (2)else (2)ever (5)every (4)exactly (2)fates (2)find (2)first (4)fixed (2)for (16)forecastle (2)from (11)get (6)glory (2)go (12)going (4)grand (3)great (3)grow (2)hand (3)have (8)having (2)he (10)head (4)healthy (2)here (5)high (4)hill (2)him (3)himself (2)his (10)how (3)however (2)hunks (2)i (43)if (9)image (3)in (48)into (9)is (34)ishmael (2)it (33)its (2)just (2)land (6)lead (2)leaders (2)leaves (2)let (2)like (6)little (4)long (2)look (2)magic (2)make (2)man (3)mast (2)may (3)me (25)meadow (2)mean (2)meaning (2)men (4)metaphysical (2)miles (3)money (4)more (6)most (5)motives (2)much (4)must (4)my (14)myself (3)never (5)no (6)not (11)nothing (3)now (5)ocean (2)of (81)off (3)officer (2)old (6)on (12)once (2)one (10)or (10)order (2)other (5)others (2)ourselves (2)out (3)over (2)own (2)paid (2)part (7)particular (2)parts (3)passenger (4)passengers (3)pay (2)paying (3)perhaps (2)phantom (2)plunged (2)point (2)previous (2)purse (3)requires (2)respectfully (2)reveries (2)right (3)robust (2)round (2)sail (2)sailor (5)same (5)say (3)schoolmaster (2)scores (2)sea (13)seas (2)see (6)set (3)shepherds (2)ship (3)ships (3)should (3)sight (2)sleep (2)so (4)some (11)something (3)sort (3)soul (3)spar (2)stand (5)still (3)stream (2)streets (2)strong (2)such (5)take (6)tell (4)than (4)that (31)the (124)their (4)them (5)themselves (2)then (5)there (16)these (4)they (12)thing (2)things (4)think (2)thinks (2)this (17)those (4)though (7)thousand (2)thousands (2)thump (2)time (6)to (53)two (4)under (2)unless (2)up (4)upon (9)voyage (6)warehouses (2)was (8)water (8)way (6)we (3)well (2)were (7)whale (3)whaling (5)what (9)when (5)whenever (5)where (2)which (4)who (5)why (7)wild (2)will (6)winds (3)with (13)without (3)world (4)would (4)yet (4)yonder (2)you (23)your (6) \ No newline at end of file diff --git a/test/output/wordLengthMobyDick.svg b/test/output/wordLengthMobyDick.svg index ed3c995aa9..23f7ccfa55 100644 --- a/test/output/wordLengthMobyDick.svg +++ b/test/output/wordLengthMobyDick.svg @@ -11,14 +11,9 @@ .plot text { white-space: pre; } - - .plot .grid { - stroke: currentColor; - stroke-opacity: 0.1; - } - + From 783d8c667516ac6c5a34a5c2a1ed63592d374ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Rivi=C3=A8re?= Date: Tue, 11 Jan 2022 16:49:37 +0100 Subject: [PATCH 8/8] explicit grid ticks (given as an array) are considered as part of the default domain --- README.md | 2 +- src/scales.js | 8 +- test/output/athletesHeightWeightTicks.svg | 10987 ++++++++++++++++ test/output/athletesHeightWeightTicksOnly.svg | 127 + .../athletes-height-weight-ticks-only.js | 10 + test/plots/athletes-height-weight-ticks.js | 14 + test/plots/index.js | 2 + 7 files changed, 11147 insertions(+), 3 deletions(-) create mode 100644 test/output/athletesHeightWeightTicks.svg create mode 100644 test/output/athletesHeightWeightTicksOnly.svg create mode 100644 test/plots/athletes-height-weight-ticks-only.js create mode 100644 test/plots/athletes-height-weight-ticks.js diff --git a/README.md b/README.md index ecc0abfb11..049f56061b 100644 --- a/README.md +++ b/README.md @@ -276,7 +276,7 @@ Plot automatically generates axes for position scales. You can configure these a * *scale*.**tickPadding** - the separation between the tick and its label (in pixels; default 3) * *scale*.**tickFormat** - how to format tick values as a string (a function or format specifier) * *scale*.**tickRotate** - whether to rotate tick labels (an angle in degrees clockwise; default 0) -* *scale*.**grid** - if true, a positive number, or an array of tick values, draw grid lines across the plot for each tick +* *scale*.**grid** - if true, a positive number, or an array of tick values, draw grid lines across the plot for each tick; if an array of tick values is specified, the default domain will include them * *scale*.**line** - if true, draw the axis line * *scale*.**label** - a string to label the axis * *scale*.**labelAnchor** - the label anchor: *top*, *right*, *bottom*, *left*, or *center* diff --git a/src/scales.js b/src/scales.js index 811f5fe1b6..1d121e5f3e 100644 --- a/src/scales.js +++ b/src/scales.js @@ -18,19 +18,23 @@ export function Scales(channels, { clamp, align, padding, + grid, ...options } = {}) { const scales = {}; for (const key of registry.keys()) { - const scaleChannels = channels.get(key); const scaleOptions = options[key]; - if (scaleChannels || scaleOptions) { + const ticks = scaleOptions && Array.isArray(scaleOptions.grid) ? scaleOptions.grid : Array.isArray(grid) ? grid : null; + const scaleChannels = channels.has(key) ? channels.get(key) : []; + if (ticks && ticks.length) scaleChannels.push({value: ticks}); + if (scaleChannels.length || scaleOptions) { const scale = Scale(key, scaleChannels, { round: registry.get(key) === position ? round : undefined, // only for position nice, clamp, align, padding, + grid, ...scaleOptions }); if (scale) { diff --git a/test/output/athletesHeightWeightTicks.svg b/test/output/athletesHeightWeightTicks.svg new file mode 100644 index 0000000000..2b722ccd75 --- /dev/null +++ b/test/output/athletesHeightWeightTicks.svg @@ -0,0 +1,10987 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.0 + + + 1.1 + + + 1.2 + + + 1.3 + + + 1.4 + + + 1.5 + + + 1.6 + + + 1.7 + + + 1.8 + + + 1.9 + + + 2.0 + + + 2.1 + + + 2.2 + ↑ height + + + + + + + + + + + + + + + + + + + + + + + 40 + + + 60 + + + 80 + + + 100 + + + 120 + + + 140 + + + 160 + weight → + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/output/athletesHeightWeightTicksOnly.svg b/test/output/athletesHeightWeightTicksOnly.svg new file mode 100644 index 0000000000..97c4c46619 --- /dev/null +++ b/test/output/athletesHeightWeightTicksOnly.svg @@ -0,0 +1,127 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1.0 + + + 1.1 + + + 1.2 + + + 1.3 + + + 1.4 + + + 1.5 + + + 1.6 + + + 1.7 + + + 1.8 + + + 1.9 + + + 2.0 + + + 2.1 + + + 2.2 + + + + + + + + + + + + + + + + + + + + + + + + 40 + + + 60 + + + 80 + + + 100 + + + 120 + + + 140 + + + 160 + + + \ No newline at end of file diff --git a/test/plots/athletes-height-weight-ticks-only.js b/test/plots/athletes-height-weight-ticks-only.js new file mode 100644 index 0000000000..bdf92ce5c1 --- /dev/null +++ b/test/plots/athletes-height-weight-ticks-only.js @@ -0,0 +1,10 @@ +import * as Plot from "@observablehq/plot"; +import * as d3 from "d3"; + +export default async function() { + return Plot.plot({ + x: {grid: d3.range(30, 180, 10)}, + y: {grid: d3.range(1, 2.2, 0.05)}, + height: 640 + }); +} diff --git a/test/plots/athletes-height-weight-ticks.js b/test/plots/athletes-height-weight-ticks.js new file mode 100644 index 0000000000..47fd8fd034 --- /dev/null +++ b/test/plots/athletes-height-weight-ticks.js @@ -0,0 +1,14 @@ +import * as Plot from "@observablehq/plot"; +import * as d3 from "d3"; + +export default async function() { + const athletes = await d3.csv("data/athletes.csv", d3.autoType); + return Plot.plot({ + x: {grid: d3.range(30, 180, 10)}, + y: {grid: d3.range(1, 2.2, 0.05)}, + height: 640, + marks: [ + Plot.dot(athletes, {x: "weight", y: "height"}) + ] + }); +} diff --git a/test/plots/index.js b/test/plots/index.js index 4526d2b592..0cb2316757 100644 --- a/test/plots/index.js +++ b/test/plots/index.js @@ -13,6 +13,8 @@ export {default as athletesHeightWeightBin} from "./athletes-height-weight-bin.j export {default as athletesHeightWeightBinStroke} from "./athletes-height-weight-bin-stroke.js"; export {default as athletesHeightWeightSport} from "./athletes-height-weight-sport.js"; export {default as athletesHeightWeightSex} from "./athletes-height-weight-sex.js"; +export {default as athletesHeightWeightTicks} from "./athletes-height-weight-ticks.js"; +export {default as athletesHeightWeightTicksOnly} from "./athletes-height-weight-ticks-only.js"; export {default as athletesNationality} from "./athletes-nationality.js"; export {default as athletesSexWeight} from "./athletes-sex-weight.js"; export {default as athletesSportSex} from "./athletes-sport-sex.js";