Skip to content
This repository was archived by the owner on Nov 25, 2021. It is now read-only.

Commit 5f06974

Browse files
committed
compatible with chartjs 2.8.0
1 parent c02b50b commit 5f06974

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

package-lock.json

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"src/**/*.js"
2121
],
2222
"dependencies": {
23-
"chart.js": "^2.7.3",
23+
"chart.js": "^2.8.0",
2424
"@sgratzl/science": "^2.0.0"
2525
},
2626
"devDependencies": {

src/controllers/boxplot.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ const boxplot = {
3434
/**
3535
* @private
3636
*/
37-
updateElementGeometry(elem, index, reset) {
38-
Chart.controllers.bar.prototype.updateElementGeometry.call(this, elem, index, reset);
37+
_updateElementGeometry(elem, index, reset) {
38+
Chart.controllers.bar.prototype._updateElementGeometry.call(this, elem, index, reset);
3939
elem._model.boxplot = this._calculateBoxPlotValuesPixels(this.index, index);
4040
},
4141

@@ -44,7 +44,7 @@ const boxplot = {
4444
*/
4545

4646
_calculateBoxPlotValuesPixels(datasetIndex, index) {
47-
const scale = this.getValueScale();
47+
const scale = this._getValueScale();
4848
const data = this.chart.data.datasets[datasetIndex].data[index];
4949
if (!data) {
5050
return null;

src/controllers/violin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const controller = {
1919
/**
2020
* @private
2121
*/
22-
updateElementGeometry(elem, index, reset) {
23-
Chart.controllers.bar.prototype.updateElementGeometry.call(this, elem, index, reset);
22+
_updateElementGeometry(elem, index, reset) {
23+
Chart.controllers.bar.prototype._updateElementGeometry.call(this, elem, index, reset);
2424
const custom = elem.custom || {};
2525
const options = this._elementOptions();
2626
elem._model.violin = this._calculateViolinValuesPixels(this.index, index, custom.points !== undefined ? custom.points : options.points);
@@ -31,7 +31,7 @@ const controller = {
3131
*/
3232

3333
_calculateViolinValuesPixels(datasetIndex, index, points) {
34-
const scale = this.getValueScale();
34+
const scale = this._getValueScale();
3535
const data = this.chart.data.datasets[datasetIndex].data[index];
3636
const violin = asViolinStats(data);
3737

0 commit comments

Comments
 (0)