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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
samratmaskey
Contributor II
Contributor II

stacked bar chart

is it possible to create a stacked bar chart in qlik sense?

i have created a sample chart in link below

Capture123.JPG

https://jsfiddle.net/upvcss43/1/

6 Replies
shraddha_g
Partner - Master III
Partner - Master III

Stacked bar chart is possible with default bar chart

shraddha_g
Partner - Master III
Partner - Master III

Also You can use extension Qlik Branch

Neymar_Jr
Creator II
Creator II

Yes, it is possible.

Go to Appearance > Presentation > and then select Stacked from the option available.

samratmaskey
Contributor II
Contributor II
Author

Hi Shraddha,

Thanks for your reply.

in a hurry i typed "stacked bar chart", but i was trying to say "stacked and grouped bar chart".

there are 3 dimensions[Gender, Location, fruits] and 1 measure[total consumption].

Thanks for your help

samratmaskey
Contributor II
Contributor II
Author

Hi Rajesh,

Thanks for your reply.

in a hurry i typed "stacked bar chart", but i was trying to say "stacked and grouped bar chart".

there are 3 dimensions[Gender, Location, fruits] and 1 measure[total consumption].

Thanks for your help

samratmaskey
Contributor II
Contributor II
Author

if i use API i can create 3 dimension and 1 measure and it does generate the chart properly.

app.visualization.create(

            'barchart', ['Gender','Location','Fruits','=Sum(totalConsumption)'],

            {

                "orientation": "horizontal",

                "dataPoint" : {"showLabels": true},

                "gridLine": {"auto": false, "spacing":3 },

                "title":title

            }

          

        ).then(function(chart){

            chart.show("onFlyChart");

            deferred.resolve(chart);

            });