globalized chart function for stacked and pie_scatter, changed some design, and fixed some number formatting