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

当dataZoom的filterMode为empty时,y轴的dataZoom会导致部分临界数据点被过滤的问题(3.x.x版本) #3228

Closed
netwww1 opened this issue May 17, 2016 · 0 comments
Labels

Comments

@netwww1
Copy link

netwww1 commented May 17, 2016

问题简述 (One-line summary)

如标题,使用下面的option,虽然上部手柄数值为17725,曲线最大值是17724.90,但最大值的点还是被过滤了。当filterMode为默认的filter时,曲线显示正常。

之前的 #2757 虽然已经解决了,但类似情况在3.1.9中看来仍存在。

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): 3.0.2, 3.1.2~3.1.9
  • 浏览器类型和版本 (Browser version): Chrome 50, Firefox 43, IE11
  • 操作系统类型和版本 (OS Version): win7

重现步骤 (Steps to reproduce)

  1. 使用下面的option
    2.

期望结果 (Expected behaviour)

曲线最大值点正常显示。

可能哪里有问题 (What went wrong)

可能浮点精度处理仍有问题?

ECharts配置项 (ECharts option)

option = {
            "title": {
                "text": "1个月数据",
                "left": "center"
            },
            "tooltip": {
                "trigger": "axis"
            },
            "dataZoom": [
                {
                    "show": true,
                    "yAxisIndex": 0,
                    "filterMode": "empty",
                    "width": 12,
                    "handleSize": 8,
                    "showDataShadow": false,
                    "right": 12
                }
            ],
            "legend": [
                {
                    "data": [
                        "重量"
                    ],
                    "top": 36,
                    "left": "center"
                }
            ],
            "grid": [
                {
                    "left": 80,
                    "top": 90,
                    "right": 58,
                    "height": 350
                }
            ],
            "xAxis": [
                {
                    "boundaryGap": false,
                    "data": [
                        "2016-02-17",
                        "2016-02-18",
                        "2016-02-19",
                        "2016-02-20",
                        "2016-02-21",
                        "2016-02-22",
                        "2016-02-23",
                        "2016-02-24",
                        "2016-02-25",
                        "2016-02-26",
                        "2016-02-27",
                        "2016-02-28",
                        "2016-02-29",
                        "2016-03-01",
                        "2016-03-02",
                        "2016-03-03",
                        "2016-03-04"
                    ]
                }
            ],
            "yAxis": [
                {
                    "name": "重量(g)"
                }
            ],
            "series": [
                {
                    "type": "line",
                    "data": [
                        "241.68",
                        "12703.10",
                        "17724.90",
                        "17722.60",
                        "12326.70",
                        "12703.10",
                        "17724.90",
                        "17722.60",
                        "12326.70",
                        "-290.01",
                        "-12736.80",
                        "-12361.40",
                        "-0.00",
                        "-290.01",
                        "-12736.80",
                        "-8525.49",
                        "-15918.30"
                    ],
                    "name": "重量"
                }
            ]
}

其他信息 (Other comments)

@pissang pissang added the bug label May 17, 2016
@100pah 100pah closed this as completed in a89fd0d May 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants