support getting stats by a string key
draft of chart api, still many classes should be replaced by interfaces