picasso.js
picasso.js copied to clipboard
Labels placements property as a function for the Bars strategy
Labels placements property as a function for the Bars strategy
It will be nice to have ability to use a function for the placements property
e.g.:
labels: [{
label: ({ data }) => data.end.label,
placements: ({data}) => data.end.value < 0 ? [{ position: 'opposite'}] : [{position: outside}]
}]
- picasso.js: