You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2023/01/16 09:00:16 UTC

[GitHub] [echarts] linwrui opened a new issue, #18177: Line graph animation waiting so long cause animationDuration is also working on blank data

linwrui opened a new issue, #18177:
URL: https://github.com/apache/echarts/issues/18177

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   You can reproduce at official demo editor with options like
   ```js
   option = {
     animationEasing: 'linear',
     animationDuration: 8000,
     animationDurationUpdate: 0,
     xAxis: {
       type: 'value',
       min: -10,
     },
     yAxis: {
       type: 'value',
       axisLine: {
         onZero: false,
       }
     },
     series: [
       {
         connectNulls: true,
         data: [218, 135, 147, 260].map((o, index) => [index, o]),
         type: 'line'
       }
     ]
   };
   console.log(option.series)
   ```
   
   ### Current Behavior
   
   As the title says, the line graph animation didn't start immediately, but waited for a long blank time, which I guess was caused by the animation delay on the previous blank data
   ![image](https://user-images.githubusercontent.com/22316156/212637602-c9938fe8-b47a-4cdd-ab1a-c8235be19851.png)
   
   
   ### Expected Behavior
   
   I expected animationDuration will not working on empty data
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] helgasoft commented on issue #18177: [Bug] Line graph animation waiting so long cause animationDuration is also working on blank data

Posted by GitBox <gi...@apache.org>.
helgasoft commented on issue #18177:
URL: https://github.com/apache/echarts/issues/18177#issuecomment-1384955590

   Where is the _blank data_? Shouldn't it be 
   ```data: [null, null, null, null, null, ..., 218, 135, 147, 260].map((o, index) => [index, o])```
   But even then it all depends on **animationDuration**.  
   With ```animationDuration=200``` drawing is almost instant.
   I think it works as documented.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] linwrui commented on issue #18177: [Bug] Line graph animation waiting so long cause animationDuration is also working on blank data

Posted by GitBox <gi...@apache.org>.
linwrui commented on issue #18177:
URL: https://github.com/apache/echarts/issues/18177#issuecomment-1386341993

   > Where is the _blank data_? Shouldn't it be `data: [null, null, null, null, null, ..., 218, 135, 147, 260].map((o, index) => [index, o])` But even then it all depends on **animationDuration**. With `animationDuration: 200` drawing is almost instant. I think it works as documented.
   
   Set animationDuration with a smaller value is really not perceptive, but the line graph will draw too fast!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] linwrui commented on issue #18177: [Bug] Line graph animation waiting so long cause animationDuration is also working on blank data

Posted by GitBox <gi...@apache.org>.
linwrui commented on issue #18177:
URL: https://github.com/apache/echarts/issues/18177#issuecomment-1386340528

   > Where is the _blank data_? Shouldn't it be `data: [null, null, null, null, null, ..., 218, 135, 147, 260].map((o, index) => [index, o])` But even then it all depends on **animationDuration**. With `animationDuration: 200` drawing is almost instant. I think it works as documented.
   
   The xAxis is value axis. Shouldn't the animation start at the first data point?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org