improved gon.data pass and added chart legend