c3js / c3

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

Donut chart text not resized properly #771

Open Tropicalista opened 9 years ago

Tropicalista commented 9 years ago

In my opinion the label text should be autoresized based on chart dimensions.

Take a look at this example: http://jsfiddle.net/Tropicalista/7kYJu/719/

The label 80% is not toatlly visible, the title should go on two or more rows...

Tropicalista commented 9 years ago

A related problem is solved here: https://github.com/masayuki0812/c3/issues/661

Could something like this solve donut problem?

masayuki0812 commented 9 years ago

Please let me label this enhancement. Basically, when the chart is small, these text should be hidden because it seems too small to read. On the other hand, if the chart is large, the styles of these can be modified by css.

Tropicalista commented 9 years ago

I think the text should resize. I'm trying to build resizable widget that contains charts and in my opinion is not a good solution to check chart size and change css. Or at least text should be hidden...

buckelieg commented 4 years ago

Please let me label this enhancement. Basically, when the chart is small, these text should be hidden because it seems too small to read. On the other hand, if the chart is large, the styles of these can be modified by css.

Please, see this use-case. At least it should be possible to calculate and update label text size programmatically...