Skip to content

Commit 5638a17

Browse files
committed
remove default white background
1 parent 7098bf3 commit 5638a17

File tree

644 files changed

+4
-782
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

644 files changed

+4
-782
lines changed

docs/.vitepress/theme/custom.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
.vp-doc .plot,
4242
.vp-doc .plot-ramp {
43-
background: none;
4443
overflow: visible;
4544
position: relative;
4645
z-index: 1;

docs/features/plots.md

Lines changed: 1 addition & 1 deletion

src/legends/ramp.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ export function legendRamp(color, options) {
4040
svg.append("style").text(
4141
`.${className}-ramp {
4242
display: block;
43-
background: white;
4443
height: auto;
4544
height: intrinsic;
4645
max-width: 100%;

src/plot.d.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,9 @@ export interface PlotOptions extends ScaleDefaults {
8282
* properties][2]). Note that unitless numbers ([quirky lengths][3]) such as
8383
* `{padding: 20}` may not supported by some browsers; you should instead
8484
* specify a string with units such as `{padding: "20px"}`. By default, the
85-
* returned plot has a white background, a max-width of 100%, and the
86-
* system-ui font. Plot’s marks and axes default to [currentColor][4], meaning
87-
* that they will inherit the surrounding content’s color. For example, a dark
88-
* theme:
89-
*
90-
* ```js
91-
* Plot.plot({
92-
* style: "background: black; color: white;",
93-
* marks: …
94-
* })
95-
* ```
85+
* returned plot has a max-width of 100%, and the system-ui font. Plot’s marks
86+
* and axes default to [currentColor][4], meaning that they will inherit the
87+
* surrounding content’s color.
9688
*
9789
* [1]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style
9890
* [2]: https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration

src/plot.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ export function plot(options = {}) {
259259
svg.append("style").text(
260260
`.${className} {
261261
display: block;
262-
background: white;
263262
height: auto;
264263
height: intrinsic;
265264
max-width: 100%;

test/output/aaplBollinger.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplBollingerCandlestick.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplBollingerGridInterval.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplBollingerGridSpacing.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCandlestick.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplChangeVolume.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplClose.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseClip.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseDataTicks.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseGridColor.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseGridInterval.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseGridIntervalName.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseGridIterable.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseImplicitGrid.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseNormalize.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplCloseUntyped.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplFancyAxis.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplInterval.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplMonthly.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplVolume.svg

Lines changed: 0 additions & 1 deletion

test/output/aaplVolumeRect.svg

Lines changed: 0 additions & 1 deletion

test/output/anscombeQuartet.svg

Lines changed: 0 additions & 1 deletion

test/output/arcCollatz.svg

Lines changed: 0 additions & 1 deletion

test/output/arcCollatzUp.svg

Lines changed: 0 additions & 1 deletion

test/output/arcMiserables.svg

Lines changed: 0 additions & 1 deletion

test/output/armadillo.svg

Lines changed: 0 additions & 1 deletion

test/output/aspectRatioBand.svg

Lines changed: 0 additions & 1 deletion

test/output/aspectRatioLinear.svg

Lines changed: 0 additions & 1 deletion

test/output/aspectRatioLog.svg

Lines changed: 0 additions & 1 deletion

test/output/aspectRatioPoint.svg

Lines changed: 0 additions & 1 deletion

test/output/aspectRatioSqrt.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesBinsColors.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesBirthdays.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesBoxingHeight.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesHeightWeight.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesHeightWeightBin.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesHeightWeightBinStroke.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesHeightWeightSex.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesHeightWeightSport.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesSample.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesSampleFacet.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesSexWeight.svg

Lines changed: 0 additions & 1 deletion

test/output/athletesSortFacet.svg

Lines changed: 0 additions & 1 deletion

0 commit comments

Comments
 (0)