You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/06/16 11:21:20 UTC

[GitHub] [echarts] ragnaroks opened a new issue, #17228: [Bug] if candlestick with slider zoom, charts's dataset secend dimension must be "open"

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

   ### Version
   
   5.3.3
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/optimistic-zhukovsky-j1bbn2?file=/src/index.js
   
   ### Steps to Reproduce
   
   just open the [link](https://codesandbox.io/s/optimistic-zhukovsky-j1bbn2?file=/src/index.js) then will get **2 error**, both are `Cannot read properties of undefined (reading '0')`
   
   but if change the dataset's **open1** to **open**, and change the dimensions's **open1** to **open**, the slider zoom component will render and no error.
   
   ### Current Behavior
   
   if secend dimension is not **open**, the slider zoom component not render and throw errors
   
   ### Expected Behavior
   
   render zoom component render with any key of secend dimension
   
   ### Environment
   
   ```markdown
   - OS: Windows 10.0.19041
   - Browser: Chrome 102.0.5005.115
   - Framework: NEXT.js
   ```
   
   
   ### Any additional comments?
   
   this will throw errors
   ```js
   const dataList = [
     { date: "2017-10-24", open1: 20, close2: 34, low3: 10, high4: 38 },
     { date: "2017-10-25", open1: 40, close2: 35, low3: 30, high4: 50 },
     { date: "2017-10-26", open1: 31, close2: 38, low3: 33, high4: 44 },
     { date: "2017-10-27", open1: 38, close2: 15, low3: 5, high4: 42 }
   ];
   
   const option = {
     xAxis: [{ type: "category" }],
     yAxis: [{ type: "value" }],
     series: [{ type: "candlestick" }],
     dataset: {
       name: "K Line",
       source: dataList,
       dimensions: ["date", "open1", "close2", "low3", "high4"]
     },
     dataZoom: [{ type: "slider", xAxisIndex: 0, filterMode: "filter" }]
   };
   ```
   ****
   but this will render success
   ```js
   const dataList = [
     { date: "2017-10-24", open: 20, close2: 34, low3: 10, high4: 38 },
     { date: "2017-10-25", open: 40, close2: 35, low3: 30, high4: 50 },
     { date: "2017-10-26", open: 31, close2: 38, low3: 33, high4: 44 },
     { date: "2017-10-27", open: 38, close2: 15, low3: 5, high4: 42 }
   ];
   
   const option = {
     xAxis: [{ type: "category" }],
     yAxis: [{ type: "value" }],
     series: [{ type: "candlestick" }],
     dataset: {
       name: "K Line",
       source: dataList,
       dimensions: ["date", "open", "close2", "low3", "high4"]
     },
     dataZoom: [{ type: "slider", xAxisIndex: 0, filterMode: "filter" }]
   };
   ```


-- 
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: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] ragnaroks closed issue #17228: [Bug] if candlestick with slider zoom, charts's dataset secend dimension must be "open"

Posted by GitBox <gi...@apache.org>.
ragnaroks closed issue #17228: [Bug] if candlestick with slider zoom, charts's dataset secend dimension must be "open"
URL: https://github.com/apache/echarts/issues/17228


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org


[GitHub] [echarts] jiawulin001 commented on issue #17228: [Bug] if candlestick with slider zoom, charts's dataset secend dimension must be "open"

Posted by GitBox <gi...@apache.org>.
jiawulin001 commented on issue #17228:
URL: https://github.com/apache/echarts/issues/17228#issuecomment-1158449139

   It's a problem with `sliderZoom` component, submitting a PR to solve this


-- 
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: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org