Refactor chartable to hang of the metric and not the data.