]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix import names in integration example (#8039)
authorLaurent Pellegrino <lpellegr@users.noreply.github.com>
Wed, 11 Nov 2020 23:34:38 +0000 (00:34 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Nov 2020 23:34:38 +0000 (18:34 -0500)
docs/docs/getting-started/integration.md

index 773e1c6890f8fcc88894c1e32e64768c3940506e..30fb28efd449634574b7aac4441609c773b5ac17 100644 (file)
@@ -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, {...});
 ```