From 9572b06173eb0f0bbcf9df97db55f820ba1fa94f Mon Sep 17 00:00:00 2001 From: Menaka Madushanka Date: Thu, 17 Dec 2015 17:57:14 +0530 Subject: [PATCH] Added padding to stats graph so that graphs won't cut from top --- .../app/units/iot.unit.device.stats/public/js/device-stats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.stats/public/js/device-stats.js b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.stats/public/js/device-stats.js index 75ef433f73..449b23d3b4 100644 --- a/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.stats/public/js/device-stats.js +++ b/features/device-mgt-iot-feature/org.wso2.carbon.device.mgt.iot.feature/src/main/resources/jaggeryapps/devicemgt/app/units/iot.unit.device.stats/public/js/device-stats.js @@ -128,6 +128,7 @@ function updateGraphs() { width: $("#chartWrapper").width() - 50, height: 300, renderer: 'line', + padding: {top: 0.2, left: 0.0, right: 0.0, bottom: 0.2}, series: new Rickshaw.Series.FixedDuration(fields, undefined, { timeInterval: 10000, maxDataPoints: 20,