Skip to content

Commit

Permalink
add box plot
Browse files Browse the repository at this point in the history
  • Loading branch information
BoringBoredom committed Feb 16, 2024
1 parent 9ca7e18 commit e4bac49
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 91 deletions.
169 changes: 93 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"dependencies": {
"@mantine/core": "^7.4.1",
"@mantine/hooks": "^7.4.1",
"@sgratzl/chartjs-chart-boxplot": "^4.2.8",
"@tabler/icons-react": "^2.47.0",
"chart.js": "^4.4.1",
"chartjs-plugin-datalabels": "^2.2.0",
Expand Down
3 changes: 1 addition & 2 deletions src/App.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
}
.watermark {
text-align: center;
padding: 1rem;
display: none;
visibility: hidden;
}
3 changes: 2 additions & 1 deletion src/components/Buttons/Buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import { saveAs } from "file-saver";
function exportPage(download: boolean) {
void html2canvas(document.body, {
scrollY: 0,
height: document.body.scrollHeight,
ignoreElements: (element) =>
element.id === "button-container" ||
element.tagName === "NOSCRIPT" ||
!!element.getAttribute("data-portal"),
onclone: (document) =>
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
(document.getElementById("watermark")!.style.display = "block"),
(document.getElementById("watermark")!.style.visibility = "visible"),
}).then((canvas) => {
canvas.toBlob((blob) => {
if (blob) {
Expand Down
Loading

0 comments on commit e4bac49

Please sign in to comment.