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

   ### Version
   
   5.4.3
   
   ### Link to Minimal Reproduction
   
   https://jsfiddle.net/plainheart/xxx
   
   ### Steps to Reproduce
   
   null
   
   
   ### Current Behavior
   
   
   
https://github.com/apache/echarts/assets/9067839/94b9b15d-9595-4fa0-999c-f0895c7cda04
   
   The init echarts config:
   ```ts
   export const initEchartsOption: EChartsOption = {
       xAxis: {
           show: false,
       },
       yAxis: {
           show: false,
       },
       series: {
           type: "line",
           showSymbol: false,
           smooth: true,
           data: [],
           lineStyle: {
               color: "#000",
               width: 3,
           },
           sampling: "none",
       },
       grid: {
           right: 0,
           top: 20,
           bottom: 20,
           left: 0,
       },
       animationDuration: 0,
       animationDurationUpdate: 500,
       animationEasing: "linear",
       animationEasingUpdate: "linear",
   };
   ```
   
   and evert 500ms I will set new options:
   ```ts
   chartRef.current!.setOption<EChartsOption>({
       yAxis: {
           min: renderData?.minYAxis || 0,
           max: renderData?.maxYAxis || 1,
       },
       xAxis: {
           min: latestData.timestamp - liveLineHistoriesConfig.time_offset,
           max: latestData.timestamp,
       },
       series: {
           data: newData,
       },
       grid: {
           right: 100
       },
   });
   ```
   As can be seen, when a new point appears on the right, there are two issues:
   1. The line is drawn from thick to thin.
   <img width="174" alt="image" 
src="https://github.com/apache/echarts/assets/9067839/f9880f11-2bfb-4cbe-8b0c-bc4bdafd99b4";>
   2. After the line is drawn, it jitters and changes into a smooth curve. 
   
   
   ### Expected Behavior
   
   looks ok
   
   ### Environment
   
   ```markdown
   every
   ```
   
   
   ### Any additional comments?
   
   null
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to