nieyuyao commented on issue #16925:
URL: https://github.com/apache/echarts/issues/16925#issuecomment-1825228938

   I debugged the code to got the points that are drawn to the canvas.
   
   ```javascript
   const canvas = document.getElementById('canvas')
   const ctx = canvas.getContext('2d')
   const points = [
       [300, 300],
       [196.0769515458674, 239.99999999999994],
       [300, 300],
       [299.99999999999994, 390],
       [403.92304845413264, 360.0000],
       [300, 300],
       [300, 300],
   ]
   
   ctx.beginPath()
   ctx.moveTo(points[0][0], points[0][1])
   ctx.lineTo(points[1][0], points[1][1])
   ctx.lineTo(points[2][0], points[2][1])
   ctx.lineTo(points[3][0], points[3][1])
   ctx.lineTo(points[4][0], points[4][1])
   ctx.lineTo(points[5][0], points[5][1])
   ctx.lineTo(points[6][0], points[6][1])
   ctx.closePath()
   
   ctx.fillStyle = 'red'
   
   ctx.fill()
   ```
   **In Chrome**
   
   <img width="200" alt="image" 
src="https://github.com/apache/echarts/assets/17698194/c64d8080-b7d2-4c6b-afae-29f432558b82";>
   
   **In FireFox**
   
   <img width="200" alt="image" 
src="https://github.com/apache/echarts/assets/17698194/f403b221-e9d3-42a3-a4e9-6f7896ba6b0e";>
   
   **In Safari**
   <img width="220" alt="image" 
src="https://github.com/apache/echarts/assets/17698194/764f7e4f-6cb3-4a9c-9d12-10a4d361440f";>
   
   It does seem to be a Chrome bug?
   
   


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