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

Lis histogram element #386

Closed
wants to merge 36 commits into from
Closed

Lis histogram element #386

wants to merge 36 commits into from

Conversation

ctcncgr
Copy link
Member

@ctcncgr ctcncgr commented May 1, 2024

@ctcncgr ctcncgr added the enhancement New feature or request label May 1, 2024
@ctcncgr
Copy link
Member Author

ctcncgr commented May 1, 2024

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...

Copy link
Contributor

@alancleary alancleary left a 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:

  1. 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.
  2. I think having xlabel and ylabel 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 and countLabel.

package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
dev/core/lis-histogram-element.html Outdated Show resolved Hide resolved
dev/core/lis-histogram-element.html Outdated Show resolved Hide resolved
src/core/lis-histogram-element.ts Outdated Show resolved Hide resolved
src/core/lis-histogram-element.ts Outdated Show resolved Hide resolved
src/core/lis-histogram-element.ts Outdated Show resolved Hide resolved
src/core/lis-histogram-element.ts Outdated Show resolved Hide resolved
src/core/lis-histogram-element.ts Outdated Show resolved Hide resolved
dev/core/lis-histogram-element.html Outdated Show resolved Hide resolved
@ctcncgr
Copy link
Member Author

ctcncgr commented Jun 19, 2024

Closing this. Will resubmit with changes so its easier to track.

@ctcncgr ctcncgr closed this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants