C3: Change chart title size

Created on 17 Jul 2017  路  5Comments  路  Source: c3js/c3

The first time I use c3 I loved it. But if it could have the property to allow developer change the size of title, it would be better.

Most helpful comment

There is value when you let the user create multiple dynamic charts in different forms and shapes inside the same panel. Dealing with classes is a pain in this case. Also, there's no point to use pixels when SVGs are focused on units (viewBox, aspect ratios and such). There's a lot of value. Going to try something.

All 5 comments

In css we can change the title font-size

.c3-title {
font-size: 1.3em;
}

Yes, you're right. If c3 has such built-in property it would be better.

There is little value to ask for custom styles for all elements (title, data labels, legends, ticks, ...) using JS properties instead of simply overriding the css.

Closing because we are not likely to add such an option (any time soon).

There is value when you let the user create multiple dynamic charts in different forms and shapes inside the same panel. Dealing with classes is a pain in this case. Also, there's no point to use pixels when SVGs are focused on units (viewBox, aspect ratios and such). There's a lot of value. Going to try something.

There is little value to ask for custom styles for all elements (title, data labels, legends, ticks, ...) using JS properties instead of simply overriding the css.

Closing because we are not likely to add such an option (any time soon).

How about this case:

image

Pie charts are generated dynamically and sized according to theirs weights. How do I change titles using css for every single pie chart?

Was this page helpful?
0 / 5 - 0 ratings