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

内存泄露,移动端使用后卡顿 #8332

Closed
tiasen opened this issue May 13, 2018 · 1 comment
Closed

内存泄露,移动端使用后卡顿 #8332

tiasen opened this issue May 13, 2018 · 1 comment
Labels
stale Inactive for a long time. Will be closed in 7 days.

Comments

@tiasen
Copy link

tiasen commented May 13, 2018

One-line summary [问题简述]

ionic使用echarts后(测试非ionic使用也会出现相同问题),内存泄露(如图),单个页面图表多的话,导致移动端页面非常卡顿

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:3.8.3
  • Browser version [浏览器类型和版本]:webview
  • OS Version [操作系统类型和版本]:Android/IOS

Expected behaviour [期望结果]

页面绘制结束后,内存不再增长,保证性能

ECharts option [ECharts配置项]

option ={
    "grid": {
        "top": 50,
        "bottom": 50
    },
    "radar": {
        "name": {
            "textStyle": {
                "color": "#fff"
            },
            "fontSize": 10
        },
        "indicator": [
            {
                "name": "总收入",
                "min": 0,
                "max": 1.0402
            }, {
                "name": "邮政申诉率",
                "min": 0,
                "max": 0.5556
            }, {
                "name": "万票有责服务投诉",
                "min": 0,
                "max": 0.5556
            }, {
                "name": "异常网点",
                "min": 0,
                "max": 0.6667
            }, {
                "name": "百万件遗失",
                "min": 0,
                "max": 0.6667
            }, {
                "name": "超3天积压件",
                "min": 0,
                "max": 0.625
            }
        ],
        "splitNumber": 1,
        "splitLine": {
            "show": false
        },
        "splitArea": {
            "areaStyle": {
                "color": "#fff",
                "opacity": 0.2
            }
        },
        "axisLine": {
            "lineStyle": {
                "color": "rgba(255,255,255,0.1)"
            }
        }
    },
    "series": [
        {
            "type": "radar",
            "symbolSize": 0,
            "clockwise": true,
            "lineStyle": {
                "normal": {
                    "width": 1,
                    "type": "dotted"
                }
            },
            "data": [
                {
                    "value": [
                        0.8016,
                        0.5556,
                        0.5519,
                        0.2927,
                        0.3489,
                        0.3915
                    ],
                    "lineStyle": {
                        "normal": {
                            "type": "solid",
                            "width": 1
                        }
                    },
                    "areaStyle": {
                        "normal": {
                            "opacity": 0.4
                        }
                    },
                    "silent": true
                },
                [
                    0.9589,
                    0.4545,
                    0.453,
                    0.3333,
                    0.4,
                    0.4167
                ],
                [
                    1,
                    0.5,
                    0.5,
                    0.5,
                    0.5,
                    0.5
                ],
                [
                    1.0402,
                    0.5556,
                    0.5556,
                    0.6667,
                    0.6667,
                    0.625
                ]
            ]
        }
    ],
    "color": ["#BA55D3", "#ff2222", "rgb(255,216,57) ", "#32db64"]
}

Other comments [其他信息]

menu saveimg savepath20180513180749

@stale
Copy link

stale bot commented May 13, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Inactive for a long time. Will be closed in 7 days. label May 13, 2020
@stale stale bot closed this as completed May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

1 participant