diff --git a/src/app/showcase/doc/chart/chartjsdoc.ts b/src/app/showcase/doc/chart/chartjsdoc.ts index bbfd651837a..91b856e93f5 100644 --- a/src/app/showcase/doc/chart/chartjsdoc.ts +++ b/src/app/showcase/doc/chart/chartjsdoc.ts @@ -18,10 +18,6 @@ export class ChartjsDoc { code: Code = { typescript: ` npm install chart.js --save - -"scripts": [ - "../node_modules/chart.js/dist/chart.js", - //..others -],` +` }; } diff --git a/src/app/showcase/doc/chart/stackedbardoc.ts b/src/app/showcase/doc/chart/stackedbardoc.ts index 54fe22919cb..cd04b1a6101 100644 --- a/src/app/showcase/doc/chart/stackedbardoc.ts +++ b/src/app/showcase/doc/chart/stackedbardoc.ts @@ -60,7 +60,7 @@ export class StackedBarDoc implements OnInit { maintainAspectRatio: false, aspectRatio: 0.8, plugins: { - tooltips: { + tooltip: { mode: 'index', intersect: false }, @@ -149,7 +149,7 @@ export class ChartStackedBarDemo implements OnInit { maintainAspectRatio: false, aspectRatio: 0.8, plugins: { - tooltips: { + tooltip: { mode: 'index', intersect: false },