S H Posted October 12, 2021 Share Posted October 12, 2021 Hello, I am trying to dynamically add a horizontal target line to one of my charts via IronPython. I am able to add the line, rename it, format it the way I want, etc. But the missing piece is that I can't figure out how to set the number formatting using python. It's meant to be a percentage, but it's coming out to a $ value (same as the underlying columns in the calculation). How can this be done in python I know how to do it through the menus, but can't find any reference to the number format in the API. Thanks for your help! Link to comment Share on other sites More sharing options...
S H Posted October 12, 2021 Author Share Posted October 12, 2021 Posted one minute too soon... For posterity, it's: Visual.FittingModels[0].Line.Details[1].Formatter = NumberFormatter where NumberFormatter is a previously-defined formatter 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