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

4.2.0rc2 brush 只能选择前400个点 #9605

Closed
10 of 23 tasks
sola1121 opened this issue Dec 18, 2018 · 3 comments
Closed
10 of 23 tasks

4.2.0rc2 brush 只能选择前400个点 #9605

sola1121 opened this issue Dec 18, 2018 · 3 comments
Assignees
Labels
pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days.

Comments

@sola1121
Copy link

  • I am using English in this issue. 在这个 Issue 中我使用了英文(强烈建议)。

General Questions

  • Required: I have read the document and examples and tried to solve it by myself. (必填)我读过了文档和教程,并且曾试图自己解决问题。
  • Required: I have searched for similar issues and that didn't help. (必填)我搜索过 issue 但是没有帮助。
  • Required: I have tried with the latest version of ECharts and still have this problem. (必填)我试过最新版本的 ECharts,还是存在这个问题。

In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:

  • Required: issue type;(必填)issue 类型
  • Required: one sentence description in issue details;(必填)一句话的问题描述
  • Required: demo;(必填)能反映问题的例子(如果你想提问或报 bug)
  • Required: ECharts version;ECharts 版本

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

使用4.2.0rc2 时, brush只能选择到前400个点, 而使用3.8.5版本则可以正常工作.
when I use version 4.2.0rc2, the brush function just can selected first 400 points in dataIndex, but with version 3.8.5, it work right.

2018-12-17 15-09-24
以上是使用4.2.0rc2版本, 但是只能选择到前400个点.
above is version 4.2.0rc2, it just can select first 400 points
2018-12-17 15-10-14
以上是使用3.8.5, 这个可以正常的工作.
above is version 3.8.5, it work right

Expected Behavior

希望能像3.8.5一样工作

能够正确的选出范围中的点.

Current Behavior

Online Example

var option = {
animation: true,
title: {
backgroundColor: '#333',
text: default_title_text,
},
tooltip:{
show: true, trigger: 'item',
enterable: true, hideDelay: 150,
},
brush: {
toolbox: ["lineX", "lineY", "clear"],
throttleType: 'debounce',
throttleDelay: 300,
seriesIndex: 1, // "all",
inBrush: {color: "#FFAB91"},
outOfBrush: {colorAlpha: 0.1}
},
dataZoom: [
{type: "slider", orient: "horizontal"}, {type: "inside", orient: "horizontal"}
],
xAxis: {
name: "频率", scale: true, max: max_X, min: min_X,
},
yAxis: {
name: "电平", max: max_Y, min: min_Y,
},
series: [
// 第一组数据
{
name: "监测电平连线",
data: original_data["level"], // [[a1, a2], [a3, a4], ...]
type: 'line',
},
// 第二组数据
{
name: "监测电平点",
data: original_data["level"], // 希望brush出来的, want to be brush out, like [[a1, a2], [a3, a4], ...]
type: "scatter",
},
// 第三组数据
{
name: "告警频率点",
data: alert_signal_data_handler(alert_data, max_Y),
type: "scatter",
},
// 第四组数据
{
name: "信号频率点",
data: alert_signal_data_handler(signal_data, min_Y),
type: "scatter",
}
]
}

function renderBrushed(params) {
// brush事件, 这里将会进行一些简单的统计与计算
var brushComponent = params.batch[0]
var level_index = brushComponent.selected[1].dataIndex // 获取series[1]
...do something
}

以上是我部分相关option配置

Topics

  • Legend
  • Tooltip
  • Event
  • Performance
  • SVG
  • Map
  • ECharts GL
  • Third-party libraries, e.g.: Vue.js, React

Anything Else We Need to Know

Environment

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

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

@deqingli deqingli assigned deqingli and 100pah and unassigned deqingli Dec 18, 2018
@deqingli deqingli added bug pending We are not sure about whether this is a bug/new feature. and removed bug labels Dec 18, 2018
@lishihong
Copy link

为什么关了啊,3.8.5可以,4.2版本不行啊

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2021

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

@github-actions github-actions bot added the stale Inactive for a long time. Will be closed in 7 days. label Sep 5, 2021
@github-actions
Copy link
Contributor

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending We are not sure about whether this is a bug/new feature. stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants