Skip to content

Commit

Permalink
Updated to chart.js v3.0.0-beta.9 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
santam85 authored and simonbrunel committed Mar 9, 2021
1 parent 34757c0 commit b8a1929
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@
"yargs": "^16.2.0"
},
"peerDependencies": {
"chart.js": ">= 2.7.0 < 3"
"chart.js": "^3.0.0-beta.9"
}
}
2 changes: 1 addition & 1 deletion src/defaults.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';

var helpers = Chart.helpers;

Expand Down
2 changes: 1 addition & 1 deletion src/hitbox.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';

var helpers = Chart.helpers;

Expand Down
2 changes: 1 addition & 1 deletion src/label.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';
import utils from './utils';
import positioners from './positioners';

Expand Down
2 changes: 1 addition & 1 deletion src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';

var helpers = Chart.helpers;

Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/specs/defaults.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';
import plugin from 'chartjs-plugin-datalabels';

describe('defaults.js', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/specs/events.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';
import plugin from 'chartjs-plugin-datalabels';

describe('events', function() {
Expand Down
2 changes: 1 addition & 1 deletion test/specs/module.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chart from 'chart.js';
import {Chart} from 'chart.js';
import plugin from 'chartjs-plugin-datalabels';

describe('module', function() {
Expand Down

0 comments on commit b8a1929

Please sign in to comment.