copied in stacked are chart code
starting to show graph with moment based calculator