From d063f654cfd1b2f4e17f9bcd810680fcb5efbded Mon Sep 17 00:00:00 2001 From: Laurent Pellegrino Date: Thu, 12 Nov 2020 00:34:38 +0100 Subject: [PATCH] Fix import names in integration example (#8039) --- docs/docs/getting-started/integration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/getting-started/integration.md b/docs/docs/getting-started/integration.md index 773e1c689..30fb28efd 100644 --- a/docs/docs/getting-started/integration.md +++ b/docs/docs/getting-started/integration.md @@ -25,9 +25,9 @@ var myChart = new Chart(ctx, {...}); Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use. ```javascript -import { Chart, LineController, Line, Point, LinearScale, CategoryScale, Title, Tooltip, Filler, Legend } from 'chart.js'; +import { Chart, LineController, LineElement, PointElement, LinearScale, CategoryScale, Title, Tooltip, Filler, Legend } from 'chart.js'; -Chart.register(LineController, Line, Point, LinearScale, CategoryScale, Title, Tooltip, Filler, Legend); +Chart.register(LineController, LineElement, PointElement, LinearScale, CategoryScale, Title, Tooltip, Filler, Legend); var myChart = new Chart(ctx, {...}); ``` -- 2.47.2