Incubator-echarts: [需求] toolbox的dataZoom开关设置默认打开

Created on 22 Jan 2019  ·  2Comments  ·  Source: apache/incubator-echarts

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 ...;我需要一个新功能
  • [x] 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}

Most helpful comment

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

All 2 comments

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

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

Was this page helpful?
0 / 5 - 0 ratings