juijs-chart
Advanced tools
Comparing version 2.5.4 to 2.5.5
{ | ||
"name": "juijs-chart", | ||
"version": "2.5.4", | ||
"version": "2.5.5", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "description": "SVG-based JUI chart that can be used in the browser and Node.js. Support many types of charts. (Dashboard, Map, Topology, Full 3D)", |
@@ -123,5 +123,8 @@ import jui from "../main.js"; | ||
// 이전 x축 도메인 값 캐싱하기 | ||
// 이전 x축 옵션 값들 캐싱하기 | ||
self.chart.setCache(`prevDomain_${axisIndex}`, axis.get("x").domain); | ||
self.chart.setCache(`prevInterval_${axisIndex}`, axis.get("x").interval); | ||
self.chart.setCache(`prevFormat_${axisIndex}`, axis.get("x").format); | ||
// x축 새로운 값으로 갱신하기 | ||
axis.updateGrid("x", { | ||
@@ -223,5 +226,3 @@ domain: [ stime, etime ], | ||
axis = this.chart.axis(axisIndex), | ||
xtype = axis.get("x").type, | ||
interval = axis.get("x").interval, | ||
format = axis.get("x").format; | ||
xtype = axis.get("x").type; | ||
@@ -233,7 +234,9 @@ if(xtype == "block") { | ||
let prevDomain = this.chart.getCache(`prevDomain_${axisIndex}`); | ||
let prevInterval = this.chart.getCache(`prevInterval_${axisIndex}`); | ||
let prevFormat = this.chart.getCache(`prevFormat_${axisIndex}`); | ||
axis.updateGrid("x", { | ||
domain: prevDomain, | ||
interval: interval, | ||
format: format | ||
interval: prevInterval, | ||
format: prevFormat | ||
}); | ||
@@ -240,0 +243,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2900830
33060