Skip to content

Grouped Stacked Chart: Add group legend labels #3907

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

Closed
kevin-moser opened this issue Jun 27, 2023 · 8 comments
Closed

Grouped Stacked Chart: Add group legend labels #3907

kevin-moser opened this issue Jun 27, 2023 · 8 comments
Labels
feature-request New feature or request

Comments

@kevin-moser
Copy link

Summary

The newly added chart type for bar charts (grouped & stacked) has separated legend labels for each series, which get pretty long when having multiple series in a single chart. The ability to group legend labels by series with same names (?) would be nice.

Intended Use Case

Better UI for legend labels for grouped & stacked bar charts with same functionality of hiding the separate series.
Example of a UI mockup attached below:

Current legend layout:
current

Proposed grouped layout:
grouped

@kevin-moser kevin-moser added the feature-request New feature or request label Jun 27, 2023
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@mpkhr
Copy link

mpkhr commented Jan 19, 2024

+1

@kevin-moser did you find a way to solve it?

@abalone49
Copy link

+1 Need that feature

@MaksSieve
Copy link

+1
any workarounds may be?

@junedchhipa
Copy link
Contributor

Added new config for this

options = {
  legend: {
    clusterGroupedSeries: true,
    clusterGroupedSeriesOrientation: "horizontal" // available options ["vertical", "horizontal"]
  }
}

which creates legend like below
Screenshot 2024-11-29 at 12 46 46 PM

The new options will be available in the next release v4.2.0

@MaksSieve
Copy link

@junedchhipa thx! but could you also make it for v3.x.x? it's not possible to use version more than 3 with old projects that use Node v16

@MaksSieve
Copy link

@junedchhipa also another but related question: is it possible to add labels for groups on X-axis?
smth like this:
image

@MaksSieve
Copy link

@junedchhipa any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants