From b8a192987f914e2abe2431692d935c1b04224a1a Mon Sep 17 00:00:00 2001 From: Marco Santarelli Date: Wed, 27 Jan 2021 08:44:07 +0100 Subject: [PATCH] Updated to chart.js v3.0.0-beta.9 (#214) --- docs/guide/getting-started.md | 2 +- package.json | 2 +- src/defaults.js | 2 +- src/hitbox.js | 2 +- src/label.js | 2 +- src/plugin.js | 2 +- src/utils.js | 2 +- test/index.js | 2 +- test/specs/defaults.spec.js | 2 +- test/specs/events.spec.js | 2 +- test/specs/module.spec.js | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index 84da3f1..eb86987 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -55,7 +55,7 @@ Once loaded, the plugin, available under the global `ChartDataLabels` property, ### Module ```javascript -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import ChartDataLabels from 'chartjs-plugin-datalabels'; ``` diff --git a/package.json b/package.json index 171b199..76b993c 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,6 @@ "yargs": "^16.2.0" }, "peerDependencies": { - "chart.js": ">= 2.7.0 < 3" + "chart.js": "^3.0.0-beta.9" } } diff --git a/src/defaults.js b/src/defaults.js index 6597b1b..6181422 100644 --- a/src/defaults.js +++ b/src/defaults.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; var helpers = Chart.helpers; diff --git a/src/hitbox.js b/src/hitbox.js index 4158089..c8609f0 100644 --- a/src/hitbox.js +++ b/src/hitbox.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; var helpers = Chart.helpers; diff --git a/src/label.js b/src/label.js index 42ffb0f..8b98344 100644 --- a/src/label.js +++ b/src/label.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import utils from './utils'; import positioners from './positioners'; diff --git a/src/plugin.js b/src/plugin.js index 1369a4c..8131843 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -2,7 +2,7 @@ * @see https://github.com/chartjs/Chart.js/issues/4176 */ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import Label from './label'; import utils from './utils'; import layout from './layout'; diff --git a/src/utils.js b/src/utils.js index 2f5e9bd..9144679 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; var helpers = Chart.helpers; diff --git a/test/index.js b/test/index.js index 535f4e9..84d82a0 100644 --- a/test/index.js +++ b/test/index.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import {acquireChart, addMatchers, releaseChart, releaseCharts, specsFromFixtures, triggerMouseEvent} from 'chartjs-test-utils'; // force ratio=1 for tests on high-res/retina devices diff --git a/test/specs/defaults.spec.js b/test/specs/defaults.spec.js index e2857d2..2f93f0a 100644 --- a/test/specs/defaults.spec.js +++ b/test/specs/defaults.spec.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import plugin from 'chartjs-plugin-datalabels'; describe('defaults.js', function() { diff --git a/test/specs/events.spec.js b/test/specs/events.spec.js index 019b7c6..67319ea 100644 --- a/test/specs/events.spec.js +++ b/test/specs/events.spec.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import plugin from 'chartjs-plugin-datalabels'; describe('events', function() { diff --git a/test/specs/module.spec.js b/test/specs/module.spec.js index a1d8ed2..55a12c7 100644 --- a/test/specs/module.spec.js +++ b/test/specs/module.spec.js @@ -1,4 +1,4 @@ -import Chart from 'chart.js'; +import {Chart} from 'chart.js'; import plugin from 'chartjs-plugin-datalabels'; describe('module', function() {