-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Want to pass list to Bar chart values
#2913
Comments
@fpliger, I think this would be a good example of simplifying the use of the blend operation. The current example stacked_bar.py produces this, but with more work. I think it makes sense to accept multiple values columns, in the same way that line, timeseries, area accept series input and understand that internally the data blend would occur. The challenge here is what do you call the label associated with ['bronze', 'silver', 'gold']? You'd want something like "medals" set as an optional input option, but for it to also work without specifying. I think right now the blend uses a default value, since it is utilizing pandas.melt, but with this case we'd also want to support a kwarg to set the label as well. I think it would also provide an alternative for supporting the simple data types. |
Agreed... it's not that hard to make it work when you have lists as input type for values. We could stick with melt default (IIRC it's I think we could include this into
this use case requires more work though as you'd need a way to convert to |
Yeah, I quickly added that locally, but we need to decide what input like that means. So, if we receive only scalars as the values, do we want the keys to be the columns or the index? Result could be: orient='columns'
or orient='index'
|
moved to bkcharts repo |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I was hoping to do what is shown here:
to get a bar chart like:
The text was updated successfully, but these errors were encountered: