-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Style donut chart text #228
Comments
Not possible in oesmith/master. Somehow standarized in my fork but also not able to change the styling on-the-fly. There was an idea of providing hovers built with HTML (like line charts) so users could style them and even display in the donut's hole. But it's not (and probably won't be) implemented. |
I could control the font-weight by adding attributes and values to a text selector with an !important declaration.
|
you can personalized some of them here for example.
|
how to display multiline label if label length is more. if label is more is not able to read properly. code; formatter: function (x) { return Math.floor(x) } |
via jQuery right after calling Morris.Donut |
For anyone still struggling to style the text inside the morris donut, adding labelColor to your Morris.Donut object does the trick. self.some_element = Morris.Donut({ |
FWIW we emitted a and then walk the original data reformatting. inserting \n for spaces // Let's presume [["string","string"],[n] ] et cetera. we styled the charts guts thusly in the main css
We found that you may have to insert an additional PREFIX of "\n" to a line broken section to get the effect you desire. Without the title overlaying the other stuff, |
I am using morris donut chart but it is rendering first time as NAN and second click its coming correctly. //Initialization for Search fields..
|
Have you used Firefox to visually check the data just before you draw the donut? |
Is there any way you can control the font-size, font-family and font-weight of the donut chart text? When one sections label text is much longer than anothers, the different in font size causes a poor user experience.
The text was updated successfully, but these errors were encountered: