-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make label font size responsive? #27
Comments
That should be easy for the data labels using scriptable options and font: function(context) {
var width = context.chart.width;
var size = Math.round(width / 32);
return {
size: size,
weight: 600
};
} However, this plugin don't deal with axis tick labels, you will have better results asking stackoverflow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to make both plugin data labels as well as X-Axis tick labels responsive so they change font size according to screen resolution. I couldn't find any solution to this issue and so far a simple bar chart does not resize properly as labels start to overlap and don't fit the boundaries.
I tried to change font size dynamically by adding a plugin:
but it does nothing.
Is there any way to achieve that?
Thank you
The text was updated successfully, but these errors were encountered: