-
Notifications
You must be signed in to change notification settings - Fork 369
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
Is there a way to change the color and font in case of Tag cloud chart? #10
Comments
@fightaadeshfight |
Like right now the text is picking random colors. I wanted to create my own set of colors which will be picked at random(there is no condition for it). I just want different shades. For font i just want a different font for the complete chart.(Again, no conditions applied.) |
@fightaadeshfight OrdinalColor ordinalColor = new OrdinalColor();
ordinalColor.setColors(new String[] { "#000000", "#f18126", "#3b8ad8", "#00ff00", "#ff0000" });
tagCloud.setColorScale(ordinalColor); Font you can apply like this: TagCloud.getNormal().setFontFamily("Helvetica");
tagCloud.getNormal().setFontSize(8);
tagCloud.getSelected().setFontStyle(TextFontStyle.ITALIC); |
Can i add my custom font family(like in the form of ttf or otf file in android) or i can only choose from the ones already defined? |
@fightaadeshfight
And the Pacifico.ttf file should be located in We have just updated the library to implement this feature. Please, download the latest version to enable this feature. |
Do i need to download the jar file? The new dependency does not seem to work |
@fightaadeshfight |
with gradle. The old dependency is working fine. But when i change it to new version it stops working. |
@fightaadeshfight |
its working now. it wasn't a few hours earlier. maybe the mirrors were not updated or something. Thanks anyways. |
I gave the ordinal colors as you said
But it picks a 4 colors for the big words. rest are same. Is there a limit to colors that i can give? And if the items in the list is around 10 only one color is shown. |
I figure it out. The colors were distributed according to category. So if i do not define any category the colors get distributed via range. So, i defined an array of categories and added them at random and hence the colors were chosen at random. |
No description provided.
The text was updated successfully, but these errors were encountered: