Skip to content

Commit 0164af9

Browse files
authored
docs: add BarController, LineController so multitype chart sample works after build (#1064)
1 parent 59b64fe commit 0164af9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sandboxes/chart/multitype/App.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import {
88
LineElement,
99
Legend,
1010
Tooltip,
11+
LineController,
12+
BarController,
1113
} from 'chart.js';
1214
import { Chart } from 'react-chartjs-2';
1315
import faker from 'faker';
@@ -19,7 +21,9 @@ ChartJS.register(
1921
PointElement,
2022
LineElement,
2123
Legend,
22-
Tooltip
24+
Tooltip,
25+
LineController,
26+
BarController
2327
);
2428

2529
const labels = ['January', 'February', 'March', 'April', 'May', 'June', 'July'];

0 commit comments

Comments
 (0)