Fix scope leak
Put chart type config to popup
Simplify legend, support separators
Layered pie chart