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
bar chart API #596
Comments
Also worth noting - at the moment this x_accessor and y_accessor applies to bars that are oriented horizontally, not vertically, for the moment. |
I believe you will need an additional concept of "series", so you may one day put bar charts, line charts, ?and scatter plots?, all on the same area.
Your fruit example is interesting, I have not used bar charts in two categorical dimensions [
Using
I am not attached to the specific format or property names. My only objective is to convince you to use a |
I'm not against this idea, but my initial reaction would be a considerable addition of complexity and obfuscation that goes against what the library API is designed for. I'd be more interested in seeing the use cases for adding two plot types together, and provide options for those use-cases. My working theory is, for the vast majority of charts, something simple does the trick, with the simple, good-out-of-the-box approach being more of a focus than the customizability. At the very least we're finding that with lines and points. |
…w color_accessor works), and #602 (coloring , implementation of group_accessor, legend work)
(@klahnakoski I feel your comment should be made in a separate issue, not conflated with this one) |
Work towards the completion of #580. The API is a major component of this.
Here are some of the assumptions we can make for bar charts:
Regarding the data format, suppose we have
And we want to plot
field1
from these two objects, while labelling themfield2
.So the call to
MG.data_graphic
for a simple bar chart would look like:What about grouping the bars together, similar in style to ggplot's dodging, or stacking bars? Here, we'll make a more involved data set, involving fruits by type and size, roughly.
The core premise is that we want to dodge by class below, and stack by size.
The text was updated successfully, but these errors were encountered: