Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Improvement : default fontFamily, fontColor, fontSize ...

Open Dergonic opened this issue 10 years ago • 2 comments

Here is an idea for further versions.

this is quite annoying to configure all the font options for any part when we use always the same font, the same color.

Is it possible to have a 'default font' for the whole chart (in the chart.default.global for example) ? I think especially for these 4 values : fontSize, fontStyle, fontColor and fontFamily.

And, in addition, each parts (title, tooltip, ticks, scalelabel) would use this default value if no specific ones are given.

Thanks Dergonic

Dergonic avatar Feb 01 '16 11:02 Dergonic

This would be a good enhancement for version 2.0.0. I'd be happy to merge a PR adding this functionality

etimberg avatar Feb 01 '16 16:02 etimberg

Added in #1964

etimberg avatar Feb 02 '16 02:02 etimberg