You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "qiuqiang (via GitHub)" <gi...@apache.org> on 2023/04/15 10:59:52 UTC
[GitHub] [echarts] qiuqiang opened a new issue, #18515: [Bug] set maxSpan 20 of dataZoom and yAxis does‘t show all axisLabel
qiuqiang opened a new issue, #18515:
URL: https://github.com/apache/echarts/issues/18515
### Version
5.3.0
### Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple
### Steps to Reproduce
1 . set option `option = {
color: [
'rgb(112, 192, 224)',
'rgb(0, 144, 192)',
'rgb(184, 221, 34)',
'rgb(248, 136, 32)'
],
dataZoom: [
{
end: 100.0,
maxSpan: 20.0,
moveOnMouseWheel: true,
realtime: true,
start: 0.0,
throttle: 0.0,
type: 'inside',
xAxisIndex: 0,
yAxisIndex: 0,
zoomOnMouseWheel: true
}
],
grid: { bottom: '15%', left: '15%', right: '15%', show: true, top: '10%' },
series: [
{
emphasis: { itemStyle: { color: '#47602C' } },
label: {
color: 'white',
fontSize: 9.0,
position: 'insideTop',
show: true,
useFormatter: true
},
yAxisIndex: 0.0,
barWidth: '45%',
data: [
0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 2.0, 0.0, 2.0, 4.0, 0.0, 0.0, 1.0,
0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0,
0.0, 0.0, 0.0, 0.0, 2.0, 1.0, 9.0
],
stack: 'Ad',
type: 'bar'
},
{
emphasis: { itemStyle: { color: '#3B6677' } },
label: {
color: 'white',
fontSize: 9.0,
position: 'insideTop',
show: true,
useFormatter: true
},
yAxisIndex: 0.0,
barWidth: '45%',
data: [
0.0, 0.0, 0.0, 4.0, 0.0, 0.0, 1.0, 0.0, 0.0, 1.0, 2.0, 0.0, 0.0, 1.0,
0.0, 1.0, 0.0, 3.0, 4.0, 0.0, 2.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 0.0, 4.0, 0.0, 1.0, 11.0
],
stack: 'Ad',
type: 'bar'
},
{
emphasis: { itemStyle: { color: '#004C64' } },
label: {
color: 'white',
fontSize: 9.0,
position: 'insideTop',
show: true,
useFormatter: true
},
yAxisIndex: 0.0,
barWidth: '45%',
data: [
2.0, 1.0, 4.0, 16.0, 3.0, 5.0, 3.0, 2.0, 1.0, 1.0, 2.0, 0.0, 2.0, 2.0,
0.0, 4.0, 5.0, 21.0, 12.0, 2.0, 5.0, 1.0, 1.0, 1.0, 0.0, 5.0, 2.0, 8.0,
1.0, 2.0, 0.0, 3.0, 3.0, 1.0, 44.0
],
stack: 'Ad',
type: 'bar'
},
{
emphasis: { itemStyle: { color: '#836937' } },
label: {
color: 'white',
fontSize: 9.0,
position: 'insideTop',
show: true,
useFormatter: true
},
yAxisIndex: 0.0,
barWidth: '45%',
data: [
0.0, 1.0, 6.0, 25.0, 2.0, 6.0, 5.0, 3.0, 4.0, 0.0, 7.0, 1.0, 2.0, 1.0,
2.0, 10.0, 6.0, 16.0, 12.0, 2.0, 3.0, 0.0, 0.0, 2.0, 3.0, 7.0, 0.0, 2.0,
0.0, 2.0, 2.0, 1.0, 1.0, 0.0, 70.0
],
stack: 'Ad',
type: 'bar'
}
],
xAxis: {
axisLabel: { interval: '0', show: true },
axisLine: { lineStyle: { width: 0.5 }, show: true },
axisTick: { show: false },
data: [
'000_s…',
'1111',
'Batte…',
'Batte…',
'Displ…',
'Elect…',
'FshTe…',
'Greec…',
'IVDia…',
'LOL',
'L_Sub…',
'MYC11…',
'PViLo…',
'Peaki…',
'Secur…',
'Share',
'Solar…',
'StaEl…',
'Stagg…',
'SyncD…',
'Video',
'delte…',
'disco…',
'displ…',
'ghhv3',
'hisda…',
'huzkV…',
'lcjTe…',
'modif…',
'more_…',
'name_…',
'syhj_…',
'yjSOH',
'yjp',
'\u5176\u4ed6'
],
splitLine: { lineStyle: { type: 'dashed' }, show: true },
type: 'category'
},
yAxis: [
{
axisLabel: { fontSize: 11.0, show: true, useFormatter: true },
interval: 40.0,
max: 160.0,
min: 0.0,
splitLine: { lineStyle: { type: 'dashed' }, show: true },
type: 'value'
}
]
};
`
### Current Behavior
what i want : just show 4 axisLabel of xAxis one screen when the xAxis has too many datas:

but when i set maxSpan the yAxis does‘t show all axisLabel

### Expected Behavior
show all axisLabel of yAxis
### Environment
```markdown
- OS:Windows
- Browser:Chrome
- 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] qiuqiang closed issue #18515: [Bug] set maxSpan 20 of dataZoom and yAxis does‘t show all axisLabel
Posted by "qiuqiang (via GitHub)" <gi...@apache.org>.
qiuqiang closed issue #18515: [Bug] set maxSpan 20 of dataZoom and yAxis does‘t show all axisLabel
URL: https://github.com/apache/echarts/issues/18515
--
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