Bar Graph Component #16
Labels
No Label
Bug
Component
Config
Good First Issue
Low-Priority
Page
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: www/cs-2022-class-profile#16
Loading…
Reference in New Issue
No description provided.
Delete Branch "a258wang-bar-graph"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds a
<BarGraphHorizontal />
component and a<BarGraphVertical />
component.Closes #1.
Possible changes for the future:
https://a258wang-bar-graph-csc-class-profile-staging-snedadah.k8s.csclub.cloud/playground/
5709c76a81
toda3c9f92bb
da3c9f92bb
to293183064a
WIP: Bar Graph Componentto Bar Graph ComponentLooks good to me! And yeah we definitely should add the title (though maybe we should instead have some sort of wrapper title component for all the graphs)
@ -0,0 +9,4 @@
.barText {
visibility: hidden;
font-family: "Inconsolata";
Do we need to specify the font family on all of these even though the font is set globally for the page?
Also small nit: If we do need to set the font, should we add the monospace fallback here?
I just tried it, and it looks like the visx Text component automatically uses Arial if you don't specify a font, so we either have to pass the font family as a prop to the Text component, or we have to specify the font on each class as done here.
Good catch on adding the monospace fallback though.
I'm going to merge this without the graph title for now, and we can always come back later to add it if we want - in the meantime, throwing a heading above the graph would work in a pinch lol