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

Stack area and bar series independently of each other #1631

Closed
3 tasks done
flash1293 opened this issue Mar 23, 2022 · 1 comment
Closed
3 tasks done

Stack area and bar series independently of each other #1631

flash1293 opened this issue Mar 23, 2022 · 1 comment
Labels
enhancement New feature or request kibana cross issue Has a Kibana issue counterpart :xy Bar/Line/Area chart related

Comments

@flash1293
Copy link

Is your feature request related to a problem? Please describe.
Right now it's possible to end up with area and bar series which are stacked on top of each other.

Describe the solution you'd like
elastic-charts should handle this case by stacking the area and bar series independently of each other

Describe alternatives you've considered
This can be handled as part of the spec as well, but as this configuration is considered bad practice, it shouldn't be possible to configure it in the first place.

Additional context
Screenshot 2022-03-01 at 14 23 18

Kibana Cross Issues
elastic/kibana#126586

Checklist

Delete any items that are not applicable to this feature request.

  • this request is checked against already exist requests
  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present
@flash1293 flash1293 added enhancement New feature or request kibana cross issue Has a Kibana issue counterpart :xy Bar/Line/Area chart related labels Mar 23, 2022
@nickofthyme
Copy link
Collaborator

I don't think this is something that should be fixed on the elastic charts side.

The solution here would be to group all the bars/areas and split them into their own group using groupId to define separate Axis specs. Doing this in elastic charts would require us to assume the preference of the user if they want multiple axes or to ignore the defined stackAccessor, either is a bold assumption.

The task of splitting the specs to separate axes can be difficult if you want the separated axes to share the same domain extents. I opened #2519 to track this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kibana cross issue Has a Kibana issue counterpart :xy Bar/Line/Area chart related
Projects
None yet
Development

No branches or pull requests

2 participants