chartjs-plugin-labels icon indicating copy to clipboard operation
chartjs-plugin-labels copied to clipboard

Font size responsive

Open bas-a opened this issue 7 years ago • 2 comments

Is there a way I can make the font size responsive? I use a default font size of 25. But if I make the chart really small I need a smaller font size (automatically). Thanks in advance

bas-a avatar May 17 '17 08:05 bas-a

I think this feature should be support by Chart.js core. Before that, you can update options manually.

emn178 avatar May 18 '17 13:05 emn178

One could use viewport-percentage lengths for fonts. This would enable dynamic font updates when the initial containing block is resized. Additionally, set fonts in CSS classes using media queries for responsive design.

adityarar avatar Sep 18 '18 10:09 adityarar