click on chart to change quiz implemented for two charts