Skip to content

Commit

Permalink
Merge pull request #52 from sgratzl/upgrade
Browse files Browse the repository at this point in the history
Upgrade to chart.js v4.1.1
  • Loading branch information
sgratzl authored Dec 17, 2022
2 parents bf84f08 + c0fcfa2 commit 8992ea3
Show file tree
Hide file tree
Showing 20 changed files with 366 additions and 338 deletions.
33 changes: 16 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,33 +61,32 @@
"src/**/*.tsx"
],
"peerDependencies": {
"chart.js": "^4.0.1"
"chart.js": "^4.1.1"
},
"browserslist": [
"Firefox ESR",
"last 2 Chrome versions",
"last 2 Firefox versions"
],
"dependencies": {
"@kurkle/color": "^0.2.1",
"@sgratzl/boxplots": "^1.3.0"
},
"devDependencies": {
"@chiogen/rollup-plugin-terser": "^7.1.3",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-commonjs": "^23.0.7",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1",
"@rollup/plugin-typescript": "^9.0.2",
"@types/jest": "^29.2.3",
"@types/jest-image-snapshot": "^5.1.0",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-typescript": "^10.0.1",
"@types/jest": "^29.2.4",
"@types/jest-image-snapshot": "^6.1.0",
"@types/node": "^18.11.16",
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@yarnpkg/sdks": "^2.6.3",
"canvas": "^2.10.2",
"canvas-5-polyfill": "^0.1.5",
"chart.js": "^4.0.1",
"eslint": "^8.28.0",
"chart.js": "^4.1.1",
"eslint": "^8.30.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-react-app": "^7.0.1",
Expand All @@ -99,16 +98,16 @@
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-image-snapshot": "^6.0.0",
"prettier": "^2.8.0",
"jest-image-snapshot": "^6.1.0",
"prettier": "^2.8.1",
"rimraf": "^3.0.2",
"rollup": "^3.4.0",
"rollup": "^3.7.5",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^5.0.0",
"ts-jest": "^29.0.3",
"tslib": "^2.4.1",
"typedoc": "^0.23.21",
"typescript": "^4.9.3"
"typedoc": "^0.23.22",
"typescript": "4.9.3"
},
"scripts": {
"clean": "rimraf build docs node_modules \"*.tgz\" \"*.tsbuildinfo\"",
Expand Down
2 changes: 1 addition & 1 deletion samples/animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/boxplot_and_violin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/datalimits.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/datastructures.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions samples/default_esm.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<script type="importmap-shim">
{
"imports": {
"chart.js": "https://unpkg.com/chart.js@4.0.1?module",
"chart.js/helpers": "https://unpkg.com/chart.js@4.0.1/helpers/helpers.esm.js?module",
"chart.js": "https://unpkg.com/chart.js@~4.1.1?module",
"chart.js/helpers": "https://unpkg.com/chart.js@~4.1.1/helpers/helpers.esm.js?module",
"@sgratzl/boxplots": "https://unpkg.com/@sgratzl/boxplots?module",
"@sgratzl/chartjs-chart-boxplot": "../build/index.js"
}
Expand Down
2 changes: 1 addition & 1 deletion samples/empty.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/fivenum.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/horizontalBoxplot.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Horizontal Bar Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/horizontalViolin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Violin Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/hybrid.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="./utils.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion samples/items.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/large_numbers.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/logarithm.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/mediancolor.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion samples/minmax.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Box Plot Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/violin.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Violin Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion samples/violin_empty.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<title>Violin Chart</title>
<script src="https://unpkg.com/chart.js@4.0.1"></script>
<script src="https://unpkg.com/chart.js@~4.1.1"></script>
<script src="../build/index.umd.js"></script>
<script src="https://unpkg.com/d3-random@latest/dist/d3-random.min.js"></script>
<script src="./utils.js"></script>
Expand Down
Loading

0 comments on commit 8992ea3

Please sign in to comment.