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

   ### Version
   
   6.1.0
   
   ### Link to Minimal Reproduction
   
   
https://echarts.apache.org/examples/en/editor.html?code=fVHBbtswDL37K97N8mY46QZsq4MMyHpdscN2K4pViWlbqC0ZkrzEMPzvoxSnwC67SAT5SL7HdzLaeWjZk8MeT-khzZF-C89D-rxL6lGfvDIax1F1lXCehgxzAljyo9UxBKRWvQywErXsHOUx21hVlZhhVdP6Ep-2WK6Fy-GiXKj4aaAS6R_ZjcQre3kpcX9_g03_g318m-bIKmJc1FD0chAihDleM-y_Qlwp4jalU5qHrLkIXOOg7S1uzfnn1B9N948ioJJeljhYK6eitqYXMzrSjW9L3G0DJYjfOVTc_LT2AOrWDnzBe7ziHT7z_yh9WzilhcLmWsi48mHFPme3LtLVd3kk5jJHZiW8HVlgbSyf3ZNlWbNcUiyxYcky_pddsiRmiObtV_tSnpRmu2SzwaHmPtzB5WxlZeUZZ-VbGN1NeAmneMGplbohttC3FDigCyQcKuXkMJC0ReLI_1I9mdELETX300MrrS-48CPuFtfN8YhZzgK08Y9kG7YiiGCyebjcNtv9BQ&enc=deflate
   
   ### Steps to Reproduce
   
   
   
   1. Render line series with endLabel.show: true and step: 'end', 
   2.  call setOption with the same series and step: false (with or without 
notMerge: true). The reverse change, false to 'end', fails the same way.
   
   ### Current Behavior
   
   After the update the end labels are no longer drawn at the ends of the 
lines. In a simple chart they disappear. With labelLayout: { moveOverlap: 
'shiftY' } they are drawn at the left edge of the grid, stacked near the top. 
It happens with animation on or off.
   
   ### Expected Behavior
   
   The end labels stay at the last point of each line, as they do when the same 
update leaves step unchanged.
   
   ### Environment
   
   ```markdown
   - OS: Debian
   - Browser: Firefox
   - Framework:
   ```
   
   ### Any additional comments?
   
   Claude found it. 
   
   Call chart.clear() before the setOption that changes step.
   
   Version: 6.1.0 (also 6.0.0 and 5.6.0)
   
   const names = ['A', 'B', 'C'];
   function build(step) {
     return {
       animation: false,
       grid: { right: 60 },
       xAxis: { type: 'value', max: 99 },
       yAxis: { type: 'value', max: 30 },
       series: names.map((name, k) => ({
         type: 'line',
         name,
         step,
         showSymbol: false,
         data: Array.from({ length: 100 }, (_, i) => [
           i,
           8 + k * 7 + Math.sin(i / 8 + k) * 2
         ]),
         endLabel: { show: true, formatter: '{a}' }
       }))
     };
   }
   option = build('end');
   // After 1 s, redraw with only `step` changed: the end labels disappear.
   setTimeout(() => myChart.setOption(build(false), { notMerge: true }), 1000);
   


-- 
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