Skip to content

Commit

Permalink
Updated Chart.js to 4.4.6 [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 30, 2024
1 parent a6abb37 commit 2ad3a44
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 5.1.2 (unreleased)

- Updated Chart.js to 4.4.6

## 5.1.1 (2024-10-16)

- Updated Chart.js to 4.4.5
Expand Down
2 changes: 1 addition & 1 deletion build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"rollup": "^3.9.1"
},
"dependencies": {
"chart.js": "4.4.5",
"chart.js": "4.4.6",
"@kurkle/color": "0.3.2",
"chartjs-adapter-date-fns": "3.0.0",
"date-fns": "2.30.0"
Expand Down
4 changes: 2 additions & 2 deletions build/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import babel from "@rollup/plugin-babel";
import resolve from "@rollup/plugin-node-resolve";

// use same banner as projects
// https://unpkg.com/chart.js@4.4.5
// https://unpkg.com/chart.js@4.4.6
// https://unpkg.com/@kurkle/color@0.3.2
// https://unpkg.com/chartjs-adapter-date-fns@3.0.0
// https://unpkg.com/date-fns@2.30.0 (no banner)
const banner = `/*!
* Chart.js v4.4.5
* Chart.js v4.4.6
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
Expand Down
9 changes: 7 additions & 2 deletions vendor/assets/javascripts/Chart.bundle.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Chart.js v4.4.5
* Chart.js v4.4.6
* https://www.chartjs.org
* (c) 2024 Chart.js Contributors
* Released under the MIT License
Expand Down Expand Up @@ -4496,9 +4496,11 @@
if (value === null) {
return;
}
var found = false;
for (i = 0, ilen = keys.length; i < ilen; ++i) {
datasetIndex = +keys[i];
if (datasetIndex === dsIndex) {
found = true;
if (options.all) {
continue;
}
Expand All @@ -4509,6 +4511,9 @@
value += otherValue;
}
}
if (!found && !options.all) {
return 0;
}
return value;
}
function convertObjectDataToArray(data, meta) {
Expand Down Expand Up @@ -10397,7 +10402,7 @@
}
return false;
}
var version = "4.4.5";
var version = "4.4.6";
var KNOWN_POSITIONS = ['top', 'bottom', 'left', 'right', 'chartArea'];
function positionIsHorizontal(position, axis) {
return position === 'top' || position === 'bottom' || KNOWN_POSITIONS.indexOf(position) === -1 && axis === 'x';
Expand Down

0 comments on commit 2ad3a44

Please sign in to comment.