Improved styling of getIndexStatsAndGraph(), and better performance of graph (downsampling etc)