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/10/17 13:04:03 UTC
[GitHub] [echarts] zangzimi opened a new issue, #17781: [Bug] Custom series api.value returns NaN
zangzimi opened a new issue, #17781:
URL: https://github.com/apache/echarts/issues/17781
### Version
5.4.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsDGBDANgU2gBMsAnALlgG011kbbZgSICwKByANzxMmx3YAaerQx4cOAMoQAXngqUArAAZBsRQEYAusIboSWaAHN5VdgCZl58wFoNy9jpHoZFc7r3MjACzaxoAK4SHgwARsBgYMAAthSBEiIAvjRO6ADOPCxpCiKoerBgAJ4gpuwYAWlR0ULOmMBMhBDQWGB4koWVeLGwZbgExCQ1-cRgWDn56JQWVrb2dg5qqj0a5gB05o5qAPRbsBAAZnXR0awF3hBpsDhNeGoQYLAA7kwA1mm1k9PW83YaQrAaNTsLChDCbD5mSzfOYaP5qdw9AAehRkjlqqU8_R4AElWt0ABQgUhYaJpNRYEAQACUCAAfHQJnVoJVYIiELAKRBVpxcAE8PiNDT4MLYMpYAB-WCWWAUTnc3n8wUIEUaCUA6VuSwAbghGBgLMK7IAzCodYy9cyHs0Tuy5TycHz8eYqWaJhaWSQ8BgHog8oyCsVSp7vUN_WlvBTTH7_ayKIiQv7ChRCgnGY8IIQwN43MpVBCGN48BAfH4NCp87BEqm9JVCvgKNH_fsIBIONAYHh2BWqxXWoiwABhGCtaB-RuM2v1hkx2h9vzWvAV9DJGMriaJV35T1gAIkODBsCb2hr5cpFAboA
### Steps to Reproduce
See the above demo. When the first data (e.g. `'12.2'`) is number-like, the following data returns `NaN`.
### Current Behavior
`api.value(2)` returns `NaN` for `['2022-10-11', 1, 'abc']` and `['2022-10-11', 2, 'xyz']`.
### Expected Behavior
`api.value(2)` returns `'abc'` and `'xyz'` for `['2022-10-11', 1, 'abc']` and `['2022-10-11', 2, 'xyz']`.
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
NA
--
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] lemonNoIce commented on issue #17781: [Bug] Custom series api.value returns NaN
Posted by GitBox <gi...@apache.org>.
lemonNoIce commented on issue #17781:
URL: https://github.com/apache/echarts/issues/17781#issuecomment-1290269007
> You can use `dimensions: [null, null, {type: 'ordinal'}]` to mannually ignore the auto-detecting of one dimension. I will further check this case.
Solved my problem, thanks !
--
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] Ovilia closed issue #17781: [Bug] Custom series api.value returns NaN
Posted by GitBox <gi...@apache.org>.
Ovilia closed issue #17781: [Bug] Custom series api.value returns NaN
URL: https://github.com/apache/echarts/issues/17781
--
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] Ovilia commented on issue #17781: [Bug] Custom series api.value returns NaN
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #17781:
URL: https://github.com/apache/echarts/issues/17781#issuecomment-1281855777
You can use `dimensions: [null, null, {type: 'ordinal'}]` to mannually ignore the auto-detecting of one dimension. I will further check this case.
--
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] Ovilia commented on issue #17781: [Bug] Custom series api.value returns NaN
Posted by GitBox <gi...@apache.org>.
Ovilia commented on issue #17781:
URL: https://github.com/apache/echarts/issues/17781#issuecomment-1292929027
After some research, I found that currently, if any of the first 5 data is guessed to be a number (e.g., `12.3`), the whole column is set to be in number type. We decide to keep this logic and developers are always encouraged to set the type of `dimensions`.
--
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