From 418d4ec106a265fab775e15d21a4a903fd172ac8 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 23 Dec 2015 13:05:08 +0300 Subject: [PATCH] more responsive charts layout --- src/app/pages/charts/amCharts/charts.html | 14 +++++++------- .../charts/amCharts/lineChart/LineChartCtrl.js | 2 +- src/app/pages/charts/chartJs/chartJs.html | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/app/pages/charts/amCharts/charts.html b/src/app/pages/charts/amCharts/charts.html index 61cea6d..991a2ee 100644 --- a/src/app/pages/charts/amCharts/charts.html +++ b/src/app/pages/charts/amCharts/charts.html @@ -1,21 +1,21 @@
-
+
-
- -
-
-
-
+
+
+ +
+
+
diff --git a/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js b/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js index 5864df8..d62738f 100644 --- a/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js +++ b/src/app/pages/charts/amCharts/lineChart/LineChartCtrl.js @@ -148,7 +148,7 @@ } function zoomChart() { - lineChart.zoomToIndexes(Math.round(chart.dataProvider.length * 0.4), Math.round(chart.dataProvider.length * 0.55)); + lineChart.zoomToIndexes(Math.round(lineChart.dataProvider.length * 0.4), Math.round(lineChart.dataProvider.length * 0.55)); } } diff --git a/src/app/pages/charts/chartJs/chartJs.html b/src/app/pages/charts/chartJs/chartJs.html index 47c7a99..006a818 100644 --- a/src/app/pages/charts/chartJs/chartJs.html +++ b/src/app/pages/charts/chartJs/chartJs.html @@ -39,7 +39,7 @@
-
+
-
+
-
+