You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support for fillOpacity in swatch and ramp color legends (#1407)
* support for fillOpacity in swatch and ramp color legends
closes#1356
* opacity
* fill opacity it is
* use fill-opacity
* minimize diff
* minimize diff; add default
* regenerate test snapshots
---------
Co-authored-by: Mike Bostock <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -653,6 +653,7 @@ Categorical and ordinal color legends are rendered as swatches, unless *options*
653
653
**options*.**columns** - the number of swatches per row
654
654
**options*.**marginLeft** - the legend’s left margin
655
655
**options*.**className** - a class name, that defaults to a randomly generated string scoping the styles
656
+
**options*.**opacity** - the swatch fill opacity
656
657
**options*.**width** - the legend’s width (in pixels)
657
658
658
659
Symbol legends are rendered as swatches and support the options above in addition to the following options:
@@ -679,6 +680,7 @@ Continuous color legends are rendered as a ramp, and can be configured with the
679
680
**options*.**marginRight** - the legend’s right margin
680
681
**options*.**marginBottom** - the legend’s bottom margin
681
682
**options*.**marginLeft** - the legend’s left margin
683
+
**options*.**opacity** - the ramp’s fill opacity
682
684
683
685
The **style** legend option allows custom styles to override Plot’s defaults; it has the same behavior as in Plot’s top-level [layout options](#layout-options).
0 commit comments