New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多个Y轴不能同时缩放,只能缩放其中一个Y轴? #4896

Closed
Lion2017 opened this Issue Jan 10, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@Lion2017

One-line summary [问题简述]

多个Y轴不能同时缩放,只能缩放其中一个Y轴。

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]: 3.3.2
  • Browser version [浏览器类型和版本]: chrome v57.0.2950.5 (64-bit)
  • OS Version [操作系统类型和版本]:windows7

Expected behaviour [期望结果]

多个Y轴能同时缩放。

ECharts option [ECharts配置项]

 var option = {
     title: {
         text: 'ECharts 入门示例'
     },
     tooltip: {},
     toolbox: {
         feature: {
             dataZoom: {
                 //yAxisIndex: [0,1]
             },
             restore: {}
         }
     },
     legend: {
         data: ['销量', '销量x']
     },
     xAxis: {
         data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
     },
     yAxis: [{
         type: 'value',
         position: 'left'
     }, {
         type: 'value',
         position: 'right'
     }],
     series: [{
             name: '销量',
             type: 'line',
             data: [5, 1, 5, 1, 5, 10]
         }, {
             name: '销量x',
             type: 'line',
             yAxisIndex: 1,
             data: [1, 5, 1, 5, 1, 10]
         }

     ]
 };

Other comments [其他信息]

@100pah 100pah added the bug label Jan 10, 2017

@amei1234

This comment has been minimized.

Show comment
Hide comment
@amei1234

amei1234 Jan 11, 2017

(真诚脸)请问下楼主,如何实现屏幕纵向的缩放,就是当浏览器纵向缩小时,图形可以展示整体?我这边只能实现横轴缩放,纵向缩放时,会出现滑动条,图形未缩小。谢谢!

(真诚脸)请问下楼主,如何实现屏幕纵向的缩放,就是当浏览器纵向缩小时,图形可以展示整体?我这边只能实现横轴缩放,纵向缩放时,会出现滑动条,图形未缩小。谢谢!

@100pah 100pah closed this in 9cd054e Jan 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment