timopu Posted October 25, 2016 Report Share Posted October 25, 2016 Hello, just a quick question: how could we implement motif and palette selector dropdowns similar to the dropdowns used in your examples: http://support.softwarefx.com/jChartFX/article/2501514#!2501034? br, Timo Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted November 25, 2016 Report Share Posted November 25, 2016 The way motifs work, charts/gauges properties are modified when objects are constructed (to allow for your customizations to override motif customizations). Because of this, if you are going from motif A to motif B it is not trivial to try to "undo" the actions on motif A before trying to apply B. It does not need necessarily a full page reload but recreating the charts is the simple way to achieve this (if the motif change is happening on the client side). JuanC Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted October 26, 2016 Report Share Posted October 26, 2016 Please note that each motif is a js and each palette is a css file so if your solution is server side, the simple way to do this would be to allow these dropdowns to change some url parameters and regenerate the page in question using the appropriate motif/palette combination. If you want to change them "client side", you could include various/all motifs on the same page, to change a motif you would have to execute something like this cfx.motif = "block" And later recreate the charts/gauges in the page. Changing the palette is a little more involved because it would require you "unloading" a css before loading the new palette. I will check with the team that created that page and the motif page to see if they can provide extra details in this thread. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
0 timopu Posted November 23, 2016 Author Report Share Posted November 23, 2016 Ok, thanks again. Actually I checked the implementation more throughly, and noted that motif change causes a page reload, but palettes seem to be loaded "on demand". Got to try that motif setup, because I didn't find a way to set it myself. br, Timo Quote Link to comment Share on other sites More sharing options...
Question
timopu
Hello,
just a quick question: how could we implement motif and palette selector dropdowns similar to the dropdowns used in your examples: http://support.softwarefx.com/jChartFX/article/2501514#!2501034?
br,
Timo
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.