We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
5.3.3
https://codesandbox.io/s/optimistic-zhukovsky-j1bbn2?file=/src/index.js
just open the link then will get 2 error, both are Cannot read properties of undefined (reading '0')
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.
if secend dimension is not open, the slider zoom component not render and throw errors
render zoom component render with any key of secend dimension
- OS: Windows 10.0.19041 - Browser: Chrome 102.0.5005.115 - Framework: NEXT.js
this will throw errors
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
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" }] };
The text was updated successfully, but these errors were encountered:
It's a problem with sliderZoom component, submitting a PR to solve this
sliderZoom
Sorry, something went wrong.
No branches or pull requests
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 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
Any additional comments?
this will throw errors
but this will render success
The text was updated successfully, but these errors were encountered: