-
-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Chart font size #24
Comments
Which fonts are you talking about? |
I'm talking about the values inside the chart (the y-values). |
Thank you for informing me, actually there is no possibility to directly set the font size :) I will implement this right now and this feature will be included in the next update. Paint p = mChart.getPaint(Chart.PAINT_VALUES);
p.setTextSize(...);
mChart.setPaint(p, Chart.PAINT_VALUES); EDIT: Unfortunately, the Another solution: Copy this code snippet into the Chart.java file of the library and use it: /**
* Sets the font size of the values that are drawn inside the chart.
*
* @param size
*/
public void setValueTextSize(float size) {
mValuePaint.setTextSize(Utils.convertDpToPixel(size));
} Then call Also, the latest commit on the experimental branch already supports everything you need. |
Is there anyway to set the font size that's used when the chart is being drawn?
It's frequently changing when I try it on different devices (some devices, it appears extremely small, on others it's extremely large).
Thanks
The text was updated successfully, but these errors were encountered: