Braeden Gilchrist Posted September 8, 2015 Share Posted September 8, 2015 In a python Script is it possible to apply a default coloring scheme eg "Spotfire categorical" or "Spotfire continuous" I tried this code but it did not work. vc = visual.As[barChart]()vc.ColorAxis.Coloring.Apply("Spotfire categorical") Link to comment Share on other sites More sharing options...
Rajesh Kumar 11 Posted October 23, 2015 Share Posted October 23, 2015 Check this it might help you.. Link to comment Share on other sites More sharing options...
Braeden Gilchrist Posted October 23, 2015 Author Share Posted October 23, 2015 Yes this helped me figure it out. I didn't need the custom color scheme but this example had all the puzzle pieces. def applyDefaultColors(chart): chart.ColorAxis.Coloring.Clear() chart.ColorAxis.Clear() chart=viz.As[barChart]() applyDefaultColors(chart) Link to comment Share on other sites More sharing options...
Surekha Kasar 3 Posted September 16, 2016 Share Posted September 16, 2016 I am unable to download this file. Seems like its currupt. Is it possible to post another copy of this file Link to comment Share on other sites More sharing options...
Donald Johnson Posted September 16, 2016 Share Posted September 16, 2016 I could successfully download this file. Jots, I would try again. Link to comment Share on other sites More sharing options...
Braeden Gilchrist Posted April 20, 2017 Author Share Posted April 20, 2017 DId you try to right click and "save link as..." Link to comment Share on other sites More sharing options...
Peter Beentje Posted December 16, 2019 Share Posted December 16, 2019 IronPython version 2.0.2 needs to be selected for this to work. IronPython version 2.7.7 does not have 'Clear' for the ColorAxis object. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now