Skip to content

Commit 44fe4ac

Browse files
domoritzaitongl
andauthored
fix: remove extra backtick in LegendConfig.labelOverlap documentation (#9560)
Replaces #9558 Fixes #9524 --------- Co-authored-by: Ivy Li <[email protected]>
1 parent a256711 commit 44fe4ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: build/vega-lite-schema.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14094,7 +14094,7 @@
1409414094
"$ref": "#/definitions/ExprRef"
1409514095
}
1409614096
],
14097-
"description": "The strategy to use for resolving overlap of labels in gradient legends. If `false`, no overlap reduction is attempted. If set to `true` or `\"parity\"`, a strategy of removing every other label is used. If set to `\"greedy\"`, a linear scan of the labels is performed, removing any label that overlaps with the last visible label (this often works better for log-scaled axes).\n\n__Default value:__ `\"greedy\"` for `log scales otherwise `true`."
14097+
"description": "The strategy to use for resolving overlap of labels in gradient legends. If `false`, no overlap reduction is attempted. If set to `true` or `\"parity\"`, a strategy of removing every other label is used. If set to `\"greedy\"`, a linear scan of the labels is performed, removing any label that overlaps with the last visible label (this often works better for log-scaled axes).\n\n__Default value:__ `\"greedy\"` for log scales otherwise `true`."
1409814098
},
1409914099
"labelPadding": {
1410014100
"anyOf": [

Diff for: src/legend.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ interface LegendMixins<ES extends ExprRef | SignalRef> {
138138
/**
139139
* The strategy to use for resolving overlap of labels in gradient legends. If `false`, no overlap reduction is attempted. If set to `true` or `"parity"`, a strategy of removing every other label is used. If set to `"greedy"`, a linear scan of the labels is performed, removing any label that overlaps with the last visible label (this often works better for log-scaled axes).
140140
*
141-
* __Default value:__ `"greedy"` for `log scales otherwise `true`.
141+
* __Default value:__ `"greedy"` for log scales otherwise `true`.
142142
*/
143143
labelOverlap?: LabelOverlap | ES; // override comment since our default differs from Vega
144144

0 commit comments

Comments
 (0)