Li Sim Low Posted April 24, 2020 Share Posted April 24, 2020 Greetings, may i know what is the IronPython script to enable One per color in Lines & Curves. Thank you! Link to comment Share on other sites More sharing options...
Shashank Gurnalkar Posted April 25, 2020 Share Posted April 25, 2020 Try this one, it is working at my end: from Spotfire.Dxp.Application.Visuals import LineChart from Spotfire.Dxp.Application.Visuals.FittingModels import IndividualFittingModes for vis in Document.ActivePageReference.Visuals: if vis.Title == "GrowthRate": lc = vis.As[LineChart]() model = lc.FittingModels.AddHorizontalLine("Avg(Y)") model.IndividualFittingModes = IndividualFittingModes.ColorThis is for Horizontal Line with the Average value of the Y-axis. For other lines, you can refer to this API documentation: https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-analyst_api/html/T_Spotfire_Dxp_Application_Visuals_FittingModels_FittingModelCollection.htm Link to comment Share on other sites More sharing options...
Li Sim Low Posted May 3, 2020 Author Share Posted May 3, 2020 Thank you so much, Shashank! it works! In the meantime, i found this post with additional information about enabling line &curve by color and trellis. In case if anyone needs it. https://community.spotfire.com/wiki/how-enable-multiple-individualfittingmodes-lines-curves-visualization-tibco-spotfirer-using 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