-
Notifications
You must be signed in to change notification settings - Fork 3
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
Lis histogram element #386
Conversation
… stacked data model will also live here.
No rush @adf-ncgr and @alancleary as you guys have time to review this. I'm going to move on to other views in the meantime. DSCensor replace inc... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall I think this is a solid start. There's a handful of minor changes that need to be made; see my code comments for details.
Two things I want to discuss here are:
- The size of the component is completely independent of the component's container so I don't see the need for the ResizeObserver. I think it would be cool if the width/height of the histogram were drawn to be the width/height of the container if a width/weight isn't explicitly specified. For example, you would give an explicit width but leave the height empty so the height would be the size of the container. Alternatively, it might make sense to let the "name" axis to be as large as it needs to be to fit the given data.
- I think having
xlabel
andylabel
properties is confusing because the orientation switches what axis the labels are in. Would it make sense instead to name the label by the data on their axis? For example,nameLabel
andcountLabel
.
…ed axis labels to nameLabel and countLabel. #386
Closing this. Will resubmit with changes so its easier to track. |
Adds a component to use for histograms.
See:
http://dev.lis.ncgr.org:50050/dev/core/lis-histogram-element.html
Docs:
http://dev.lis.ncgr.org:50050/docs/classes/core_components.LisHistogramElement.html