Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Labels placements property as a function for the Bars strategy #136

Open
alner opened this issue Jul 3, 2018 · 0 comments
Open

Labels placements property as a function for the Bars strategy #136

alner opened this issue Jul 3, 2018 · 0 comments
Labels
Type: Improvement Minor improvement of an existing feature

Comments

@alner
Copy link

alner commented Jul 3, 2018

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:
@miralemd miralemd added the Type: Improvement Minor improvement of an existing feature label Jul 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Minor improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants