apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.63k stars 19.61k forks source link

ng2-echarts数据变化图表无反应 #5466

Closed ZeyZhang closed 4 years ago

ZeyZhang commented 7 years ago

One-line summary [问题简述]

在ng2的项目中,我引用了ng2-echarts,图表在首次渲染之后,数据变化了,图表不会改变

Version & Environment [版本及环境]

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {
    grid: {
            containLabel:true
        },
        toolbox: {
            feature: {
                saveAsImage: {}
            }
        },
        tooltip : {
            trigger: 'axis',
            axisPointer: {
                animation: false
            }
        },
        dataZoom: [
            {
                show: true,
                realtime: true,
            },
            {
                type: 'inside',
                realtime: true,
                start: 65,
                end: 85
            }
        ],
        xAxis: {
            type: 'value',
        },
        yAxis: {
            type: 'category',
            axisLine: {onZero: false},
            data: ['0', '10', '20', '30', '40', '50', '60', '70', '80']
        },
        series: [
            {
                type: 'line',
                smooth: true,
                data:this.td
            }
        ],
        smooth:true,
}

Other comments [其他信息]

stale[bot] commented 4 years ago

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.