From 822aebf2fbbb30ef16ff8e288e3689818cfbe07c Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Thu, 21 Oct 2021 10:58:05 -0700 Subject: [PATCH 1/3] inline styles; tabular nums --- bundle.js | 1 - package.json | 5 +--- rollup.config.js | 25 ------------------- src/plot.js | 20 ++++++++++++++- src/style.css | 12 --------- test/output/aaplBollinger.svg | 2 +- test/output/aaplCandlestick.svg | 2 +- test/output/aaplChangeVolume.svg | 2 +- test/output/aaplClose.svg | 2 +- test/output/aaplCloseUntyped.svg | 2 +- test/output/aaplMonthly.svg | 2 +- test/output/aaplVolume.svg | 2 +- test/output/aaplVolumeRect.svg | 2 +- test/output/anscombeQuartet.svg | 2 +- test/output/athletesHeightWeight.svg | 2 +- test/output/athletesHeightWeightBin.svg | 2 +- test/output/athletesHeightWeightBinStroke.svg | 2 +- test/output/athletesHeightWeightSex.svg | 2 +- test/output/athletesHeightWeightSport.svg | 2 +- test/output/athletesNationality.svg | 2 +- test/output/athletesSexWeight.svg | 2 +- test/output/athletesSportSex.svg | 2 +- test/output/athletesSportWeight.svg | 2 +- test/output/athletesWeight.svg | 2 +- test/output/athletesWeightCumulative.svg | 2 +- test/output/availability.svg | 2 +- test/output/ballotStatusRace.svg | 2 +- test/output/beckerBarley.svg | 2 +- test/output/caltrain.svg | 2 +- test/output/carsMpg.svg | 2 +- test/output/carsParcoords.svg | 2 +- test/output/collapsedHistogram.svg | 2 +- test/output/covidIhmeProjectedDeaths.svg | 2 +- test/output/crimeanWarOverlapped.svg | 2 +- test/output/crimeanWarStacked.svg | 2 +- test/output/d3Survey2015Comfort.svg | 2 +- test/output/d3Survey2015Why.svg | 2 +- test/output/diamondsCaratPrice.svg | 2 +- test/output/diamondsCaratPriceDots.svg | 2 +- test/output/empty.svg | 2 +- test/output/emptyX.svg | 2 +- test/output/figcaption.html | 2 +- test/output/figcaptionHtml.html | 2 +- test/output/firstLadies.svg | 2 +- test/output/footballCoverage.svg | 2 +- test/output/fruitSales.svg | 2 +- test/output/fruitSalesDate.svg | 2 +- test/output/gistempAnomaly.svg | 2 +- test/output/gistempAnomalyMoving.svg | 2 +- test/output/gistempAnomalyTransform.svg | 2 +- test/output/googleTrendsRidgeline.svg | 2 +- test/output/gridChoropleth.svg | 2 +- test/output/hadcrutWarmingStripes.svg | 2 +- test/output/highCardinalityOrdinal.svg | 2 +- test/output/identityScale.svg | 2 +- test/output/industryUnemployment.svg | 2 +- test/output/industryUnemploymentShare.svg | 2 +- test/output/industryUnemploymentStream.svg | 2 +- test/output/learningPoverty.svg | 2 +- test/output/letterFrequencyBar.svg | 2 +- test/output/letterFrequencyCloud.svg | 2 +- test/output/letterFrequencyColumn.svg | 2 +- test/output/letterFrequencyDot.svg | 2 +- test/output/letterFrequencyLollipop.svg | 2 +- test/output/logDegenerate.svg | 2 +- test/output/metroInequality.svg | 2 +- test/output/metroInequalityChange.svg | 2 +- test/output/metroUnemployment.svg | 2 +- test/output/metroUnemploymentHighlight.svg | 2 +- test/output/metroUnemploymentIndex.svg | 2 +- test/output/metroUnemploymentMoving.svg | 2 +- test/output/metroUnemploymentNormalize.svg | 2 +- test/output/metroUnemploymentRidgeline.svg | 2 +- test/output/mobyDickFaceted.svg | 2 +- test/output/mobyDickLetterFrequency.svg | 2 +- test/output/mobyDickLetterPairs.svg | 2 +- test/output/mobyDickLetterPosition.svg | 2 +- .../mobyDickLetterRelativeFrequency.svg | 2 +- test/output/morleyBoxplot.svg | 2 +- test/output/moviesProfitByGenre.svg | 2 +- test/output/musicRevenue.svg | 2 +- test/output/ordinalBar.svg | 2 +- test/output/penguinCulmen.svg | 2 +- test/output/penguinCulmenArray.svg | 2 +- test/output/penguinIslandUnknown.svg | 2 +- test/output/penguinMass.svg | 2 +- test/output/penguinMassSex.svg | 2 +- test/output/penguinMassSexSpecies.svg | 2 +- test/output/penguinMassSpecies.svg | 2 +- test/output/penguinSex.svg | 2 +- test/output/penguinSexMassCulmenSpecies.svg | 2 +- test/output/penguinSpeciesGroup.svg | 2 +- test/output/penguinSpeciesIsland.svg | 2 +- test/output/penguinSpeciesIslandRelative.svg | 2 +- test/output/penguinSpeciesIslandSex.svg | 2 +- test/output/policeDeaths.svg | 2 +- test/output/policeDeathsBar.svg | 2 +- test/output/polylinear.svg | 2 +- test/output/randomBins.svg | 2 +- test/output/randomBinsXY.svg | 2 +- test/output/randomQuantile.svg | 2 +- test/output/randomWalk.svg | 2 +- test/output/seattlePrecipitationRule.svg | 2 +- test/output/seattleTemperatureBand.svg | 2 +- test/output/seattleTemperatureCell.svg | 2 +- test/output/sfCovidDeaths.svg | 2 +- test/output/sfTemperatureBand.svg | 2 +- test/output/sfTemperatureBandArea.svg | 2 +- test/output/simpsonsRatings.svg | 2 +- test/output/simpsonsRatingsDots.svg | 2 +- test/output/simpsonsViews.svg | 2 +- test/output/singleValueBar.svg | 2 +- test/output/singleValueBin.svg | 2 +- test/output/softwareVersions.svg | 2 +- test/output/stackedBar.svg | 2 +- test/output/stackedRect.svg | 2 +- test/output/stargazers.svg | 2 +- test/output/stargazersBinned.svg | 2 +- test/output/stargazersHourly.svg | 2 +- test/output/stargazersHourlyGroup.svg | 2 +- test/output/stocksIndex.svg | 2 +- test/output/travelersYearOverYear.svg | 2 +- test/output/uniformRandomDifference.svg | 2 +- test/output/untypedDateBin.svg | 2 +- test/output/usCongressAge.svg | 2 +- test/output/usCongressAgeGender.svg | 2 +- test/output/usPopulationStateAge.svg | 2 +- test/output/usPopulationStateAgeDots.svg | 2 +- test/output/usPresidentialElection2020.svg | 2 +- test/output/usPresidentialForecast2016.svg | 2 +- test/output/usRetailSales.svg | 2 +- test/output/usStatePopulationChange.svg | 2 +- test/output/wordCloud.svg | 2 +- test/output/wordLengthMobyDick.svg | 2 +- test/plot.js | 2 ++ test/plots/index.html | 1 - yarn.lock | 14 +---------- 137 files changed, 152 insertions(+), 186 deletions(-) delete mode 100644 src/style.css diff --git a/bundle.js b/bundle.js index 654968bcd4..b475ebe70e 100644 --- a/bundle.js +++ b/bundle.js @@ -1,3 +1,2 @@ -import "./src/style.css"; export {version} from "./package.json"; export * from "./src/index.js"; diff --git a/package.json b/package.json index ffa8402cd8..0fb97b138b 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,7 @@ }, "files": [ "dist/**/*.js", - "src/**/*.js", - "src/**/*.css" + "src/**/*.js" ], "scripts": { "test": "mkdir -p test/output && mocha -r module-alias/register 'test/**/*-test.js' test/plot.js && eslint src test", @@ -38,12 +37,10 @@ "devDependencies": { "@rollup/plugin-json": "^4.1.0", "@rollup/plugin-node-resolve": "^13.0.4", - "clean-css": "^5.1.1", "eslint": "^7.12.1", "htl": "^0.3.0", "js-beautify": "^1.13.0", "jsdom": "^17.0.0", - "jsesc": "^3.0.2", "mocha": "^9.1.0", "module-alias": "^2.2.2", "rollup": "^2.32.1", diff --git a/rollup.config.js b/rollup.config.js index 5b83bcf5ef..f2cded1105 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,10 +1,7 @@ import fs from "fs"; -import path from "path"; import {terser} from "rollup-plugin-terser"; import json from "@rollup/plugin-json"; import node from "@rollup/plugin-node-resolve"; -import jsesc from "jsesc"; -import CleanCSS from "clean-css"; import * as meta from "./package.json"; const filename = meta.name.split("/").pop(); @@ -20,27 +17,6 @@ const copyrights = fs.readFileSync("./LICENSE", "utf-8") .filter(line => /^copyright\s+/i.test(line)) .map(line => line.replace(/^copyright\s+/i, "")); -// A lil’ Rollup plugin to allow importing of style.css. -const cssPath = path.resolve("./src/style.css"); -const css = { - load(id) { - if (id !== cssPath) return; - return fs.readFileSync(id, "utf8"); - }, - transform(input, id) { - if (id !== cssPath) return; - return { - moduleSideEffects: true, - code: `if (typeof document !== 'undefined') { - const style = document.createElement('style'); - style.textContent = '${jsesc(new CleanCSS().minify(input).styles)}'; - document.head.appendChild(style); -} -` - }; - } -}; - const config = { input: "bundle.js", external: ["d3"], @@ -49,7 +25,6 @@ const config = { banner: `// ${meta.name} v${meta.version} Copyright ${copyrights.join(", ")}` }, plugins: [ - css, json(), node() ] diff --git a/src/plot.js b/src/plot.js index 88a2f3d664..0b7079bf4d 100644 --- a/src/plot.js +++ b/src/plot.js @@ -68,13 +68,31 @@ export function plot(options = {}) { const {width, height} = dimensions; + // A unique identifier for this plot, for inline styles. + const uid = `plot-${Math.random().toString(16).slice(2)}`; + const svg = create("svg") - .attr("class", "plot") + .attr("class", uid) .attr("fill", "currentColor") + .attr("font-family", "system-ui, sans-serif") + .attr("font-size", 10) + .attr("font-variant", "tabular-nums") .attr("text-anchor", "middle") .attr("width", width) .attr("height", height) .attr("viewBox", `0 0 ${width} ${height}`) + .call(svg => svg.append("style").text(` + .${uid} { + display: block; + background: white; + height: auto; + height: intrinsic; + max-width: 100%; + } + .${uid} text { + white-space: pre; + } + `)) .each(function() { if (typeof style === "string") this.style = style; else Object.assign(this.style, style); diff --git a/src/style.css b/src/style.css deleted file mode 100644 index 3e3f60c161..0000000000 --- a/src/style.css +++ /dev/null @@ -1,12 +0,0 @@ -.plot { - display: block; - font: 10px system-ui, sans-serif; - background: white; - height: auto; - height: intrinsic; - max-width: 100%; -} - -.plot text { - white-space: pre; -} diff --git a/test/output/aaplBollinger.svg b/test/output/aaplBollinger.svg index 78a111203f..b6683e8120 100644 --- a/test/output/aaplBollinger.svg +++ b/test/output/aaplBollinger.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/aaplCandlestick.svg b/test/output/aaplCandlestick.svg index dd3e08358e..2055b8bd72 100644 --- a/test/output/aaplCandlestick.svg +++ b/test/output/aaplCandlestick.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/aaplChangeVolume.svg b/test/output/aaplChangeVolume.svg index ec07fa6c3b..adaac8c26c 100644 --- a/test/output/aaplChangeVolume.svg +++ b/test/output/aaplChangeVolume.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/aaplClose.svg b/test/output/aaplClose.svg index 9ed31e3ee0..91416c9b40 100644 --- a/test/output/aaplClose.svg +++ b/test/output/aaplClose.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/aaplCloseUntyped.svg b/test/output/aaplCloseUntyped.svg index 3800f7e59e..f4a2ca073d 100644 --- a/test/output/aaplCloseUntyped.svg +++ b/test/output/aaplCloseUntyped.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/aaplMonthly.svg b/test/output/aaplMonthly.svg index c28af133ce..b286e8e7bc 100644 --- a/test/output/aaplMonthly.svg +++ b/test/output/aaplMonthly.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/aaplVolume.svg b/test/output/aaplVolume.svg index d3c5e91ce0..0c470308b0 100644 --- a/test/output/aaplVolume.svg +++ b/test/output/aaplVolume.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/aaplVolumeRect.svg b/test/output/aaplVolumeRect.svg index fee5740556..7711e78553 100644 --- a/test/output/aaplVolumeRect.svg +++ b/test/output/aaplVolumeRect.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/anscombeQuartet.svg b/test/output/anscombeQuartet.svg index ea2dd9e2aa..9f9165ca53 100644 --- a/test/output/anscombeQuartet.svg +++ b/test/output/anscombeQuartet.svg @@ -1,4 +1,4 @@ - + 4 diff --git a/test/output/athletesHeightWeight.svg b/test/output/athletesHeightWeight.svg index 0c9697e1e9..46b7b09614 100644 --- a/test/output/athletesHeightWeight.svg +++ b/test/output/athletesHeightWeight.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/athletesHeightWeightBin.svg b/test/output/athletesHeightWeightBin.svg index af6b696d38..b632fbaeb5 100644 --- a/test/output/athletesHeightWeightBin.svg +++ b/test/output/athletesHeightWeightBin.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/athletesHeightWeightBinStroke.svg b/test/output/athletesHeightWeightBinStroke.svg index 2057b4f7c8..004b7cda88 100644 --- a/test/output/athletesHeightWeightBinStroke.svg +++ b/test/output/athletesHeightWeightBinStroke.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/athletesHeightWeightSex.svg b/test/output/athletesHeightWeightSex.svg index c030ed0403..2010357a55 100644 --- a/test/output/athletesHeightWeightSex.svg +++ b/test/output/athletesHeightWeightSex.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/athletesHeightWeightSport.svg b/test/output/athletesHeightWeightSport.svg index 848214a15f..dd66776512 100644 --- a/test/output/athletesHeightWeightSport.svg +++ b/test/output/athletesHeightWeightSport.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/athletesNationality.svg b/test/output/athletesNationality.svg index 89319fc076..56ca39634c 100644 --- a/test/output/athletesNationality.svg +++ b/test/output/athletesNationality.svg @@ -1,4 +1,4 @@ - + USA diff --git a/test/output/athletesSexWeight.svg b/test/output/athletesSexWeight.svg index def56a2ea8..0a8da4d088 100644 --- a/test/output/athletesSexWeight.svg +++ b/test/output/athletesSexWeight.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/athletesSportSex.svg b/test/output/athletesSportSex.svg index 3d1a5fffb7..f87436fcc6 100644 --- a/test/output/athletesSportSex.svg +++ b/test/output/athletesSportSex.svg @@ -1,4 +1,4 @@ - + boxing diff --git a/test/output/athletesSportWeight.svg b/test/output/athletesSportWeight.svg index 206f7a2fa2..eae62b5af1 100644 --- a/test/output/athletesSportWeight.svg +++ b/test/output/athletesSportWeight.svg @@ -1,4 +1,4 @@ - + aquatics diff --git a/test/output/athletesWeight.svg b/test/output/athletesWeight.svg index 64a015a518..fdcf68684d 100644 --- a/test/output/athletesWeight.svg +++ b/test/output/athletesWeight.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/athletesWeightCumulative.svg b/test/output/athletesWeightCumulative.svg index 8325d3041c..9fd4ea2d55 100644 --- a/test/output/athletesWeightCumulative.svg +++ b/test/output/athletesWeightCumulative.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/availability.svg b/test/output/availability.svg index a1070c11d0..ceb4f0facb 100644 --- a/test/output/availability.svg +++ b/test/output/availability.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/ballotStatusRace.svg b/test/output/ballotStatusRace.svg index 6f620e501e..7da2a10fb6 100644 --- a/test/output/ballotStatusRace.svg +++ b/test/output/ballotStatusRace.svg @@ -1,4 +1,4 @@ - + WHITE diff --git a/test/output/beckerBarley.svg b/test/output/beckerBarley.svg index e37b23dff6..76f1a56b41 100644 --- a/test/output/beckerBarley.svg +++ b/test/output/beckerBarley.svg @@ -1,4 +1,4 @@ - + Waseca diff --git a/test/output/caltrain.svg b/test/output/caltrain.svg index b7ba4437ed..882c47d303 100644 --- a/test/output/caltrain.svg +++ b/test/output/caltrain.svg @@ -1,4 +1,4 @@ - + Northbound Southbound 5a8p9p10p11p8a9a5p6p10a11a12p1p2p3p4p6a7a7p12a diff --git a/test/output/carsMpg.svg b/test/output/carsMpg.svg index 91088b166d..55d9f7375e 100644 --- a/test/output/carsMpg.svg +++ b/test/output/carsMpg.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/carsParcoords.svg b/test/output/carsParcoords.svg index fb6f45a449..b661e21c56 100644 --- a/test/output/carsParcoords.svg +++ b/test/output/carsParcoords.svg @@ -1,4 +1,4 @@ - + economy (mpg) diff --git a/test/output/collapsedHistogram.svg b/test/output/collapsedHistogram.svg index 990c03d489..641c2157ae 100644 --- a/test/output/collapsedHistogram.svg +++ b/test/output/collapsedHistogram.svg @@ -1,4 +1,4 @@ - + 0.0 diff --git a/test/output/covidIhmeProjectedDeaths.svg b/test/output/covidIhmeProjectedDeaths.svg index 60235b8799..e4d4cc5dd7 100644 --- a/test/output/covidIhmeProjectedDeaths.svg +++ b/test/output/covidIhmeProjectedDeaths.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/crimeanWarOverlapped.svg b/test/output/crimeanWarOverlapped.svg index c7ba706d3b..f3e66b6e28 100644 --- a/test/output/crimeanWarOverlapped.svg +++ b/test/output/crimeanWarOverlapped.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/crimeanWarStacked.svg b/test/output/crimeanWarStacked.svg index f2eae27f53..f4bc8b5aba 100644 --- a/test/output/crimeanWarStacked.svg +++ b/test/output/crimeanWarStacked.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/d3Survey2015Comfort.svg b/test/output/d3Survey2015Comfort.svg index e9ccd9dc10..e216c02538 100644 --- a/test/output/d3Survey2015Comfort.svg +++ b/test/output/d3Survey2015Comfort.svg @@ -1,4 +1,4 @@ - + I looked at some examples! diff --git a/test/output/d3Survey2015Why.svg b/test/output/d3Survey2015Why.svg index aea92444f7..96058d5212 100644 --- a/test/output/d3Survey2015Why.svg +++ b/test/output/d3Survey2015Why.svg @@ -1,4 +1,4 @@ - + For work diff --git a/test/output/diamondsCaratPrice.svg b/test/output/diamondsCaratPrice.svg index 59d994405e..3ba58c457a 100644 --- a/test/output/diamondsCaratPrice.svg +++ b/test/output/diamondsCaratPrice.svg @@ -1,4 +1,4 @@ - + 1,000 diff --git a/test/output/diamondsCaratPriceDots.svg b/test/output/diamondsCaratPriceDots.svg index f22b4778f7..58c62f357d 100644 --- a/test/output/diamondsCaratPriceDots.svg +++ b/test/output/diamondsCaratPriceDots.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/empty.svg b/test/output/empty.svg index 8f790da6ef..8ed5b1638b 100644 --- a/test/output/empty.svg +++ b/test/output/empty.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/emptyX.svg b/test/output/emptyX.svg index f65b9c33e0..acbe6ad644 100644 --- a/test/output/emptyX.svg +++ b/test/output/emptyX.svg @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/test/output/figcaption.html b/test/output/figcaption.html index 822194ec6f..4c19f71249 100644 --- a/test/output/figcaption.html +++ b/test/output/figcaption.html @@ -1,4 +1,4 @@ -
+
diff --git a/test/output/figcaptionHtml.html b/test/output/figcaptionHtml.html index f0c8da2b4b..5e68b9ee6e 100644 --- a/test/output/figcaptionHtml.html +++ b/test/output/figcaptionHtml.html @@ -1,4 +1,4 @@ -
+
diff --git a/test/output/firstLadies.svg b/test/output/firstLadies.svg index e581d26fb9..9a15ccdae8 100644 --- a/test/output/firstLadies.svg +++ b/test/output/firstLadies.svg @@ -1,4 +1,4 @@ - + 1740 diff --git a/test/output/footballCoverage.svg b/test/output/footballCoverage.svg index 8190c58ab4..67bc6136aa 100644 --- a/test/output/footballCoverage.svg +++ b/test/output/footballCoverage.svg @@ -1,4 +1,4 @@ - + 0% diff --git a/test/output/fruitSales.svg b/test/output/fruitSales.svg index ec479fc369..48ca9c79e7 100644 --- a/test/output/fruitSales.svg +++ b/test/output/fruitSales.svg @@ -1,4 +1,4 @@ - + bananas diff --git a/test/output/fruitSalesDate.svg b/test/output/fruitSalesDate.svg index 6fbe1d28fd..3b85e23fa2 100644 --- a/test/output/fruitSalesDate.svg +++ b/test/output/fruitSalesDate.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/gistempAnomaly.svg b/test/output/gistempAnomaly.svg index 1ce83a6ae1..1d9dc9fd54 100644 --- a/test/output/gistempAnomaly.svg +++ b/test/output/gistempAnomaly.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/gistempAnomalyMoving.svg b/test/output/gistempAnomalyMoving.svg index e37aa50e36..9ee64fd805 100644 --- a/test/output/gistempAnomalyMoving.svg +++ b/test/output/gistempAnomalyMoving.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/gistempAnomalyTransform.svg b/test/output/gistempAnomalyTransform.svg index 640571bd4a..be850c64e0 100644 --- a/test/output/gistempAnomalyTransform.svg +++ b/test/output/gistempAnomalyTransform.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/googleTrendsRidgeline.svg b/test/output/googleTrendsRidgeline.svg index ee2a004d1c..e2c25f1899 100644 --- a/test/output/googleTrendsRidgeline.svg +++ b/test/output/googleTrendsRidgeline.svg @@ -1,4 +1,4 @@ - + Australian bushfires diff --git a/test/output/gridChoropleth.svg b/test/output/gridChoropleth.svg index 0ca0769967..d3809271c4 100644 --- a/test/output/gridChoropleth.svg +++ b/test/output/gridChoropleth.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/hadcrutWarmingStripes.svg b/test/output/hadcrutWarmingStripes.svg index 110bb56a3d..ee988b479d 100644 --- a/test/output/hadcrutWarmingStripes.svg +++ b/test/output/hadcrutWarmingStripes.svg @@ -1,4 +1,4 @@ - + 1860 diff --git a/test/output/highCardinalityOrdinal.svg b/test/output/highCardinalityOrdinal.svg index e186f4c46c..8cebdb0168 100644 --- a/test/output/highCardinalityOrdinal.svg +++ b/test/output/highCardinalityOrdinal.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/identityScale.svg b/test/output/identityScale.svg index 475b06d6fe..1891c465ab 100644 --- a/test/output/identityScale.svg +++ b/test/output/identityScale.svg @@ -1,4 +1,4 @@ - + 350 diff --git a/test/output/industryUnemployment.svg b/test/output/industryUnemployment.svg index 5305274f1d..14d0623e5a 100644 --- a/test/output/industryUnemployment.svg +++ b/test/output/industryUnemployment.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/industryUnemploymentShare.svg b/test/output/industryUnemploymentShare.svg index 36c8143875..81b045c00b 100644 --- a/test/output/industryUnemploymentShare.svg +++ b/test/output/industryUnemploymentShare.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/industryUnemploymentStream.svg b/test/output/industryUnemploymentStream.svg index f2728a748c..855a780500 100644 --- a/test/output/industryUnemploymentStream.svg +++ b/test/output/industryUnemploymentStream.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/learningPoverty.svg b/test/output/learningPoverty.svg index c723a03fb0..a922e09523 100644 --- a/test/output/learningPoverty.svg +++ b/test/output/learningPoverty.svg @@ -1,4 +1,4 @@ - + Niger diff --git a/test/output/letterFrequencyBar.svg b/test/output/letterFrequencyBar.svg index 8a5f6f0df7..2c4e43bd83 100644 --- a/test/output/letterFrequencyBar.svg +++ b/test/output/letterFrequencyBar.svg @@ -1,4 +1,4 @@ - + Z diff --git a/test/output/letterFrequencyCloud.svg b/test/output/letterFrequencyCloud.svg index c91e69a627..3eddf3d0ff 100644 --- a/test/output/letterFrequencyCloud.svg +++ b/test/output/letterFrequencyCloud.svg @@ -1,3 +1,3 @@ - + ETAOINSHRDLCUMWFGYPBVKJXQZ \ No newline at end of file diff --git a/test/output/letterFrequencyColumn.svg b/test/output/letterFrequencyColumn.svg index e83fc2086b..fc0786ca23 100644 --- a/test/output/letterFrequencyColumn.svg +++ b/test/output/letterFrequencyColumn.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/letterFrequencyDot.svg b/test/output/letterFrequencyDot.svg index 5ce4d5e41b..f6a746b2d0 100644 --- a/test/output/letterFrequencyDot.svg +++ b/test/output/letterFrequencyDot.svg @@ -1,4 +1,4 @@ - + A diff --git a/test/output/letterFrequencyLollipop.svg b/test/output/letterFrequencyLollipop.svg index 68797494c6..79f9a6aef8 100644 --- a/test/output/letterFrequencyLollipop.svg +++ b/test/output/letterFrequencyLollipop.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/logDegenerate.svg b/test/output/logDegenerate.svg index eb34b1bd52..e5096fee8f 100644 --- a/test/output/logDegenerate.svg +++ b/test/output/logDegenerate.svg @@ -1,4 +1,4 @@ - + 100m diff --git a/test/output/metroInequality.svg b/test/output/metroInequality.svg index 415acca054..eb92f3d6f7 100644 --- a/test/output/metroInequality.svg +++ b/test/output/metroInequality.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/metroInequalityChange.svg b/test/output/metroInequalityChange.svg index e1e1d87c2f..e3defb339e 100644 --- a/test/output/metroInequalityChange.svg +++ b/test/output/metroInequalityChange.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/metroUnemployment.svg b/test/output/metroUnemployment.svg index 6110dbd094..9477e325e1 100644 --- a/test/output/metroUnemployment.svg +++ b/test/output/metroUnemployment.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/metroUnemploymentHighlight.svg b/test/output/metroUnemploymentHighlight.svg index d83ffb6fe1..30266d4301 100644 --- a/test/output/metroUnemploymentHighlight.svg +++ b/test/output/metroUnemploymentHighlight.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/metroUnemploymentIndex.svg b/test/output/metroUnemploymentIndex.svg index cd5e4f61f7..b8898c5821 100644 --- a/test/output/metroUnemploymentIndex.svg +++ b/test/output/metroUnemploymentIndex.svg @@ -1,4 +1,4 @@ - + 4 diff --git a/test/output/metroUnemploymentMoving.svg b/test/output/metroUnemploymentMoving.svg index ba6522aff2..b622437474 100644 --- a/test/output/metroUnemploymentMoving.svg +++ b/test/output/metroUnemploymentMoving.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/metroUnemploymentNormalize.svg b/test/output/metroUnemploymentNormalize.svg index ff133dff5d..6a1ed6773c 100644 --- a/test/output/metroUnemploymentNormalize.svg +++ b/test/output/metroUnemploymentNormalize.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/metroUnemploymentRidgeline.svg b/test/output/metroUnemploymentRidgeline.svg index edb2fd1606..2d938f51ca 100644 --- a/test/output/metroUnemploymentRidgeline.svg +++ b/test/output/metroUnemploymentRidgeline.svg @@ -1,4 +1,4 @@ - + Detroit-Livonia-Dearborn, MI Met Div diff --git a/test/output/mobyDickFaceted.svg b/test/output/mobyDickFaceted.svg index 9f3333e0dd..1e19fd21e5 100644 --- a/test/output/mobyDickFaceted.svg +++ b/test/output/mobyDickFaceted.svg @@ -1,4 +1,4 @@ - + lower diff --git a/test/output/mobyDickLetterFrequency.svg b/test/output/mobyDickLetterFrequency.svg index 02768f8e4c..4fce8141b1 100644 --- a/test/output/mobyDickLetterFrequency.svg +++ b/test/output/mobyDickLetterFrequency.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/mobyDickLetterPairs.svg b/test/output/mobyDickLetterPairs.svg index 42fc6417fb..e3deba5338 100644 --- a/test/output/mobyDickLetterPairs.svg +++ b/test/output/mobyDickLetterPairs.svg @@ -1,4 +1,4 @@ - + * diff --git a/test/output/mobyDickLetterPosition.svg b/test/output/mobyDickLetterPosition.svg index 2b11905f22..9d04beba07 100644 --- a/test/output/mobyDickLetterPosition.svg +++ b/test/output/mobyDickLetterPosition.svg @@ -1,4 +1,4 @@ - + A diff --git a/test/output/mobyDickLetterRelativeFrequency.svg b/test/output/mobyDickLetterRelativeFrequency.svg index 68c74144b0..a8cb7c7f0d 100644 --- a/test/output/mobyDickLetterRelativeFrequency.svg +++ b/test/output/mobyDickLetterRelativeFrequency.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/morleyBoxplot.svg b/test/output/morleyBoxplot.svg index d8c6f78e1f..7bec204fc3 100644 --- a/test/output/morleyBoxplot.svg +++ b/test/output/morleyBoxplot.svg @@ -1,4 +1,4 @@ - + 1 diff --git a/test/output/moviesProfitByGenre.svg b/test/output/moviesProfitByGenre.svg index a775086ac8..57d282e5f8 100644 --- a/test/output/moviesProfitByGenre.svg +++ b/test/output/moviesProfitByGenre.svg @@ -1,4 +1,4 @@ - + Adventure diff --git a/test/output/musicRevenue.svg b/test/output/musicRevenue.svg index 902b871a89..f2fb10b350 100644 --- a/test/output/musicRevenue.svg +++ b/test/output/musicRevenue.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/ordinalBar.svg b/test/output/ordinalBar.svg index c0d73223ce..3644911c5c 100644 --- a/test/output/ordinalBar.svg +++ b/test/output/ordinalBar.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/penguinCulmen.svg b/test/output/penguinCulmen.svg index b579f95286..0ac4dec47c 100644 --- a/test/output/penguinCulmen.svg +++ b/test/output/penguinCulmen.svg @@ -1,4 +1,4 @@ - + Adelie diff --git a/test/output/penguinCulmenArray.svg b/test/output/penguinCulmenArray.svg index 4519fca6ce..b2a8019438 100644 --- a/test/output/penguinCulmenArray.svg +++ b/test/output/penguinCulmenArray.svg @@ -1,4 +1,4 @@ - + Adelie diff --git a/test/output/penguinIslandUnknown.svg b/test/output/penguinIslandUnknown.svg index 42723593b9..2e8e9d7139 100644 --- a/test/output/penguinIslandUnknown.svg +++ b/test/output/penguinIslandUnknown.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/penguinMass.svg b/test/output/penguinMass.svg index 857ae07ced..301bdeddc7 100644 --- a/test/output/penguinMass.svg +++ b/test/output/penguinMass.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/penguinMassSex.svg b/test/output/penguinMassSex.svg index 3eb5a26ba5..4287f16ce3 100644 --- a/test/output/penguinMassSex.svg +++ b/test/output/penguinMassSex.svg @@ -1,4 +1,4 @@ - + FEMALE diff --git a/test/output/penguinMassSexSpecies.svg b/test/output/penguinMassSexSpecies.svg index 984e5f4ab2..f6b030345a 100644 --- a/test/output/penguinMassSexSpecies.svg +++ b/test/output/penguinMassSexSpecies.svg @@ -1,4 +1,4 @@ - + Adelie diff --git a/test/output/penguinMassSpecies.svg b/test/output/penguinMassSpecies.svg index af05220a79..2cce7451c4 100644 --- a/test/output/penguinMassSpecies.svg +++ b/test/output/penguinMassSpecies.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/penguinSex.svg b/test/output/penguinSex.svg index ed12b8cbf3..09bf5bba8f 100644 --- a/test/output/penguinSex.svg +++ b/test/output/penguinSex.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/penguinSexMassCulmenSpecies.svg b/test/output/penguinSexMassCulmenSpecies.svg index 6775ee14c6..c6da8b9d32 100644 --- a/test/output/penguinSexMassCulmenSpecies.svg +++ b/test/output/penguinSexMassCulmenSpecies.svg @@ -1,4 +1,4 @@ - + 34 diff --git a/test/output/penguinSpeciesGroup.svg b/test/output/penguinSpeciesGroup.svg index 304c1ad761..7392e8a0b1 100644 --- a/test/output/penguinSpeciesGroup.svg +++ b/test/output/penguinSpeciesGroup.svg @@ -1,4 +1,4 @@ - + 0.0 diff --git a/test/output/penguinSpeciesIsland.svg b/test/output/penguinSpeciesIsland.svg index cc449d8f7d..af2dc227cc 100644 --- a/test/output/penguinSpeciesIsland.svg +++ b/test/output/penguinSpeciesIsland.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/penguinSpeciesIslandRelative.svg b/test/output/penguinSpeciesIslandRelative.svg index f301bede58..36c24fc053 100644 --- a/test/output/penguinSpeciesIslandRelative.svg +++ b/test/output/penguinSpeciesIslandRelative.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/penguinSpeciesIslandSex.svg b/test/output/penguinSpeciesIslandSex.svg index ef4b9b08e6..dad9acedd4 100644 --- a/test/output/penguinSpeciesIslandSex.svg +++ b/test/output/penguinSpeciesIslandSex.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/policeDeaths.svg b/test/output/policeDeaths.svg index 6775153c7d..74a177662b 100644 --- a/test/output/policeDeaths.svg +++ b/test/output/policeDeaths.svg @@ -1,4 +1,4 @@ - + Share of deaths by police diff --git a/test/output/policeDeathsBar.svg b/test/output/policeDeathsBar.svg index 0b6da31cca..f35b68baf7 100644 --- a/test/output/policeDeathsBar.svg +++ b/test/output/policeDeathsBar.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/polylinear.svg b/test/output/polylinear.svg index c4d7d89901..41057b6aaa 100644 --- a/test/output/polylinear.svg +++ b/test/output/polylinear.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/randomBins.svg b/test/output/randomBins.svg index b8498e47e6..f936b3c0a0 100644 --- a/test/output/randomBins.svg +++ b/test/output/randomBins.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/randomBinsXY.svg b/test/output/randomBinsXY.svg index b499a9bcbb..9b55445c0d 100644 --- a/test/output/randomBinsXY.svg +++ b/test/output/randomBinsXY.svg @@ -1,4 +1,4 @@ - + 2 diff --git a/test/output/randomQuantile.svg b/test/output/randomQuantile.svg index 756fcb07a7..abfcadd360 100644 --- a/test/output/randomQuantile.svg +++ b/test/output/randomQuantile.svg @@ -1,4 +1,4 @@ - + 0.0 diff --git a/test/output/randomWalk.svg b/test/output/randomWalk.svg index 28ee3886d3..6525004a27 100644 --- a/test/output/randomWalk.svg +++ b/test/output/randomWalk.svg @@ -1,4 +1,4 @@ - + −35 diff --git a/test/output/seattlePrecipitationRule.svg b/test/output/seattlePrecipitationRule.svg index f4202224c0..cde4b11a5a 100644 --- a/test/output/seattlePrecipitationRule.svg +++ b/test/output/seattlePrecipitationRule.svg @@ -1,4 +1,4 @@ - + 2012 diff --git a/test/output/seattleTemperatureBand.svg b/test/output/seattleTemperatureBand.svg index 9e34846766..7a1ccd473e 100644 --- a/test/output/seattleTemperatureBand.svg +++ b/test/output/seattleTemperatureBand.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/seattleTemperatureCell.svg b/test/output/seattleTemperatureCell.svg index d15413161b..5dc9c5ca49 100644 --- a/test/output/seattleTemperatureCell.svg +++ b/test/output/seattleTemperatureCell.svg @@ -1,4 +1,4 @@ - + J diff --git a/test/output/sfCovidDeaths.svg b/test/output/sfCovidDeaths.svg index 8bf5acf060..6c5859662a 100644 --- a/test/output/sfCovidDeaths.svg +++ b/test/output/sfCovidDeaths.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/sfTemperatureBand.svg b/test/output/sfTemperatureBand.svg index 9f929e28d3..062a68190d 100644 --- a/test/output/sfTemperatureBand.svg +++ b/test/output/sfTemperatureBand.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/sfTemperatureBandArea.svg b/test/output/sfTemperatureBandArea.svg index 50432b9415..60629665ea 100644 --- a/test/output/sfTemperatureBandArea.svg +++ b/test/output/sfTemperatureBandArea.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/simpsonsRatings.svg b/test/output/simpsonsRatings.svg index 316e0292e1..ff8da80318 100644 --- a/test/output/simpsonsRatings.svg +++ b/test/output/simpsonsRatings.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/simpsonsRatingsDots.svg b/test/output/simpsonsRatingsDots.svg index 251950a6b2..5119405eae 100644 --- a/test/output/simpsonsRatingsDots.svg +++ b/test/output/simpsonsRatingsDots.svg @@ -1,4 +1,4 @@ - + 4.5 diff --git a/test/output/simpsonsViews.svg b/test/output/simpsonsViews.svg index 32c304df8c..8299d765b2 100644 --- a/test/output/simpsonsViews.svg +++ b/test/output/simpsonsViews.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/singleValueBar.svg b/test/output/singleValueBar.svg index 4a1863e37e..8c5904f59d 100644 --- a/test/output/singleValueBar.svg +++ b/test/output/singleValueBar.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/singleValueBin.svg b/test/output/singleValueBin.svg index 6d6c5208aa..c28ffd4936 100644 --- a/test/output/singleValueBin.svg +++ b/test/output/singleValueBin.svg @@ -1,4 +1,4 @@ - + 0.0 diff --git a/test/output/softwareVersions.svg b/test/output/softwareVersions.svg index ef91ed9fde..d96ba58be4 100644 --- a/test/output/softwareVersions.svg +++ b/test/output/softwareVersions.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/stackedBar.svg b/test/output/stackedBar.svg index dbcaf58330..dcbb87ffd6 100644 --- a/test/output/stackedBar.svg +++ b/test/output/stackedBar.svg @@ -1,4 +1,4 @@ - + 0% diff --git a/test/output/stackedRect.svg b/test/output/stackedRect.svg index 5fb425ce2b..cd04d62062 100644 --- a/test/output/stackedRect.svg +++ b/test/output/stackedRect.svg @@ -1,4 +1,4 @@ - + 0% diff --git a/test/output/stargazers.svg b/test/output/stargazers.svg index 84011d986a..259d320e8e 100644 --- a/test/output/stargazers.svg +++ b/test/output/stargazers.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/stargazersBinned.svg b/test/output/stargazersBinned.svg index 248a440934..ebef0dfd2e 100644 --- a/test/output/stargazersBinned.svg +++ b/test/output/stargazersBinned.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/stargazersHourly.svg b/test/output/stargazersHourly.svg index 12fd6b336d..60f8205728 100644 --- a/test/output/stargazersHourly.svg +++ b/test/output/stargazersHourly.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/stargazersHourlyGroup.svg b/test/output/stargazersHourlyGroup.svg index a64721a05e..0b8f4d2e83 100644 --- a/test/output/stargazersHourlyGroup.svg +++ b/test/output/stargazersHourlyGroup.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/stocksIndex.svg b/test/output/stocksIndex.svg index dae4d5cd21..651567bc42 100644 --- a/test/output/stocksIndex.svg +++ b/test/output/stocksIndex.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/travelersYearOverYear.svg b/test/output/travelersYearOverYear.svg index 574981b8a1..2d9a6eea47 100644 --- a/test/output/travelersYearOverYear.svg +++ b/test/output/travelersYearOverYear.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/uniformRandomDifference.svg b/test/output/uniformRandomDifference.svg index 81ac7b608c..e83971ba90 100644 --- a/test/output/uniformRandomDifference.svg +++ b/test/output/uniformRandomDifference.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/untypedDateBin.svg b/test/output/untypedDateBin.svg index 3f6792ca0c..8f98687f2f 100644 --- a/test/output/untypedDateBin.svg +++ b/test/output/untypedDateBin.svg @@ -1,4 +1,4 @@ - + 0 diff --git a/test/output/usCongressAge.svg b/test/output/usCongressAge.svg index 55037b893c..9a7f5fbc6c 100644 --- a/test/output/usCongressAge.svg +++ b/test/output/usCongressAge.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/usCongressAgeGender.svg b/test/output/usCongressAgeGender.svg index fc27227590..2292f46852 100644 --- a/test/output/usCongressAgeGender.svg +++ b/test/output/usCongressAgeGender.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/usPopulationStateAge.svg b/test/output/usPopulationStateAge.svg index 8c66e2c4b4..5a76c5dd1e 100644 --- a/test/output/usPopulationStateAge.svg +++ b/test/output/usPopulationStateAge.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/usPopulationStateAgeDots.svg b/test/output/usPopulationStateAgeDots.svg index 0ee416f622..eb9aa4dae1 100644 --- a/test/output/usPopulationStateAgeDots.svg +++ b/test/output/usPopulationStateAgeDots.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/usPresidentialElection2020.svg b/test/output/usPresidentialElection2020.svg index ee3767cc13..185a1e9481 100644 --- a/test/output/usPresidentialElection2020.svg +++ b/test/output/usPresidentialElection2020.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/usPresidentialForecast2016.svg b/test/output/usPresidentialForecast2016.svg index e0ebf273a3..c9110163fa 100644 --- a/test/output/usPresidentialForecast2016.svg +++ b/test/output/usPresidentialForecast2016.svg @@ -1,4 +1,4 @@ - + 0.0 diff --git a/test/output/usRetailSales.svg b/test/output/usRetailSales.svg index c4139ce2dc..611b71bb38 100644 --- a/test/output/usRetailSales.svg +++ b/test/output/usRetailSales.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/usStatePopulationChange.svg b/test/output/usStatePopulationChange.svg index 732efce070..e797cec942 100644 --- a/test/output/usStatePopulationChange.svg +++ b/test/output/usStatePopulationChange.svg @@ -1,4 +1,4 @@ - + diff --git a/test/output/wordCloud.svg b/test/output/wordCloud.svg index 06894624eb..f289e446b4 100644 --- a/test/output/wordCloud.svg +++ b/test/output/wordCloud.svg @@ -1,3 +1,3 @@ - + 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 5b9cff28d1..03d851c34a 100644 --- a/test/output/wordLengthMobyDick.svg +++ b/test/output/wordLengthMobyDick.svg @@ -1,4 +1,4 @@ - + diff --git a/test/plot.js b/test/plot.js index 18e62e8620..9a5dc33b82 100644 --- a/test/plot.js +++ b/test/plot.js @@ -9,6 +9,8 @@ for (const [name, plot] of Object.entries(plots)) { it(`plot ${name}`, async () => { const root = await plot(); const [ext, svg] = root.tagName === "svg" ? ["svg", root] : ["html", root.querySelector("svg")]; + svg.setAttribute("class", "plot"); // strip uid + svg.querySelector("style").remove(); // strip stylesheet (contains uid) svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "http://www.w3.org/2000/svg"); svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"); const actual = beautify.html(root.outerHTML, {indent_size: 2}); diff --git a/test/plots/index.html b/test/plots/index.html index 64297f265e..ce9ec63869 100644 --- a/test/plots/index.html +++ b/test/plots/index.html @@ -22,7 +22,6 @@