Two different plots, one in 'append' mode and one in 'replace' mode with a single AjaxDataSource

Hello!

I am trying to create two figures - one which takes the data from an AjaxDataSource and replaces the current data with it, and the other which appends it to it’s current data.

The only way I could figure out how to do this was to use two separate AjaxDataSources, one in ‘append’ mode and the other in ‘replace’ mode. However, this requires sending two copies of the same data, which I would prefer to avoid if possible.

Is there a way to do this with a single AjaxDataSource?

Thank you!
Aven