You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "princ09 (via GitHub)" <gi...@apache.org> on 2024/07/08 12:42:04 UTC
[I] [Bug] Disable Zoom out but have zoom in [echarts]
princ09 opened a new issue, #20132:
URL: https://github.com/apache/echarts/issues/20132
### Version
5.5
### Link to Minimal Reproduction
https://echarts.apache.org/examples/en/editor.html?c=treemap-simple&code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5GDllgLYCGITANFQoATLmC7Ey1aqilToXDo1hNowIVgCC_QbIBuXADYBXJQEYADANnUAxgAsIBoW2gSd1mddnzFzVeo0ubS89QxNiABZ3WQBfKxD0TwT0HyUVNU0AI2Dk9H1jJQA2aKkYkvQAXRK4kqTrVL8MgCEcr3zw2AAmS3LYe0dnLFdSXsTRigblfywmoPjc9qVu-eT-pxc3XOlx7wU06dnTVq28sKXzHYoyk6rc65Db63vqCpX0DBtDLAAZCA4IMDEOrUf7DCw9LzcAAexAArOYLrE3rADFxMlgDECSgAzYA4bhgMC4YjYozQGyQGCwAAUAEpKAk2GAjDg4AADJB_ADmAB8YrBLtJUjyAEoAUW-AEkNAA5ADCYv5gooSGxEBwGDAADUzjyAMx8bqmAB0AA5zEqTtJsDYYEIdQUeeZjQB2F0AUhibPGNS8eHsWNy3MDW0yXBsAGsuThgGShHLgAY8SGTn8uFy0nZCSAiAB6XMYPUAWgwtA4mUTRaTXOAxtYXCEEGgXN0-AA7sbbRxc2wDBAuOSsEWm0IjJq8IZh9BsTguOOjBSWVhjRhdFzjglfVs7FgIFys8RwcivG2IEIwHZDwjj9YKzh1DgRQ2IGO4RCtoY98MmDYhkScBuTw3tQkzAiEn5ct-v7QP-gFeLiMEAMoQAAXksETAVItpJjgzAAMQAGJEXB1hElCYAACqztAGC4vizBGCADA4J82BMD6mHoGqGramcKbJBBUF_rgJGyAhYDIWhxDLJc2HJugTCEcRnEUGRlHUbReIcAxTG4KxWDsXcKk2naDodGBXiCcw0GwSpXEwBJqFmKadl9Im8mKURBGiVIalUQOmn0cojHMfphnJFuXiRdY
VnKDZImYbouCQJ8BgaH2kHMP8QhCAYBnIs8sD3FUMQANxAA
### Steps to Reproduce
Run the link or check below code
option = {
series: [
{
type: 'treemap',
data: [
{
name: 'nodeA',
value: 10,
children: [
{
name: 'nodeAa',
value: 4
},
{
name: 'nodeAb',
value: 6
}
]
},
{
name: 'nodeB',
value: 20,
children: [
{
name: 'nodeBa',
value: 20,
children: [
{
name: 'nodeBa1',
value: 20
}
]
}
]
}
],
scaleLimit: {
min: 100,
max: 500
},
label: {
formatter: function () {
return `{img|}
{name|RELIANCE}
{firstValue|3,201.80}
{secondValue|0.77%}`
},
rich: {
img: {
backgroundColor: {
image: 'https://s3-symbol-logo.tradingview.com/reliance-industrial-infrastructure.svg',
},
height: 100,
width: 100,
borderRadius: 50,
align: 'center',
},
name: {
align: 'center',
fontSize: 24,
color: '#FFF',
textTransform: 'uppercase'
},
firstValue: {
align: 'center',
fontSize: 20,
color: '#FFF',
textTransform: 'uppercase'
},
secondValue: {
align: 'center',
fontSize: 18,
color: '#FFF',
textTransform: 'uppercase'
},
},
align: 'center',
verticalAlign: 'middle',
}
}
]
};
### Current Behavior
I would like to disable the zoom out so that user cannot zoom out and see the white spaces around the treemap.
for this I set min value of scaleLimit to 100, expecting that it will be always 100 and wont zoom out further.
But it's not working and I am getting unexpected zoom.
### Expected Behavior
Ideally It shouldn't zoom out and just zoom in till 500.
### Environment
```markdown
- OS:
- Browser:
- 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: 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] Disable Zoom out but have zoom in [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20132:
URL: https://github.com/apache/echarts/issues/20132#issuecomment-2218284615
**max** should be 1 to disable zoom-in (not _min_).
--
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] Disable Zoom out but have zoom in [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20132:
URL: https://github.com/apache/echarts/issues/20132#issuecomment-4929745705
This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.
--
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] Disable Zoom out but have zoom in [echarts]
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #20132:
URL: https://github.com/apache/echarts/issues/20132#issuecomment-2215270856
> I set min value of scaleLimit to 100
This value is too high. Value of 1 is like 100%, so try ```scaleLimit: { max: 1.5, min: 0.5 }``` - [Demo](https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWsDOBTAThLGAXLANprrLkWxgCeIWxA5GDllgLYCGITANFQoATLmC7Ey1aqilToXDo1hNowIVgCC_QbIBuXADYBXJQEYADANnUAxgAsIBoW2gSd1mddnzFzVeo0ubS89QxNiABZ3WQBfKxD0TwT0HyUVNU0AI2Dk9H1jJQA2aKkYkvQAXRK4kqTrVL8MgCEcr3zw2AAmS3LYe0dnLFdSXsTRigblfywmoPjc9qVu-eT-pxc3XOlx7wU06dnTVq28sKXzHYoyk6rc65Db63vqCpX0HGAFYlYTN8wbQxYAAyEA4EDAxCQsG4AA9iKYAHQAVj40Igw3MyNgNVkBi4mSwBkhJQAZsAcNwwGBcIRekwkKCAOYAHxiiVSzIASgBRIEASQ0ADkAMLctnIEkQHAYMAANTOzIAzHxuoiABzmcVIbA2GBCeUFZmYgDsxoApDFjtQ8PZiQkmXbkpkuDYANaMj5GaBCYXAAzkx25UFcRmMS7oJh2KkgIgAeljGEVAFoMLQOJk_Un_YzgAjWFwhOjGbp8AB3BG6jixtgGCBcaA2LBJ9FCIwyvCGZvQEk4Ljtow2MBGNgIjC6RlMcY45J2LAQRlR-HmHq5UsQIRgOxLldO8nqHCcgsQNvEJE7hKGefDJiN6DUnCThLTryTOpeS-M6-3-9W6xku8AMoQAAXksER_LIur-jgzAAMQAGKIb-sjUjCYAACq9tAGBkhSzBGCADA4AC2CPiEz5_lKMoGh0b7WB-X5DD-EFSP-YBAaBxDLOMUEBsoCFISx1CoRhWE4eSHD4YRuAkVgZFeBRsg6nqNFKH
RsgMcw364MhrEwOxIFmGqQkULxMH8Yh8G6cJWBoZh9biXhygEURsnyU81QsZpyjaQ-LG6LgkAAgYGi1p-zBgkIQgGHJ7jPNi5BVDEADcQA).
--
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] Disable Zoom out but have zoom in [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #20132: [Bug] Disable Zoom out but have zoom in
URL: https://github.com/apache/echarts/issues/20132
--
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] Disable Zoom out but have zoom in [echarts]
Posted by "princ09 (via GitHub)" <gi...@apache.org>.
princ09 commented on issue #20132:
URL: https://github.com/apache/echarts/issues/20132#issuecomment-2216435551
Still, if we set 1 in min ( considering its minimum zoom) ideally this shouldn't zoom in at all. But here it's getting zoomed in.
The original issue is , if someone wants to disable the zoom in then how can they do it?
--
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] Disable Zoom out but have zoom in [echarts]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #20132:
URL: https://github.com/apache/echarts/issues/20132#issuecomment-5007560395
This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. 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