Updating a chart with new data in App SDK 2.0

前端 未结 2 668
没有蜡笔的小新
没有蜡笔的小新 2021-01-19 10:04

I am using a chart to visualize data in a TimeboxScopedApp, and I want to update the data when scope changes. The more brute-force approach of using remov

2条回答
  •  一向
    一向 (楼主)
    2021-01-19 10:30

    Using _unmask() removes the overlaid "Loading.." mask

    if (this.down('#myChart')) {
        this.remove('myChart');
    }
     this.add(
                        {
                            xtype: 'rallychart',
                            height: 400,
                            itemId: 'myChart',
                            chartConfig: {
                                //....
                            },            
                            chartData: {
                                categories: scheduleStateGroups, 
                                series: [ 
                                    {   
                                        //...
                                    }
                                ]
                            }
                        }
                    );
            this.down('#myChart')._unmask();
    

提交回复
热议问题