c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.33k stars 1.39k forks source link

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

Open koocci opened 4 years ago

koocci commented 4 years ago

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"
    }
});