Hello JSL Community!
I used a variation of code for dynamic chart legend , that works great by automatically changing the legend of a graph with only 1 click.
However when it tried to include the Local Data Filter into the graphs, for some reason the Border Box of the old/previous legends keep reappearing after clicking the filter. i have found a previous discussion with a basically the same issue, but unfortunate that trend from 2014 was a monologue, and when i tried all his TS steps none of them work on my case.
The legend itself is correct (the data shows the correct colors and markers), but the report window just gets super busy with all the previous border boxes.
I did got a work-around, where i just added an extra button to delete all unnecessary "legends" after the local data filter gets pressed, but they just keep re-appearing every time i hit a different filter. I was also unsuccessful at adding the code for the "delete" button inside the local data filter (so whenever i use the filter functionality it will also delete all the extra unnecessary legend boxes).
I am just wondering if there is a way to delete the "memory" stored of the previous legends in the graph. Or any work-around that can be used in this case.
Thanks in advance for the helps and support!!!
Graph before using local data filter
Graph after using local data filter
