Highstock : Previous data still displayed when changing datagrouping

拈花ヽ惹草 提交于 2019-12-11 03:10:55

问题


Sorry for the english ...

I got a chart with custom data grouping. When I click to change the zoom, the new data are displayed over the previous one (which aren't deleted) :-(

rangeSelector : {
    allButtonsEnabled: true,
        buttons: [{
        type: 'month',
        count: 3,
        text: 'Day',
        dataGrouping: {
            forced: true,
            units: [['day', [1]]]
        }
    }, {
        type: 'all',
        text: 'Month',
        dataGrouping: {
            forced: true,
            units: [['month', [1]]]
        }
    }],
        selected: 2
},

I found a fiddle with this problem : http://jsfiddle.net/tqyyqmzs/12/

Month data are displayed. Click on "Day" or "week" and you will see that month data sill be on the graph :-(

P.S : One or two month ago, this code works. And now .... don't and I really don't understand why.

Did someone see the problem ?

Regards David


Got the same problem on my website : https://www.bdpv.fr/en/ficheUtilisateur.php?util=boyardgo Click on panel "Production" Then click on zoom "Mois". Same behaviour, data for mois stay ...

来源:https://stackoverflow.com/questions/47856293/highstock-previous-data-still-displayed-when-changing-datagrouping

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!