Explorar el Código

Changed legendDot signature, label truncated when required.

tags/1.3.0
rafael hace 5 años
padre
commit
c6e46886f3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/js/utils/draw.js

+ 3
- 1
src/js/utils/draw.js Ver fichero

@@ -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,


Cargando…
Cancelar
Guardar