How to flip bar chart horizontally in Tableau? - bar-chart

I have made a bar chart using the count of genders & age groups of a dataset. It came as a normal bar chart.
But, I want to flip the chart horizontally. Simply, I want the Y Column on the Right side of the chart, not on the Left side (The traditional way).
N.B.: I don't want to swap the axis i.e. interchanging x and y axis.
I have created this: Created chart
But, I want to create like this:
Desired chart

A very easy thing to try is to edit the axis (by right clicking on the axis and choosing edit, or by just double clicking on the axis. Then you can check the reverse axis option and see if that satisfies you.
The axis will be reversed as you requested but the labels will still be on the left.
Putting the bar labels on the right requires more effort. One way is to make a separate chart that just lists the labels and then combine both on a dashboard

Related

Horizontal Axis Properties

In my chart, Incomprehensible what value of Y axis belong to X axis, what the best way to present the chart clearly. Attached Image.
Have you considered using StripLines?
Taken from this MSDN article
To show vertical strip lines, right-click the horizontal chart axis and click Horizontal Axis Properties.
Select the Use interlacing option. Grey strip lines will appear on your chart.
Applying this to a chart will then alternate the colour for each category on the X axis, such as this. This will make it clearer which columns belong to which X axis category.
Update
For use with a 3D Clustered column chart you will need to set up the Striplines in a more complicated way.
Select your X axis and find StripLines in the properties. Hit the '...' to open a new window.
Add a New Member and set it up as shown in the below image. This is effectively saying show a line for every second number, and offset the stripline by 0.5 of a category.
In my example I have set the BackgroundColour to MidnightBlue also, which gives an output similar to
With this alternating background it should make it clearer for your users to see which columns belong to which category.
Let me know if you need further assistance with this.

RDL report - Chart with both bar and lines

I want to show in one chart report two series of data, one as a horizontal bar and one as a line. When I select for the second series a line chart type, it changes also the chart type for the first series which was set to bars.
This works if I'm using vertical columns for the first series, but it seems it is not working the same with horizontal bars.
Is there any way around this?
No. You cannot create a chart with horizontal bars and lines.
SSRS doesnt allow it.
It is not logical to join two concepts which is transpose of each
other. It is like showing vertical bar chart and horizontal bar chart
in the same graph.
Line charts are used to show overall trends and
patterns over time(usually) or some other series. Bar charts are good
for comparing unordered/nominal items.
You need to reevaluate your decision to show these two together.

SSRS - How to align the vertical axis of 2 chart areas on the one chart

I have basically loosely followed this link
http://www.angelsbiblog.com/2012/02/improve-data-visualization-in-your-ssrs.html
and made the below linked graph. Its one dataset, I have simply pulled in Gross Profit and Sales fields. Neither are calculated fields. I put them in 2 different chart areas, but then as per that link, made the chart areas the same size so they overlay.
*Apologies for a photobucket link instead of inserted image but I don't have 10 reputation points to be able to insert images.
http://i1375.photobucket.com/albums/ag447/AndrewJacksons/IncomeandProfit_zpse074ac02.jpg
what I want to do, is as illustrated by that inserted green arrow in the graph image, is raise up the Zero line for the Income bars (yellow) to the same level as the Profit/Loss(Blue-Red).
I also want the vertical axis to preferably have the same axis, so i dont have to have that secondary axis on the right.
However the main thing is the graphs sharing their zero line. I have made the Profit bars smaller I width than the yellow bars, so in a month of blue profit, it would simply sit neatly inside the yellow income bar.
I haven't added expenses because it should be obvious what they are by the height differential btw Income to Profit or to the Loss.
Any ideas much appreciated.
I have just experienced this problem, but this page did not solve it.
Dan's answer ("simply set the minimum and maximum values for the vertical axes on both areas manually") came close, but did not solve the problem for me because I needed the axis to be automatically calculated. If the maximum of the two datasets is something like 193,456 then you get that exact value as a label on the axis rather than the sensible value of 200,000.
The solution is to allow SSRS to calculate the axis labels automatically but to trick it by using both sets of data in each chart. Then you hide the data set that you don't want the user to see.
In each chart I made the data series of interest a column chart and the other data series a line chart (without markers), as all you need to do is set the fill color for the line series to None. If you try the same with columns for the other series the invisible columns affect the position of the visible columns even if they have been set to zero width.
Make sure both series in the chart use the Primary Vertical axis. Go into properties for the Income series > Go to "Axes and Chart Area", and make sure that the series uses the primary vertical axis:

"Target for each bar in spotfire" or "Combination of line and stacked barChart"

In Spotfire:
In a BarChart is it possible to add small target lines for each bar?
A way around I have done is that I converted it to combination chart and the added a line to show the target points for each bar.
But the problem comes if my Bar chart is stacked by some column. In combination chart we have only "series by" and not color by. i.e. I cant combine a line chart and stacked bar chart.
A related question already asked in spotfire community
I have done this by putting the Category axis column in the Trellis Column axis instead. Then remove the column from the Category axis, so you get one bar for each trellis panel.
Now you can add "Horizontal line from data table" and set it to "One per: trellis panel".

SSRS stacked bar chart label position

I am using SQL Server 2012. SSRS
I have a stacked bar charts that includes interest and dividends. I would like to add the sum of these values to the area just above the stacked bar chart. I have tried adjusting various properties for the labels but I can't get the label position to be anywhere but the middle of the stacked bar chart. Any ideas how to get these labels to be just above the stacked bar charts?
I tried the solutions mentioned here and found them cumbersome compared to this gem: http://peltiertech.com/label-totals-on-stacked-charts/
Add a "total" to your dataset (in my case, a percentage)
Add the total series to your stacked bar chart
Change the total series chart type to a line
Hide the line and line markers by setting their fill color to none
Set the Total series to not show in the legend
Set the data point position for your total series to "Top"
Here is my result:
There is not a way to do this with settings.
Here are a couple of links that give you step by step instructions:
http://beyondrelational.com/modules/2/blogs/65/posts/11575/display-total-on-top-of-stacked-chart.aspx
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/654f30c2-ad3a-4b4e-a34f-adf4db6b78d2/stacked-column-chart-total?forum=sqlreportingservices
Basically, the workaround is to create another series or category in your chart that is the totals (which requires updating your dataset to include the totals), make it transparent, and turn data labels on. The MSDN answer says to make it a line chart while the Beyond Relational article leaves it as part of the stacked bar. Either way will work.