Adding toggle for dynamic charts