Browse Source

Changed legendDot signature, label truncated when required.

tags/1.3.0
rafael 5 years ago
parent
commit
c6e46886f3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/js/utils/draw.js

+ 3
- 1
src/js/utils/draw.js View File

@@ -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…
Cancel
Save