Skip to content

Commit

Permalink
Disable chart animations.
Browse files Browse the repository at this point in the history
The animation leads to things being not quite as responsive or fast,
since there's a delay before the animation is done. We could also speed
up the animation, but since I don't think we really need it, let's just
disable it.
  • Loading branch information
GUI committed Mar 4, 2018
1 parent 53d263b commit 92c9351
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default Component.extend({
}

this.chart.setOption({
animation: false,
tooltip: {
trigger: 'axis',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default Component.extend({
}

this.chart.setOption({
animation: false,
tooltip: {
trigger: 'axis',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export default Component.extend({

this.chart.hideLoading();
this.chart.setOption({
animation: false,
tooltip: {
trigger: 'item',
formatter: function(params) {
Expand Down

0 comments on commit 92c9351

Please sign in to comment.