I would like to add a bar chart on click of a button and line chart in the same container on click of a different button.
how do i do it?
e.g suppose I have two buttons AM, PM
onlick of AM i want the title of chart to be displayed as AM
and respectively on click of PM, title of chart to be displayed as “PM”.