I quickly put this code together to build an expression to produce a full dataset based upon all bookmarks. The code works and builds the expression fine, but when it adds it to the chart, the chart displays a big X.
If I then edit the properties of the chart and close the dialogue window without changing any settings it loads the correct data. Do I need to refresh / requery the chart with the script? What am I missing?