migrate legacy piecharts