简体   繁体   中英

spotfire - Disappear lines when value in filters are selected

I am actually new to python scripting and I have a requirement where we have a line chart (each line shows tasks and y axis the time it took to complete).

Using lines and curves I have added average, upper control and lower control limits to the line chart. I also have a filter which shows the tasks.

whenever a task is selected i want these lines(average and control lines) to appear and whenever I select more than one task or None these lines should disappear.

I saw an example which shows to create a property control for filter and then trigger the functions. Can we trigger the same functions when there is a change in the filter values instead of property control?

there isn't a way to react to filter changes as far as I know, but you can "recreate" the filter as a property control and execute the script when that property value changes.

typical example is for a listbox/dropdown property control representing a listbox filter.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM