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

Label strategies

Open yianni-ververis opened this issue 6 years ago • 2 comments

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

  1. Add Labels component into a pie component
  2. 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 avatar Mar 13 '18 16:03 yianni-ververis

It needs one for circle too, for scatter plots etc

yianni-ververis avatar Mar 13 '18 16:03 yianni-ververis

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.

cbt1 avatar Mar 15 '18 08:03 cbt1