From 3f8e6235842190f24d7470448a89dd05fd1afe15 Mon Sep 17 00:00:00 2001 From: nixa <4dmitr@gmail.com> Date: Wed, 11 May 2016 11:54:31 +0300 Subject: [PATCH] chart.js responsive error fix --- .../components/chartJs/chartJs.component.ts | 3 +- .../charts/components/chartJs/chartJs.html | 28 +++++++++---------- .../charts/components/chartJs/chartJs.scss | 7 +++++ .../theme/sass/bootstrap-overrides/_card.scss | 1 + 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/app/pages/charts/components/chartJs/chartJs.component.ts b/src/app/pages/charts/components/chartJs/chartJs.component.ts index 86d40557..b10b3672 100644 --- a/src/app/pages/charts/components/chartJs/chartJs.component.ts +++ b/src/app/pages/charts/components/chartJs/chartJs.component.ts @@ -35,8 +35,7 @@ export class ChartJs { public options = { scaleShowLabelBackdrop : false, segmentShowStroke : false, - // TODO: produce an error - // responsive: true, + responsive: true, scaleFontColor: "rgba(255,255,255,.7)", scaleLineColor: "rgba(255,255,255,.7)", pointLabelFontColor: "rgba(255,255,255,.7)" diff --git a/src/app/pages/charts/components/chartJs/chartJs.html b/src/app/pages/charts/components/chartJs/chartJs.html index f5872bbf..118723eb 100644 --- a/src/app/pages/charts/components/chartJs/chartJs.html +++ b/src/app/pages/charts/components/chartJs/chartJs.html @@ -1,23 +1,23 @@