I had a chart defined in v6.10 where I changed the Datasource depending on an option chosen:
pieProducts.setDatasource(offerStatsDs);
or
pieProducts.setDatasource(productStatsDs);
When I change to v7 Data Containers, how do I do this? The only thing I can find is setDataProvider(), but a CollectionContainer is not a DataProvider.