Skip to content

Commit

Permalink
Merge pull request #262 from sgratzl/release/v4.3.4
Browse files Browse the repository at this point in the history
Release v4.3.4
  • Loading branch information
sgratzl authored Nov 16, 2024
2 parents 10b846d + 21f6315 commit 60030f4
Show file tree
Hide file tree
Showing 5 changed files with 1,336 additions and 1,261 deletions.
725 changes: 367 additions & 358 deletions .yarn/releases/yarn-4.5.0.cjs → .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
yarnPath: .yarn/releases/yarn-4.5.0.cjs
yarnPath: .yarn/releases/yarn-4.5.1.cjs
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "chartjs-chart-geo",
"description": "Chart.js module for charting maps",
"version": "4.3.3",
"version": "4.3.4",
"author": {
"name": "Samuel Gratzl",
"email": "[email protected]",
Expand Down Expand Up @@ -61,42 +61,42 @@
},
"devDependencies": {
"@chiogen/rollup-plugin-terser": "^7.1.3",
"@eslint/js": "^9.11.1",
"@rollup/plugin-commonjs": "^28.0.0",
"@eslint/js": "~9.14.0",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-replace": "^6.0.1",
"@rollup/plugin-typescript": "^12.1.0",
"@rollup/plugin-typescript": "^12.1.1",
"@types/jest-image-snapshot": "^6.4.0",
"@types/node": "^22.7.4",
"@types/node": "^22.9.0",
"@types/seedrandom": "^3",
"@yarnpkg/sdks": "^3.2.0",
"canvas": "^2.11.2",
"canvas-5-polyfill": "^0.1.5",
"chart.js": "^4.4.4",
"chart.js": "^4.4.6",
"chartjs-plugin-datalabels": "^2.2.0",
"eslint": "^9.11.1",
"eslint": "~9.14.0",
"eslint-plugin-prettier": "^5.2.1",
"jest-image-snapshot": "^6.4.0",
"jsdom": "^25.0.1",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.22.5",
"rollup": "^4.27.2",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-dts": "^6.1.1",
"seedrandom": "^3.0.5",
"ts-jest": "^29.2.5",
"tslib": "^2.7.0",
"typedoc": "^0.26.7",
"typedoc-plugin-markdown": "^4.2.8",
"typedoc-vitepress-theme": "^1.0.1",
"typescript": "^5.6.2",
"typescript-eslint": "^8.7.0",
"tslib": "^2.8.1",
"typedoc": "^0.26.11",
"typedoc-plugin-markdown": "^4.2.10",
"typedoc-vitepress-theme": "^1.0.2",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"us-atlas": "^3.0.1",
"vite": "^5.4.8",
"vitepress": "^1.3.4",
"vitest": "^2.1.1",
"vue": "^3.5.10",
"vue-chartjs": "^5.3.1",
"vite": "^5.4.11",
"vitepress": "^1.5.0",
"vitest": "^2.1.5",
"vue": "^3.5.13",
"vue-chartjs": "^5.3.2",
"world-atlas": "^2.0.2"
},
"scripts": {
Expand All @@ -120,5 +120,5 @@
"docs:build": "yarn run docs:api && vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"packageManager": "[email protected].0"
"packageManager": "[email protected].1"
}
53 changes: 53 additions & 0 deletions samples/geo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!doctype html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4"></script>
<script src="../build/index.umd.js"></script>
</head>

<body>
<div>
<canvas id="canvas"></canvas>
</div>
<script>
fetch('https://cdn.jsdelivr.net/npm/us-atlas/states-10m.json')
.then((r) => r.json())
.then((states10m) => {
const nation = ChartGeo.topojson.feature(states10m, states10m.objects.nation).features[0];
const states = ChartGeo.topojson.feature(states10m, states10m.objects.states).features;
const chart = new Chart(document.getElementById('canvas').getContext('2d'), {
type: 'choropleth',
data: {
labels: states.map((d) => d.properties.name),
datasets: [
{
label: 'States',
outline: nation,
data: states.map((d) => ({
feature: d,
value: Math.random() * 11,
})),
},
],
},
options: {
lscales: {
projection: {
axis: 'x',
projection: 'albersUsa',
},
color: {
axis: 'x',
quantize: 5,
legend: {
position: 'bottom-right',
align: 'right',
},
},
},
},
});
});
</script>
</body>
</html>
Loading

0 comments on commit 60030f4

Please sign in to comment.