added chart type toggle & table loads actual data