Skip to content

Commit 15e7b81

Browse files
committed
Update README
1 parent d1dcb6e commit 15e7b81

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,13 +489,11 @@ When the *include* or *exclude* facet mode is chosen, the mark data must be para
489489

490490
## Legends
491491

492-
Given a scale definition, Plot can generate a legend.
493-
494-
For an inline legend, use the *scale*.**legend** option:
492+
Plot can generate legends for *color* and *opacity* [scales](#scale-options). For an inline legend, use the *scale*.**legend** option:
495493

496494
* *scale*.**legend** - if truthy, generate a legend for the specified scale
497495

498-
Currently only *color* and *opacity* scales are supported. If the *scale*.**legend** option is true, the default legend will be produced for the scale; otherwise, the meaning of the *legend* option depends on the scale type. For quantitative color scales, it defaults to *ramp* but may be set to *swatches* for a discrete scale (most commonly for *threshold* color scales); for ordinal color scales, only the *swatches* value is supported.
496+
If the *scale*.**legend** option is true, the default legend will be produced for the scale; otherwise, the meaning of the *legend* option depends on the scale type. For quantitative color scales, it defaults to *ramp* but may be set to *swatches* for a discrete scale (most commonly for *threshold* color scales); for ordinal color scales, only the *swatches* value is supported.
499497

500498
### *plot*.legend(*name*, *options*)
501499

0 commit comments

Comments
 (0)