Skip to content

Commit

Permalink
fix: 兼容 0.3.X scale timeCat type
Browse files Browse the repository at this point in the history
  • Loading branch information
cycgit committed Jul 16, 2020
1 parent b3c0771 commit 0107825
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/chart/controller/scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,12 @@ class ScaleController {
const Scale = getScale(type);
const newScale = new Scale(cfg);
scales[field] = newScale;

// 兼容scale type类型为cat
if (type === 'timeCat') {
newScale.type = 'timeCat';
}

return newScale;
}

Expand Down

0 comments on commit 0107825

Please sign in to comment.