Skip to content

Commit

Permalink
Updated ot chart.js v3.0.0-beta.9
Browse files Browse the repository at this point in the history
  • Loading branch information
santam85 committed Jan 22, 2021
1 parent cefccb5 commit 71a36d9
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</template>

<script>
import Chart from 'chart.js';
import {Chart} from 'chart.js';
import * as Utils from '../utils';
// Components
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import Chart from 'chart.js';
import {Chart} from 'chart.js';
import plugin from '../../../../../dist/chartjs-plugin-datalabels.js';
Chart.register(plugin);
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/plugins/chart-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = ({defaults}) => {
{
name: 'chart-defaults',
content: `
import Chart from 'chart.js';
import {Chart} from 'chart.js';
Chart.defaults.set(${JSON.stringify(defaults)});
`
},
Expand Down
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 @@ -67,6 +67,6 @@
"yargs": "^16.1.0"
},
"peerDependencies": {
"chart.js": "^3.0.0-beta.7"
"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 fixture from './fixture';
import matchers from './matchers';
import utils from './utils';
Expand Down
2 changes: 1 addition & 1 deletion test/matchers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Chart from 'chart.js';
import {Chart} from 'chart.js';
import pixelmatch from 'pixelmatch';
import utils from './utils';

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
2 changes: 1 addition & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import Chart from 'chart.js';
import {Chart} from 'chart.js';

function createCanvas(w, h) {
var canvas = document.createElement('CANVAS');
Expand Down

0 comments on commit 71a36d9

Please sign in to comment.