Adapt pie chart to new DB data type