picasso.js
picasso.js copied to clipboard
Label strategies
Description
There is only one strategy for labels, "bar" and it only applies to bar charts. This means that any other chart, like a pie, you cannot have labels
Steps to Reproduce
- Add Labels component into a pie component
- Set strategy type "bar"
Expected behavior
See labels on "path" element
Actual behavior
If I have time, I will try and add it under src/core/chart-components/labels/strategies.js
Versions
- picasso.js:
- Browser:
- [Other relevant versions]
It needs one for circle too, for scatter plots etc
Agree, we need to add strategies for other types than "bars". An FYI though, the bar strategy should "work" with any shape as the position is based on the bounding rectangle of a shape.