I'm having trouble creating a chart that combines a line chart with a stacked area chart in Tableau Public. I can create the line chart in Tableau, but after that, I don't know how to proceed. Attached is the chart I created in Excel that I am trying to recreate in Tableau.
Line + Stacked Area Chart
Thanks.
Make your chart a duel axis chart - to do this you must have at least 2 measures on your shelf - click on the right most measure a select 'Duel axis'. Once you've done this, you'll see that each measure has it's own tab on the Marks shelf, which means you can set different mark types on each - for example one measure can be a bar chart and the second can be a line graph.
Hope that helps,
Ben
Related
I have a graph that shows the ratio (count) of payable vs. processed words among the total words on stacked bars. I would also like to display the same ratio in percentages in lines overlapping the bars.
At the moment I have them in two separate graphs, but I want to merge them so that it takes less space in my dashboard view. I am unable to select the dual combination view as it requires two measures and even though I keep trying to cmd+click+drag the percentage measure pill to my marks, it's only changing the calculations in the bars but not allowing me to select the dual combination view.
Since the percentages are basically the ratio of the green/total in the bars, I don't think I need any complicated configurations for displaying it, however, I am also failing to achieve what I want.
Could you please tell me how to do this visualization?
Edit: I noticed that the reason I couldn't generate the dual combination view was that I had three date pills (year, quarter, month), and by removing two of them, I'm able to generate the dual combination view, but it's far from what I'm looking for as it's only splitting the stacked bar into bar+line.
Neeku, I certainly understand the desire to minimize "real estate" in your dashboard. If I understand your needs correctly, I believe that overlaying a transparent-background chart over the first chart might meet your needs, if a dual-axis chart doesn't work for you (for example, if you wanted to overlay a line chart on a column chart that is itself already dual axis).
By way of example, here is a simple Sample Superstore dashboard with a line chart on top and a stacked column at the bottom.
simple dashboard
Change the line chart to "Floating"
Size it to fit over your column chart and change the background to transparent by clicking anywhere in the line chart and select "Format"
...Format Shading
...and "None" for the color selection
Your line chart is now an overlay, but it's pretty messy.
Click on the line chart and hide field labels,
...turn off "Show Header" for each pill in the line chart
Clean things up and it should look better:
Note: one big issue with this approach is that you will not be able to click to select chart elements of the underlying chart.
This is the sample data to create that graph in tableau?
X,bar1,bar2,bar3,forline
Jan,157,942,1099,17%
Feb,172,1189,1365,14%
This can be done by creating a dual axis chart between the Line field and Measure Values, and adding the Measure Names to the filter pane to select Bar1, Bar2, Bar3.
Hope the below link helps:
https://public.tableau.com/profile/arunima4660#!/vizhome/SO_Ans/Sheet1
I have created a combination chart (2 bars and 1 line chart) in Tableau. However the line chart is not shown even though I have included in the Marks section. However if I undo, Analysis -> Aggregate Measure the line appear but the counts are not correct. Could anyone help.
View when Analysis -> Aggregate Measure is selected
View when Analysis -> Aggregate Measure is deselected
You need to syncronize the axis when creating a dual axis chart else these type of issues will come.
Right click on second chart and then click synchronize the axis and check the chart.
I am struggling to create stacked bar chart out of 3 separate bar charts in Tableau.
They suppose to look like this:
However, closest I've got is this in tableau
With other charts it's kinda easier with just dragging the values from rows into the y-axis and voala - stacked bar chart. Over here they just disappear, as I've removed them.
Hope anyone can shed light to my darkness with Tableau.
You were close with your second Tableau screen shot.
From that configuration, move Measure Names from the Columns shelf to the Color shelf. Then you will get a colored bar for each measure on the Measure Values shelf, instead of a column for each measure.
I am completely new to tableau and I got a requirement of creating a donut chat with showing text in center of that chart . I created a PIE chart with all necessary data and calculations but not sure how to convert that PIE chart in to a DONUT . I have multiple legends . Something like below .
Requeestig for help on this .
Steps:
Create a calculated field as 0.
Place it in the column shelf. Duplicate the calculate field in the Column shelf.
Select 2 Calculation - Right click and select the dual axis.
Now we see 2 marks in the mark card. Both are Circle in shape.
Change first Donut(calculation) to Pie and the second to Circle.
Modify the size of both Donuts to get the correct design.
Keep any measure you want in the second mark - Label. Change the alignment to middle and center.
Regards,
Deepak
https://www.interworks.com/blog/tmccullough/2014/03/06/tableau-cookbook-donut-charts.
Have a look and you will know. There is a cookbook you can download. Detail solutions are included in the file.