From 9ea34a99ca9d3a948a8a26ee771b807259875070 Mon Sep 17 00:00:00 2001 From: nixa <4dmitr@gmail.com> Date: Fri, 6 May 2016 13:34:20 +0300 Subject: [PATCH] do not use ids for styles --- .../pages/dashboard/lineChart/lineChart.component.ts | 10 +++++----- src/app/pages/dashboard/lineChart/lineChart.html | 2 +- src/app/pages/dashboard/lineChart/lineChart.scss | 2 +- src/app/pages/dashboard/lineChart/lineChart.service.ts | 3 +++ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app/pages/dashboard/lineChart/lineChart.component.ts b/src/app/pages/dashboard/lineChart/lineChart.component.ts index 04282d87..d866d747 100644 --- a/src/app/pages/dashboard/lineChart/lineChart.component.ts +++ b/src/app/pages/dashboard/lineChart/lineChart.component.ts @@ -26,10 +26,10 @@ export class LineChart { }; chart.addListener('rendered', zoomChart); - // zoomChart(); - // - // if (chart.zoomChart) { - // chart.zoomChart(); - // } + zoomChart(); + + if (chart.zoomChart) { + chart.zoomChart(); + } } } diff --git a/src/app/pages/dashboard/lineChart/lineChart.html b/src/app/pages/dashboard/lineChart/lineChart.html index 143e219e..d644b3aa 100644 --- a/src/app/pages/dashboard/lineChart/lineChart.html +++ b/src/app/pages/dashboard/lineChart/lineChart.html @@ -1 +1 @@ - + diff --git a/src/app/pages/dashboard/lineChart/lineChart.scss b/src/app/pages/dashboard/lineChart/lineChart.scss index e63e4b15..19ed4742 100644 --- a/src/app/pages/dashboard/lineChart/lineChart.scss +++ b/src/app/pages/dashboard/lineChart/lineChart.scss @@ -1,4 +1,4 @@ -#amchart { +.dashboard-line-chart { width: 100%; height: 350px; margin-top: -20px; diff --git a/src/app/pages/dashboard/lineChart/lineChart.service.ts b/src/app/pages/dashboard/lineChart/lineChart.service.ts index 7cf5e296..bfef803c 100644 --- a/src/app/pages/dashboard/lineChart/lineChart.service.ts +++ b/src/app/pages/dashboard/lineChart/lineChart.service.ts @@ -9,6 +9,9 @@ export class LineChartService { theme: 'blur', marginTop: 15, marginRight: 15, + responsive: { + "enabled": true + }, dataProvider: [ { date: new Date(2012, 11), value: 0, value0: 0 }, { date: new Date(2013, 0), value: 15000, value0: 19000},