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

Support for multi-dimensional array of plotData for CPTBarplot #396

Open
VikramParimi opened this issue Jan 17, 2019 · 2 comments
Open

Support for multi-dimensional array of plotData for CPTBarplot #396

VikramParimi opened this issue Jan 17, 2019 · 2 comments

Comments

@VikramParimi
Copy link

Why is that we need to create multiple instances of the CPTBarplot to have multiple bars at the same location?

It would be great to have support for the multidimensional array as a data source to the barPlot.

Along with this, there must be a provision to toggle between stacked and grouped flags to maintain the grouping of the bar plots and works as below:

stacked: plots will be stacked upon each other at each bar location
grouped: plots will be rendered adjacent to each other center aligned to the bar location.

@eskroch
Copy link
Member

eskroch commented Jan 18, 2019

This would require a major architectural change to the way plots work. Stacked plots have been on the todo list for a long time (see issue #11). I'm open to ideas on how to implement this kind of change without breaking a lot of legacy code.

@VikramParimi
Copy link
Author

VikramParimi commented Jul 25, 2019

We can add a new plot like CPTMultiBarPLot which internally creates CPTBarPLot instances based on the count and they can be aligned as grouped or stacked(based on the developer requirements). This helps in keeping the legacy code intact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants