You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "Oracimaru (via GitHub)" <gi...@apache.org> on 2023/04/13 01:29:07 UTC
[GitHub] [echarts] Oracimaru opened a new issue, #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Oracimaru opened a new issue, #18502:
URL: https://github.com/apache/echarts/issues/18502
### Version
5.3.2
### Link to Minimal Reproduction
none
### Steps to Reproduce
dataZoom: [{
type: 'inside',
zoomLock: true,
xAxisIndex: [0],
start: 0,
end: 6,
maxSpan: 6,
mixSpan: 6,
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2.2,0,4,1.8,4,4V413z',
handleSize: '110%',
handleStyle: {color: "#d3dee5"},
textStyle: {color: "#0199FF"},
borderColor: "#90979c",
height: 30,
bottom: 10,
},
{
start: 0,
end: 20,
}
],
### Current Behavior
在5.3.2版本滑块配置zoomLock和maxSpan后依据能被拉伸缩小,比4.x版本更严重,如何设置固定宽度,禁止缩放和拉伸

### Expected Behavior
希望x轴滑块固定宽度,禁止缩放和拉伸
### 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
[GitHub] [echarts] Oracimaru closed issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Oracimaru (via GitHub)" <gi...@apache.org>.
Oracimaru closed issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
URL: https://github.com/apache/echarts/issues/18502
--
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] Oracimaru commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Oracimaru (via GitHub)" <gi...@apache.org>.
Oracimaru commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1588674065
> turn off [brushSelect](https://echarts.apache.org/zh/option.html#dataZoom-slider.brushSelect)
ok,it works,thx.
--
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] Oracimaru commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Oracimaru (via GitHub)" <gi...@apache.org>.
Oracimaru commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1506270253
> ok, I see it now. The zoom scroll window could be stretched or shortened if mouse is clicked and dragged inside (with cross ✚ pointer). Does **not** happen when using both side-handles or upper bar (with left-right arrow <-> pointer). Noticed also that the bug affects the scroll window **visualization** only, the zoom range remains correct.
is there any property to avoid this inside dragged,it is so easy to trigger,but I want this fixed-width to slide.
--
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] helgasoft commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1507359868
> is there any property to avoid this inside drag
could not find any. _shadowOffsetY_ was promising, but it's hard-coded not to go lower than the middle of zoom window.
So the user can still click the bottom of the zoom window and drag/stretch.
```
mhandleWidth = 30; // ....
moveHandleSize: mhandleWidth,
moveHandleStyle: {
color: 'red', // transparent
shadowColor: 'green', shadowOffsetY: mhandleWidth,
opacity: 0.5
},
handleStyle: { color: 'blue', borderWidth: 22, borderColor: 'blue'},
handleSize: '120%',
```
As a last resort, ask users to use the (big) handles...
--
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] helgasoft commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1561857704
My Demo Code has already ```zoomLock: true```- it does not help or it does not work.
--
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] echarts-bot[bot] commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "echarts-bot[bot] (via GitHub)" <gi...@apache.org>.
echarts-bot[bot] commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1506184838
@Oracimaru It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
<details><summary><b>TRANSLATED</b></summary><br>
**TITLE**
[Bug] datazoom configures how the scroll bar disables zooming, can only pan scrolling, fixed scroll bar width
**BODY**
### Version
5.3.2
### Link to Minimal Reproduction
none
### Steps to Reproduce
dataZoom: [{
type: 'inside',
zoomLock: true,
xAxisIndex: [0],
start: 0,
end: 6,
maxSpan: 6,
mixSpan: 6,
handleIcon: 'path://M306.1,413c0,2.2-1.8,4-4,4h-59.8c-2.2,0-4-1.8-4-4V200.8c0-2.2,1.8-4,4-4h59.8c2 .2,0,4,1.8,4,4V413z',
handleSize: '110%',
handleStyle: {color: "#d3dee5"},
textStyle: {color: "#0199FF"},
borderColor: "#90979c",
height: 30,
bottom: 10,
},
{
start: 0,
end: 20,
}
],
### Current Behavior
After the slider is configured with zoomLock and maxSpan in version 5.3.2, the basis can be stretched and reduced, which is more serious than version 4.x. How to set a fixed width and prohibit zooming and stretching

### Expected Behavior
I want the x-axis slider to have a fixed width and prohibit scaling and stretching
### Environment
```markdown
- OS:
-Browser:
- Framework:
```
### Any additional comments?
_No response_
</details>
--
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] Airkro commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Airkro (via GitHub)" <gi...@apache.org>.
Airkro commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1560861504
https://echarts.apache.org/zh/option.html#dataZoom-slider.zoomLock
--
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] helgasoft commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1506230117
not-a-bug
Check syntax - it's _minSpan_, not _mixSpan_. Also there is a second (redundant?) dataZoom in the code.
[Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MpxdiRtJEJgjABawMAAtmJx7gkA9Iud3rS9eBACyu2kAF5T0wAywPQA1kRgHEq76NOMGCYgjNBE2U23sNO9Ty9vH3F0HgxhwwERMoDYFRoAIiLkAQlYNoXgJ_FQTBQ0W5YPRgP5OHQAMQCXLbKipWiwByQlgYMAY8hY5A4vEE2SE9LJACcXP0-kp1MRACNONsOABhVkcIlc9Jc-pc-i8SHaKgQVjaMGwfKfEVgMAzIjJdIDIYoOwAbiAA) works as expected.
--
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] Oracimaru commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Oracimaru (via GitHub)" <gi...@apache.org>.
Oracimaru commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1508245225
> > is there any property to avoid this inside drag
>
> could not find any. _shadowOffsetY_ was promising, but it's hard-coded not to go lower than the middle of zoom window. So the user can still click the bottom of the zoom window and drag/stretch.
>
> ```
> mhandleWidth = 30; // ....
> moveHandleSize: mhandleWidth,
> moveHandleStyle: {
> color: 'red', // transparent
> shadowColor: 'green', shadowOffsetY: mhandleWidth,
> opacity: 0.5
> },
> handleStyle: { color: 'blue', borderWidth: 22, borderColor: 'blue'},
> handleSize: '120%',
> ```
>
> As a last resort, ask users to use the (big) handles...
ok,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] Oracimaru commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Oracimaru (via GitHub)" <gi...@apache.org>.
Oracimaru commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1506248096
> not-a-bug Check syntax - it's _minSpan_, not _mixSpan_. Also there is a second (redundant?) dataZoom in the code.
>
> [Demo Code](https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AMYCGYVA5sAE7m0A0J6AE2aMiAbVoBZGL1i0AKgFcqM2gHUqAlXIAWClQDEOEFQGVmphdFoBdEgF8-6cjnxFUpMpRqyAbowA2SrT2jrB4VEZUhLCi_MQegsJiAIwArAAMPLAATADMmTnZACxZ2ckAHFnJualVRQDspQBs6dahHhTUdP4Q0MpxdiRtJEJgjABawMAAtmJx7gkA9Iud3rS9eBACyu2kAF5T0wAywPQA1kRgHEq76NOMGCYgjNBE2U23sNO9Ty9vH3F0HgxhwwERMoDYFRoAIiLkAQlYNoXgJ_FQTBQ0W5YPRgP5OHQAMQCXLbKipWiwByQlgYMAY8hY5A4vEE2SE9LJACcXP0-kp1MRACNONsOABhVkcIlc9Jc-pc-i8SHaKgQVjaMGwfKfEVgMAzIjJdIDIYoOwAbiAA) works as expected.


try fix mixSpan to minSpan,and delete second redundant,still can't fixed scroll bar width.
--
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] helgasoft commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1506265392
ok, I see it now.
The zoom scroll window could be stretched or shortened if mouse is clicked and dragged inside (with cross ✚ pointer).
Does **not** happen when using both side-handles or upper bar (with left-right arrow <-> pointer).
Noticed also that the bug affects the scroll window **visualization** only, the zoom range remains correct.
--
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] Airkro commented on issue #18502: [Bug] datazoom配置滚动条如何禁用缩放,只能平移滚动,固定滚动条宽度
Posted by "Airkro (via GitHub)" <gi...@apache.org>.
Airkro commented on issue #18502:
URL: https://github.com/apache/echarts/issues/18502#issuecomment-1562125614
turn off [brushSelect](https://echarts.apache.org/zh/option.html#dataZoom-slider.brushSelect)
--
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