Learn how to a build a cloud-first strategyRegister Now


Create stacked Bar Chart

Posted on 2011-10-12
Medium Priority
Last Modified: 2012-05-12
looking for information on how to create a stacked bar chart, i have been googlein but can not for life of me find a good page that talks about how to create a stacked bar chart from making data to presentation.  I can get the data its the spresentation part.  The following is my data counts

Total            Final               Initial         FNONDep       FDep            INONDEp           IDEP
255      141      114      53      88      48      66

So teh total is for the side Axis, then I need to create stacked bar charts of hte Final versus Initial   So the stacked chart needs to be the FNONDEp and FDEp cobine in chart to make FINAL and same for INONDEP and IDEP.  My problem is each time I add a number to chart it keeps making it same bar, how do i seperate them or craete different series.
Question by:kdeutsch
LVL 41

Accepted Solution

Kyle Abrahams earned 2000 total points
ID: 36965117

Would try this:

select total, final num, 'final' val into #temp
insert into #temp select total, initial,'initial' val
select * from #temp

that will create your correct dataset.

Then your series becomes num, and your group is val.

Author Closing Comment

ID: 36975923

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
Suggested Courses

804 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question