fix the donut partition & legend