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

   ### Version
   
   5.5.1
   
   ### Link to Minimal Reproduction
   
   https://echarts.apache.org/examples/zh/editor.html?c=candlestick-brush
   
   ### Steps to Reproduce
   
   
![Image](https://github.com/user-attachments/assets/5a339e74-8f84-4d57-8ec0-67779e8bbc14)
   下面是关于bar的option:
   `xAxis: [
               {
                   type: "category",
                   data: [],
                   boundaryGap: true,
                   gridIndex: 0,
               },
               {
                 //成交量
                 type: "category",
                 data: [],
                 boundaryGap: true,
                 axisTick: { show: false },
                 splitLine: { show: false },
                 axisLabel: { show: false },
                 gridIndex: 1,
               },
               {
                   type: "category",
                   data: [],
                   boundaryGap: true,
                   axisTick: { show: false },
                   splitLine: { show: false },
                   axisLabel: { show: false },
                   gridIndex: 2,
               },
           ],
           yAxis: [
               {
                   scale: true,
                   axisLine: { onZero: false },
                   position: "left",
                   gridIndex: 0,
                   splitLine: {
                       show: false,
                       lineStyle: {
                           type: "dashed",
                       },
                   },
                   min: "dataMin",
                   max: "dataMax",
                   axisLabel: { show: false },
               },
               {
                 //成交量
                 scale:  true,
                 axisLine: { onZero: false},
                 position: 'left',
                 gridIndex:  1,
                 splitLine: { show: false},
                 axisLabel:  { show: false},
                 min: "dataMin",
                 max: "dataMax"
               },
               {
                   scale: true,
                   axisLine: { onZero: false },
                   position: "left",
                   gridIndex: 2,
                   splitLine: {
                       show: false,
                       lineStyle: {
                           type: "dashed",
                       },
                   },
                   axisLabel: { show: false },
               },
           ],
           dataZoom: [
               { type: "inside", xAxisIndex: [0, 1, 2], start: 70, end: 100 },
               {
                   type: "slider",
                   xAxisIndex: [0, 1, 2],
                   start: 70,
                   end: 100,
                   top: "97.5%",
               },
           ],
   visualMap: {
               show: false,
               seriesIndex: 9, // 成交量系列索引
               dimension: 0,   // 使用数据的第一维度
               pieces: [
                   {gte: 0, lte: Infinity, color: '#ef232a'}, // 涨
                   {gt: -Infinity, lt: 0, color: '#14b143'}   // 跌
               ],
           },
           graphic: [
           {
               type: 'line',
               id: 'dynamic-vertical-line',
               shape: {
                   x1: 0,
                   y1: 0,
                   x2: 0,
                   y2: 0
               },
               style: {
                   stroke: 'rgb(0,253,165)',
                   lineWidth: 1,
                   lineDash: [5, 5]
               },
               z: 100
           },
           {
               type: 'line',
               id: 'left8-vertical-line',
               shape: {
                   x1: 0,
                   y1: 0,
                   x2: 0,
                   y2: 0
               },
               style: {
                   stroke: 'rgba(255,165,0,0.8)', // 橙色
                   lineWidth: 1,
                   lineDash: [5, 5]
               },
               z: 100
           }
       ],`
   
   ### Current Behavior
   
   
当缩放窗口时,成交量的显示出现了异常:30亿的bar与同窗口的50亿的bar相比较,应该是等比例低一些,现在却是相反的情况!另外,图片中bar显示几乎为0的,却是应该是11亿的bar。
   
   ### Expected Behavior
   
   
不管程序预加载了多少的数据,不管鼠标滚轮进行了多大比例的缩放(即同样窗口内bar的数量或多或少),当前窗口内bars显示的时候,应该等比例缩放。比如当前窗口显示成交量的范围是[11,
 60],那么最低值的bar可以是窗口的10%高度,最高的bar是窗口的100%。下一次缩放的时候窗口的成交量的范围是[5, 35]。其显示逻辑也是上面的要求。
   
   ### Environment
   
   ```markdown
   - OS:win11
   - Browser: chrome
   - 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: [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