Changed legendDot signature, label truncated when required.
This commit is contained in:
parent
3438fcdb05
commit
c6e46886f3
@ -238,7 +238,9 @@ export function legendBar(x, y, size, fill='none', label, truncate=false) {
|
||||
return group;
|
||||
}
|
||||
|
||||
export function legendDot(x, y, size, fill='none', label) {
|
||||
export function legendDot(x, y, size, fill='none', label, truncate=false) {
|
||||
label = truncate ? truncateString(label, LABEL_MAX_CHARS) : label;
|
||||
|
||||
let args = {
|
||||
className: 'legend-dot',
|
||||
cx: 0,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user