-
MandJuly 7, 2016 at 9:26 am #6325
Hi Vizuly,
I added a new theme to the Weighted Tree Visualization but the colors are not changing. The other styles do change but not the colors. If I set the new theme as the one to be initialized then it will work. However, I am unable to change the colors to the default Axiis using the menu control. Any idea which function would be the one not working? I don’t see where the colors are being applied when changeSkin is called.
Thank you,
MandvizulyJuly 7, 2016 at 10:36 am #6326Hello Mand,
I assume you have read our article “Themes and Skins” and are familiar with the relationship between a theme and a skin (A theme can have one or more skins, but a skin can only belong to one theme.)
There could be a couple of reasons you aren’t seeing the color change. But generally this is what you want to to do to make sure you have applied the theme correctly.
1. Initialize the theme with a given viz.
theme.viz(viz);
2. Make sure you have set the appropriate skintheme.skin(mySkinName);
mySkinName
must be a valid reference to a skin within your theme.
3. Apply the theme:theme.apply();
If this is not working, then I recommend debugging the theme by placing a breakpoint in the theme.applyTheme() function and seeing what skin is being used and what properties are being set.
I hope that helps. If you have more specific information on exactly how you added your own theme I might be able to offer more detailed help.
– Tom
(one thing to note, if you are using multiple themes on a given viz, you can only have one attached at time, and must release a theme before attaching a new one by calling
theme.release()
) -
|
You must be logged in to reply to this topic.