You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "flybbjcs70 (via GitHub)" <gi...@apache.org> on 2026/08/07 06:07:37 UTC
[I] [Bug] visualMap categories 包含大整数字符串时被错误转换为 Number 导致散点颜色不显示 [echarts]
flybbjcs70 opened a new issue, #21714:
URL: https://github.com/apache/echarts/issues/21714
### Version
6.1.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=fVDLDoIwELz7FZt46IWYCmgR48EP8OLVcKi4mCZICa1aYvx3F4X4CNjDppnOdGZHl1bpAlZwGwG4tVMmhh1d4Qk0x9YlxsBSafGoq5p5LX6QVhKXOedY8sTuNJPmuf7zz0XmZ2TffIOVwiGBIWeL1a_vy9iDKJj4URROQw_YnM8C7vsLHog5j2jMBEt-sl2UOct8I8sBu1Jhildl8G2oTlgYaikGv8NUsZXFkfidGiDVua6aQsbTTIh9SNnYOMtExrHth1J0-rbN19a9uXvXWXw2PbovHw&enc=deflate
### Steps to Reproduce
```code
option = {
xAxis: [
{
type: 'category',
data: ['xxx']
}
],
yAxis: [
{
type: 'value'
}
],
series: [
{
type: 'scatter',
data: [['xxx', 83.288414, '6053022903760837657']]
}
],
visualMap: [
{
type: 'piecewise',
dimension: 2,
inRange: {
color: ['#1f77b4', '#ff7f0e']
},
categories: ['6053022903760837657', '6053022903760837659'] // 被当作数值型导致溢出,改小点就会显示
}
]
};
```
### Current Behavior
散点不显示
### Expected Behavior
散点显示
### Environment
```markdown
- OS:window 11
- Browser: chrome 150
- Framework:echarts 6.1.0
```
### 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: 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
Re: [I] [Bug] visualMap categories 包含大整数字符串时被错误转换为 Number 导致散点颜色不显示 [echarts]
Posted by "Raman-Katiyar (via GitHub) via commits" <co...@echarts.apache.org>.
Raman-Katiyar commented on issue #21714:
URL: https://github.com/apache/echarts/issues/21714#issuecomment-6663370676
Hi @plainheart, I opened #21715 with a root-cause fix for this issue shortly after it was closed, and I wanted to check whether a code fix is still wanted here. The fix keeps the raw string type for categories in applyVisual, so large-integer string categories do not lose precision and users do not need to set series.dimensions explicitly as in the workaround above. If you would like this fixed in code, I am happy to rebase the PR, add a unit test, and request a workflow run. If the workaround is considered sufficient, I will close the PR instead. Thank you!
--
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
Re: [I] [Bug] visualMap categories 包含大整数字符串时被错误转换为 Number 导致散点颜色不显示 [echarts]
Posted by "flybbjcs70 (via GitHub)" <gi...@apache.org>.
flybbjcs70 commented on issue #21714:
URL: https://github.com/apache/echarts/issues/21714#issuecomment-5224833603
感谢
--
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
Re: [I] [Bug] visualMap categories 包含大整数字符串时被错误转换为 Number 导致散点颜色不显示 [echarts]
Posted by "plainheart (via GitHub)" <gi...@apache.org>.
plainheart commented on issue #21714:
URL: https://github.com/apache/echarts/issues/21714#issuecomment-5216149610
可以尝试通过 [`series.dimensions`](https://echarts.apache.org/option.html#series-scatter.dimensions) 显式设置最后一个维度为类目文本。[Demo](https://echarts.apache.org/examples/editor.html?c=line-simple&code=tZLNTsJAEMfvPsUkHvZCtAJaxHjwAbx4NRwqLmaT2pK2aInhoMbgF_Hit4STIYQAasAE-XyZ7hZPvoJLaUURvLmHzWZ2Zn4z-f_VuEFUBZZhbwrAXDGJHoZ1_gQn0D9GMo7DgKKSgbdULYl8bnxTMiSei0zTRBEnluJ3pP-d_KPPjiQnMPqZr2ON4EkFOicbWBvlDsA-CAVm_KFQcC7oA7QgzAcEv39RCIgLQohf8yKKOASnkGxjRefbfpEcmsdRtU2iSDKClA9mZ8GEXrsGzrRgvzRp7gxo_oDlsqz8aDdrtJG36hl2WLWbdzTdoJV76-3ko3VOj--sdte-LICSkGWgmSq9ePoNUxLbG3wnl5X8V9ZwsT6L3XZo64Kdp3kbu1Sy6idWvehBGpxuP1TYdZplS_C-36VHmV66SE8LVifPXs94Brt6puUblzKi-w7RE5K8KsUnSBknOIp3iY6HYnqahMHvxYiyJilbPN-rBoiqsqr1zTY9FxPFjSDXHU3HYmJMwK73-BRevevUgaPGemKsVRa_u3gqtfQJ&enc=deflate)
--
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
Re: [I] [Bug] visualMap categories 包含大整数字符串时被错误转换为 Number 导致散点颜色不显示 [echarts]
Posted by "flybbjcs70 (via GitHub)" <gi...@apache.org>.
flybbjcs70 closed issue #21714: [Bug] visualMap categories 包含大整数字符串时被错误转换为 Number 导致散点颜色不显示
URL: https://github.com/apache/echarts/issues/21714
--
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