I created a large collection of expression functions that allow you to make complex data manipulations without the overhead of scripts. While not using Apex Stacked charts, my Tag Report Utility includes high-performance use of Apex charts with high-density historian data. (The speed contrast with IA's native TS chart is astonishing.)