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

Move to Chart.js #963

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,014 changes: 526 additions & 1,488 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"devDependencies": {
"ejs": "3.1.10",
"fs-extra": "11.2.0",
"chart.js": "4.4.6",
"chartjs-adapter-date-fns": "3.0.0",
"chartjs-plugin-zoom": "2.2.0",
"highcharts": "11.4.8",
"node-fetch": "3.3.2",
"recursive-readdir": "2.2.3",
Expand Down
14 changes: 13 additions & 1 deletion src/js/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ const RGBA = [
`rgba(4, 199, 253, ${OPACITY})`,
`rgba(166, 42, 164, ${OPACITY})`,
`rgba(18, 174, 248, ${OPACITY})`,
`rgba(132, 36, 134, ${OPACITY})`
`rgba(132, 36, 134, ${OPACITY})`,
`rgba(4, 199, 253, 0.1)`,
`rgba(166, 42, 164, 0.1)`,
`rgba(18, 174, 248, 0.1)`,
`rgba(132, 36, 134, 0.1)`
];
const HEX = ['#04c7fd', '#a62aa4', '#12aef8', '#842486'];

Expand All @@ -25,6 +29,14 @@ export class Colors {
return HEX[1];
}

static get DESKTOP_DIM() {
return RGBA[4];
}

static get MOBILE_DIM() {
return RGBA[5];
}

static get WEBPAGETEST() {
return '#000000';
}
Expand Down
Loading
Loading