finalising markup/API for adding mini-charts