Permalink
Browse files

fix: fix axis label animation.

  • Loading branch information...
simaQ committed Jul 30, 2018
1 parent 33624cb commit 8b1f7b19d19c3a62af7d7033f7d0fc4154251429
Showing with 2 additions and 1 deletion.
  1. +1 −0 src/chart/controller/axis.js
  2. +1 −1 src/component/axis/abstract.js
@@ -173,6 +173,7 @@ class AxisController {
fontFamily: self.chart.get('canvas').get('fontFamily') // 保持字体一致
}, labelCfg),
value: tick.value,
tickValue: tick.tickValue,
textStyle,
top: labelCfg.top,
context: self.chart.get('canvas').get('context')
@@ -84,7 +84,7 @@ class Abastract {
x,
y
}, self.getTextAlignInfo(start, labelOffset), labelShape.get('textStyle')));
labelShape._id = self._id + '-' + labelShape.attr('text');
labelShape._id = self._id + '-' + labelShape.get('tickValue');
container.add(labelShape);
});
}

0 comments on commit 8b1f7b1

Please sign in to comment.