c3js / c3js/c3

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

Open
#2,798 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9.3k
Forks
1.4k
Avg merge
6d 16h
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/19977258/85518057-d4a28300-b63a-11ea-8716-89e18c885fbb.png)
![스크린샷 2020-06-24 오후 4 50 08](https://user-images.githubusercontent.com/19977258/85518061-d5d3b000-b63a-11ea-87fa-4c720ec6df8a.png)

```
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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.