문제

I display correctly a funnel dataviz kendo-Ui chart, it works great except when my dataItem is 0
I want it to display in my label so I made a custom label:

 seriesDefaults: {
                labels: {
                    visible: true,
                    background: "transparent",
                    color:"white",
                    format: "N0",
                    template: "#= dataItem.type # - #= dataItem.value#"
                },
                dynamicSlope: false,
                dynamicHeight: false
            },

I get my data from a Json call which return 0.

How should I do to make my funnel display the label even if the dataItem.value = 0?

도움이 되었습니까?

해결책

I ended by doing quick and dirty fix, i replaced 0 by 0.000001 and rounding at display it's dirty but it works.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top