revamp chart-rendering