Kom Son Posted September 26, 2022 Share Posted September 26, 2022 Additionally, if I were to require different lines to show only for different columns from the property control, how can I achieve that?Thanks Link to comment Share on other sites More sharing options...
Gaia Paolini Posted September 27, 2022 Share Posted September 27, 2022 can you provide some detail on what your plot looks like and what you are trying to achieve? Link to comment Share on other sites More sharing options...
Kom Son Posted September 27, 2022 Author Share Posted September 27, 2022 Hi @Gaia Paolini for instance, when the property control is 'tag B change', I would like to have the dotted horizontal line (in red) at y-axis value :15. But if I change the property control to 'Tag A change' I want the horizontal line to also change it's value and location on the y-axis. So like a dynamically controlled horizontal line or set of lines on the plot. Link to comment Share on other sites More sharing options...
Gaia Paolini Posted September 28, 2022 Share Posted September 28, 2022 Create a Text Area and an input Property Control. For instance an Input Field connected to a new real property you will call e.g. lineheight.In your scatter plot, go to Properties > Lines & Curves > Add > Horizontal Line > Straight Line ...For Line Position choose Custom Expression and type the name of your document property as ${lineheight}This will change the position of the line when you type a different numeric value into lineheight.Alternatively, if you want to choose between two or more pre-specified height values, you can use a drop down list in the Text Area instead and connect to the values of Tag A or Tag B etc. Let's say this property is called lineheight2.You cannot connect a drop down list to document properties though, only to actual values. See screenshots.To dynamically change the colour of the line, or to use pre-defined values of Tag A etc, you will need an Iron Python script instead. 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