[dynamicCharts] pass IDs and not data to the directive