From 3d7cef34200b448d49e2b7a467f4fc206fd257f8 Mon Sep 17 00:00:00 2001 From: Justin White Date: Thu, 26 Oct 2023 09:48:02 -0500 Subject: [PATCH] Fix Chart docs --- src/app/showcase/doc/chart/chartjsdoc.ts | 6 +----- src/app/showcase/doc/chart/stackedbardoc.ts | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) 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 },