I’m having some difficulties in understanding what’s more future proof for adding data to Charts.
The documentation (https://doc.cuba-platform.com/charts-6.5/chart_data_binding.html) lists three different approaches:
1 - DataProvider, but ListDataProvider is deprecated
2 - CollectionDatasource
3 - Simpified Data Binding API, which looks like the new way, but MapDataItem is already (or still?) deprecated. Also, I can add data with this method, but how can I remove it from the chart?
Is using a Datasource the suggested way to handle this? Are ValueCollectionDatasource flexible enough to handle directly custom data produced by Services and Controllers?