picasso.js icon indicating copy to clipboard operation
picasso.js copied to clipboard

Labels placements property as a function for the Bars strategy

Open alner opened this issue 6 years ago • 0 comments

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:

alner avatar Jul 03 '18 10:07 alner