折叠并展开父元素后,子进度指示器不起作用

时间:2019-06-10 07:11:45

标签: highcharts

start是测试原型的父级。当我折叠“开始”原型并展开测试原型的进度指示器时,该图表未正确显示在海图甘特图中。

https://jsfiddle.net/bhagatch/nbchvupr/2/

series: [{
    name: 'Project 1',
    data: [{
        id: 'start',
        name: 'Start prototype',
        start: Date.UTC(2014, 10, 18),
        end: Date.UTC(2014, 10, 25),
        completed: 0.25
    }, {
        id: 'test',
        parent: 'start',
        name: 'Test prototype',
        start: Date.UTC(2014, 10, 27),
        end: Date.UTC(2014, 10, 29),
        completed: 0.35
    }, {
        name: 'Develop',
        start: Date.UTC(2014, 10, 20),
        end: Date.UTC(2014, 10, 25),
        completed: {
            amount: 0.12,
            fill: '#fa0'
        }
    }, {
        name: 'Run acceptance tests',
        start: Date.UTC(2014, 10, 23),
        end: Date.UTC(2014, 10, 26)
    }]
}]

});

1 个答案:

答案 0 :(得分:0)

这是Highcharts Gantt中的一个错误,在这里报告:https://github.com/highcharts/highcharts/issues/10942

作为解决方法,您可以使用以下代码:

import { ValoriScadenzario } from '../../enums/scadenzario-enum';
...
Object.keys(ValoriScadenzario)

实时演示: https://jsfiddle.net/BlackLabel/o35pvhfn/