Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
AbhijitBansode
Specialist
Specialist

Query regarding bar graph

I have an requirement of changing bar chart between Groped and Stacked type.

Is it possible to switch the chart type between grouped and stacked on button click(using single bar chart).

5 Replies
AbhijitBansode
Specialist
Specialist
Author

I have one more requirement for hide and show the value on bars.

Is it possible to hide and show value on bars on button clik(In Single Bar chart)

maneshkhottcpl
Partner - Creator III
Partner - Creator III

Hi,

As per my understanding u want the macro to show and hide the expression(Bar) on button clik.

If it is correct. Then please refer the application attached.

deepakk
Partner - Specialist III
Partner - Specialist III

hi Abhijit,

I found a soln for Stack bar. You can check it out.

AbhijitBansode
Specialist
Specialist
Author

Thank you for solution.

Not applicable

Hi,

you try this macro to change stacked bar chart to group bar chart and vise-versa

sub changechartmode
set chart = ActiveDocument.GetSheetObject("CH01")
set p = chart.GetProperties
if(p.ChartProperties.BarModeStacked = false) then
p.ChartProperties.BarModeStacked=true
else
p.ChartProperties.BarModeStacked = false
end if
chart.SetProperties p
end sub

Regards,

Yogesh