Skip to content

Commit

Permalink
fixed bug of trace
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqing.dongxq committed Sep 11, 2014
1 parent 3127b9c commit 4bca907
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,16 @@ Util.augment(Line,{
var _self = this,
//points = _self.getPoints(),
lineShape = _self.get('lineShape'),
trackerShape = _self.get('trackerShape'),
path = _self.points2path(points);

if(animate == null){
animate = _self.get('animate');
}
if(trackerShape){
var tracePath = _self.points2tracker(points);
trackerShape.attr('path',tracePath);
}
if(lineShape){
if(animate){
if(Util.svg && _self.get('smooth')){ //曲线图,先获取到达的path
Expand Down

0 comments on commit 4bca907

Please sign in to comment.