Label strategies
yianni-ververis opened this issue · 2 comments
yianni-ververis commented
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]
yianni-ververis commented
It needs one for circle too, for scatter plots etc
cbt1 commented
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.