c3js/c3

donut chart data.empty.label.text is overlaped on title.

koocci opened this issue · 0 comments

Hello,
When I use donut chart, data.empty.label.text is overlaped on donut.title.
I think title have to disappear when data is empty.
Can you please support above issue?
thanks.

스크린샷 2020-06-24 오후 4 50 03
스크린샷 2020-06-24 오후 4 50 08

var chart = c3.generate({
    data: {
        columns: [
            ['data1', 30],
            ['data2', 120],
        ],
        type : 'donut',
        empty : {
            label: {
                text: "No Data"
            }
        }
    },
    donut: {
        title: "Iris Petal Width"
    }
});
  • C3 version: 0.7.10
  • D3 version: v5.16.0
  • Browser: chrome, explorer
  • OS: MacOS, Window10