Jan 25, 2019 8:28 AM
| Last Modified: Jan 25, 2019 9:47 AM(2559 views)
I have a script that creates a graph builder window that allows the user to click through options in a local data filter to view different sets of data. I have overlay and color variables set, color shows which bucket the data fall into and overlay shows pass/fail using marker shapes. What I want to change is the legend. If the users selection has one bucket that only has data as "pass", then the color for that bucket in the legend takes on the marker shape of "pass". If there are both "Pass" and "fail" in a bucket then the marker stays the default circle. Here is what I mean:
Is there any way that I can keep all of the markers for the color variables a constant shape in the legend? Is there a way to specify a shape that I am not using in my Overlay variable (like the default small circle)?
I also have times where the wrap variables in the legend change color:
When this happens it actually changes the points in the graph to the color of "Pass" even though it is not a color I defined for any of my buckets.
******I updated the script and now I have fixed the issue with the colors changing to different shapes, but I can't seem to figure out how to keep the overlay from changing the colors of the data points.
For the shape properties, try changing Line Color(0) to Line Color("Back"). Even though 0 is Black, I believe GraphBuilder uses a zero as a place holder for Default, and default can change when the graph changes.
I am not 100% this will work, but it is worth a try. If that doen't work, a Local Data Filter handler might be needed to manage the legend.