Commit Graph

8 Commits

Author SHA1 Message Date
Mark Chiu 2d34b84cb0 Add Stacked Bar Graph component (Closes #3) (#37)
continuous-integration/drone/push Build is passing Details
Notes:
- Add Stacked Bar Graph component using the `BarStack` component from Visx.
- Hovering over a bar will add a highlight on the hovered bar and not the entire stacked bar (I have not yet found a way to highlight the entire stacked bar)
- Hovering over a bar will also show a tooltip box with the data for each bar. (The number represents the height of the bar and not the cumulative stacked bar height)
- In the mock data, the number given to each key represent their individual height (and not their overall value). The graph calculates the total height of the stacked bars.
- Missing percentage next to the left axis labels
- Resizable width, height, and margins. Customizable number of ticks for the y axis.

![image](/attachments/0ef5c998-c6c3-4e36-971e-6a33fe72ed1e)

Staging: https://stackedbar-component-csc-class-profile-staging-snedadah.k8s.csclub.cloud/playground/
Co-authored-by: Miniapple8888 <miniapple8888@gmail.com>
Co-authored-by: e26chiu <e26chiu@csc.uwaterloo.ca>
Reviewed-on: #37
Reviewed-by: Amy Wang <a258wang@csclub.uwaterloo.ca>
2022-10-01 20:54:05 -04:00
Mark Chiu 9526f1b0f5 Add BoxPlot component (Closes #6) (#34)
continuous-integration/drone/push Build is passing Details
Done:

- [x] Display boxplot with left and bottom axis in `playground.tsx`
- [x] Add mock data for boxplot
- [x] Hovering over boxplot displays a Tool Tip box.

My version:
![image](/attachments/6c8c4499-a1bd-4434-9230-7117266691ea)

Note:

 - No percentage displayed next to value axis labels.
 - We can add outlier points although it could complicate the graph.
 - Still displays the following error:
 	- Error: Hydration failed because the initial UI does not match what was rendered on the server.
    - Error: Text content does not match server-rendered HTML.
    - Error: There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering.

    Staging: https://boxplot-component-csc-class-profile-staging-snedadah.k8s.csclub.cloud/
Co-authored-by: Miniapple8888 <miniapple8888@gmail.com>
Co-authored-by: Emily Chiu <e26chiu@corn-syrup.csclub.uwaterloo.ca>
Co-authored-by: e26chiu <e26chiu@csc.uwaterloo.ca>
Reviewed-on: #34
Reviewed-by: Amy <a258wang@csclub.uwaterloo.ca>
2022-09-03 11:13:58 -04:00
Shahan Nedadahandeh 9cd5c158e7 Sample page and graph wrappers (#32)
continuous-integration/drone/push Build is passing Details
2022-09-02 17:39:46 -04:00
Shahan Nedadahandeh b586d52f72 Add Wordcloud Component (#27)
continuous-integration/drone/push Build is passing Details
2022-08-04 02:17:19 -04:00
Amy Wang 6735c52914 Bar Graph Component (#16)
continuous-integration/drone/push Build is passing Details
Adds a `<BarGraphHorizontal />` component and a `<BarGraphVertical />` component.

Closes #1.

Possible changes for the future:
- Refactor to make the horizontal and vertical bar graphs into one component
- Add (optional) graph title

Co-authored-by: Amy Wang <a258wang@csclub.uwaterloo.ca>
Reviewed-on: #16
Reviewed-by: Shahan Neda <snedadah@csclub.uwaterloo.ca>
2022-07-27 19:46:08 -04:00
Amy Wang ce166cf404 Install basic visx packages and tweak settings 2022-06-03 01:31:07 -04:00
Amy Wang 3007e63263 Set up repo 2022-06-03 01:31:07 -04:00
Amy Wang da4f4b10c8 Initial commit from Create Next App 2022-06-03 01:31:07 -04:00