From: Laurent Pellegrino Date: Wed, 11 Nov 2020 23:34:38 +0000 (+0100) Subject: Fix import names in integration example (#8039) X-Git-Tag: v3.0.0-beta.7~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d063f654cfd1b2f4e17f9bcd810680fcb5efbded;p=thirdparty%2FChart.js.git Fix import names in integration example (#8039) --- 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, {...}); ```