From a52adf2b14c959baabad52d033b3cc94e9e68049 Mon Sep 17 00:00:00 2001 From: lbay Date: Fri, 28 Sep 2018 16:15:10 +0800 Subject: [PATCH] https://github.com/uavorg/uavstack/issues/407 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the charts component, the X axis data is not updated when the icon is redrawn. Charts组件:图表组件中,当重新绘制图标时,X轴数据不会被更新。 --- .../src/main/webapp/apphub/js/common/charts.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/com.creditease.uav.console/src/main/webapp/apphub/js/common/charts.js b/com.creditease.uav.console/src/main/webapp/apphub/js/common/charts.js index cb18930a..32c55646 100644 --- a/com.creditease.uav.console/src/main/webapp/apphub/js/common/charts.js +++ b/com.creditease.uav.console/src/main/webapp/apphub/js/common/charts.js @@ -723,6 +723,13 @@ function AppHubChart(_chartsConfig){ } else { draw(arrayData,false); + + /** + * 随着运行时的变化,改变config绘画的值,因为除去第一次,后续所有将不需要重绘 + * + * 后续的reset 理论都是false + */ + chartObj.chart.config.chart["drawAction"]=false; } };