Read chart data from data attributes