yqtian-se opened a new issue, #21856:
URL: https://github.com/apache/echarts/issues/21856

   ### Version
   6.1.0 (also current `master` 34f4d927e, and 5.5.1)
   
   ### Link to Minimal Reproduction
   
https://echarts.apache.org/examples/en/editor.html?code=jY_BSsQwFEX3_Yq7kbZYnCqKkKED8w26E5HYvGkDaVJeUphS-u--VmfvLnkn9-a8NviY4NHgpa6POBxwamDooieX4DR39N4zxT44g-K5rsssjMmGLbBkwBjkjcKyVnLRvnN0vtooAwz6qvBYYyesjZ3iDaV5JIW81Ym6wHNeweikFc7Men64cBiKBY58l3olamuF4quCLdGcJJXjfjvvvZHYknR-bC64FX9rzjcKtCGwsV4-eptjokHgbvyH9_0UEk_0O_i_x5NYFBZ3eC1Lia6f2Xr8AQ&enc=deflate
   
   ```js
   const n = 500; // >= default largeThreshold (400)
   option = {
     polar: {},
     angleAxis: { max: 10 },
     radiusAxis: { type: 'category', data: Array.from({ length: n }, (_, i) => 
'c' + i) },
     series: [{
       type: 'bar',
       coordinateSystem: 'polar',
       large: true,
       data: Array.from({ length: n }, (_, i) => 2 + (i % 7))
     }]
   };
   ```
   
   ### Steps to Reproduce
   1. Create a bar series on a polar coordinate system with `large: true` and 
at least `largeThreshold` (default 400) data items.
      (Smaller version: 2 items with `largeThreshold: 2`.)
   
   ### Current Behavior
   Rendering throws `TypeError: Cannot read properties of undefined (reading 
'length')` at `LargePath.buildPath`, and nothing is drawn.
   
   ### Expected Behavior
   No error. Large mode is only implemented for cartesian2d, so a polar bar 
series should fall back to normal rendering
   (or large mode should be supported on polar).
   
   ### Environment
   - OS: any (also reproduced with the SVG renderer in Node.js SSR)
   - Browser: any
   - Framework: none
   
   ### Any additional comments?
   Cause: `BarSeries.__preparePipelineContext` turns large mode on regardless 
of the coordinate system, so `BarView` renders with `createLarge`
   ("TODO support polar"). But the large layout (`createProgressiveLayout` in 
`layout/barGrid.ts`) returns early for anything other than
   cartesian2d, so `largePoints` is never set and `LargePath.buildPath` reads 
`undefined.length`. The same applies to progressive rendering
   on canvas, which also forces large mode. I can send a PR that falls back to 
normal mode for non-cartesian2d bar series.
   


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