Skip to content
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

[需求] toolbox的dataZoom开关设置默认打开 #9821

Closed
1 of 7 tasks
hhshii opened this issue Jan 22, 2019 · 2 comments
Closed
1 of 7 tasks

[需求] toolbox的dataZoom开关设置默认打开 #9821

hhshii opened this issue Jan 22, 2019 · 2 comments

Comments

@hhshii
Copy link

hhshii commented Jan 22, 2019

General Questions

Issue Type

  • I have a question to ask about how to use ECharts to ...;我想提问如何使用 ECharts 实现某功能
  • I have a bug to report;我想要报 bug
  • I have a feature to request, e.g.: I'd like a new feature that ...;我需要一个新功能
  • I have a feature to enhance, e.g.: The current feature should be improved in the way that ...;我希望改进某个功能
  • There's something wrong with the documents;文档有些问题
  • Others, or I'm not sure which issue types to choose here;其他,或我不知道应该选什么类型

Issue Details

现在如果想使用toolbox中的dataZoom功能需要先点击才能够触发,是否能像highcharts一样一开始就默认打开或者提取出来可供配置?

而且我觉得“恢复缩放”这个按钮应该在有经过缩放之后才展示出来。

Expected Behavior

有一个toolbox.feature.dataZoom.active的配置项配置默认是否激活该功能

Current Behavior

需要点击图标之后才能激活功能

Online Example

Topics

Anything Else We Need to Know

Environment

  • ECharts version;ECharts 版本: {DESCRIBE_HERE} 4.2.0rc2

  • It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}

@100pah
Copy link
Member

100pah commented Jan 22, 2019

// Activate the datazoom brush.
myChart.dispatchAction({
    type: 'takeGlobalCursor',
    key: 'dataZoomSelect',
    dataZoomSelectActive: true // activate or inactivate
});

@hhshii
Copy link
Author

hhshii commented Jan 23, 2019

好的,感谢!(我再搜就能发现了...

@hhshii hhshii closed this as completed Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants