Here is a example script that will create a bivariate chart with the 2 Row Legends. It then waits 5 seconds, and clears the Row States in your data table. The end result of this is that the display will then change to reflect the new values of the Row States in the data table. I suspect, in your script, you are creating the bivariate chart, and then the Row Legends, and then somewhere later in your script you are clearing the Row States in your data table. If you want the chart to remain static after you create it, I suggest that once you create the chart in the form you want it, that you save it to a journal.