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

Gauge with dataset: data disappears when using myChart.setOption( modify, false) to update the dataset. #10945

Closed
yongnny opened this issue Aug 1, 2019 · 1 comment
Assignees
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. priority: high
Milestone

Comments

@yongnny
Copy link

yongnny commented Aug 1, 2019

Version

4.2.1

Reproduction link

https://www.echartsjs.com/examples/editor.html?c=gauge

Steps to reproduce

option = {
    backgroundColor: '#FFF',
    tooltip : {
        formatter: "{a} <br/>{b} : {c}%"
    },
    toolbox: {
        feature: {
            restore: {},
            saveAsImage: {}
        }
    },
    dataset : {
        source : [[10], [30]]
    },
    series: [
        {
            name: '业务指标',
            type: 'gauge',
            detail: {formatter:'{value}%'},
            //data: [{value: 50, name: '完成率'}]
        }
    ]
};

setInterval(function () {
    //option.series[0].data[0].value = (Math.random() * 100).toFixed(2) - 0;
    
    //var ttt = myChart.getOption();
    
    var ttt = {
         dataset : {
            source : [[15], [67]]
        }
    }
    
    // var ttt = {
    //     backgroundColor: '#FFC',
    // }
    
    myChart.setOption(ttt);
},2000);

What is expected?

仪表盘 的数据 被成功更新

What is actually happening?

仪表盘 不显示指针,而是 NaN

@echarts-bot
Copy link

echarts-bot bot commented Aug 1, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added bug pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Aug 1, 2019
@pissang pissang removed pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Aug 1, 2019
@Ovilia Ovilia added difficulty: easy Issues that can be fixed more easily than the average. priority: high labels Aug 30, 2019
@Ovilia Ovilia added this to the 4.5.0 milestone Sep 4, 2019
@pissang pissang changed the title 仪表盘 使用 dataset 提供数据源时,myChart.setOption( modify, false); 会显示不出数据 Gauge with dataset: data disappears when using myChart.setOption( modify, false) to update the dataset. Sep 23, 2019
@Ovilia Ovilia self-assigned this Sep 24, 2019
Ovilia added a commit that referenced this issue Oct 21, 2019
fix(gauge): update data with dataset #10945
@Ovilia Ovilia closed this as completed Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug difficulty: easy Issues that can be fixed more easily than the average. priority: high
Projects
None yet
Development

No branches or pull requests

3 participants