You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/09/25 08:35:06 UTC

ignite git commit: IGNITE-843 Added number format for Y axis.

Repository: ignite
Updated Branches:
  refs/heads/ignite-843 24c9b1888 -> 1effc9065


IGNITE-843 Added number format for Y axis.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/1effc906
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/1effc906
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/1effc906

Branch: refs/heads/ignite-843
Commit: 1effc90656127a2029274b0472cf90292d05a839
Parents: 24c9b18
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Fri Sep 25 13:35:05 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Fri Sep 25 13:35:05 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/sql-controller.js                | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/1effc906/modules/control-center-web/src/main/js/controllers/sql-controller.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/sql-controller.js b/modules/control-center-web/src/main/js/controllers/sql-controller.js
index 975e191..4611f9f 100644
--- a/modules/control-center-web/src/main/js/controllers/sql-controller.js
+++ b/modules/control-center-web/src/main/js/controllers/sql-controller.js
@@ -724,8 +724,10 @@ controlCenterModule.controller('sqlController',
             if (chart.xAxis)
                 chart.xAxis.axisLabel(xAxisLabel);
 
-            if (chart.yAxis)
+            if (chart.yAxis) {
                 chart.yAxis.axisLabel(yAxisLabel);
+                chart.yAxis.tickFormat(d3.format(',.2f'));
+            }
 
             // Insert new chart.
             d3.select('#' + chartId)
@@ -827,6 +829,8 @@ controlCenterModule.controller('sqlController',
                 .y(_yY)
                 .margin({left: 70});
 
+            chart.xAxis.tickFormat(d3.format(',.2f'));
+
             _insertChart(paragraph, _chartDatumNumNum(paragraph), chart, true);
         });
     }
@@ -838,6 +842,8 @@ controlCenterModule.controller('sqlController',
                 .y(_yY)
                 .margin({left: 70});
 
+            chart.xAxis.tickFormat(d3.format(',.2f'));
+
             _insertChart(paragraph, _chartDatumNumNum(paragraph), chart, true);
         });
     }