I think there is no such direct function in Qlikview to get the type of chart currently displaying. Check this thread hope it helps you.
We can get the chart type by using below macro
Macro to get fast change chart type in a variable
10 - Pivot Table
11 - Straight Table
12 - Bar
15 - Line
Sub GetChartType() set chart = ActiveDocument.getsheetobject("CH01") set p = chart.GetProperties set v = ActiveDocument.GetVariable("vFastChangeChartType") v.SetContent chart.GetObjectType,true end sub
but we cannot trigger this macro when fast change is applied. So, better create separate charts and then show and hide based on the button clicks.
Hope this helps you.