Fix bar chart spacing between bars in SSRS - reporting-services

I'm trying to create a report with a bar graph like the one shown. I would like the space between the labels 31 and 38 represent the space between the numbers 31 and 38.
In other words, I need the places where there are arrows to have more space (or labels with zero data).
Is there some way to do this?

You will need to return all x-axis values that you want to display but have a null when there is no value. The chart should still plot the x-axis points with no bar.

Related

SSRS combination column and line chart - line width

I've got a chart in SSRS where I have both line and column values.
Is there any way the line can extend out to the extreme left and right of the corresponding column for the month?
The Green line is the target and the orange columns are the Utilisation figures for the months
I've tried Strip Lines but creating the IIF expressions to capture the filtering is too much pain and you can't get varying results by Month.
You could try to stick your line on the secondary X axis and then play with the settings of that axis. Once you get the settings like you want them you can hide the secondary X axis from the chart area.

SSRS Stacked Area and Line Chart showing Gap between Dates

I have a line chart that is showing a series for the stack area. I have nulls for my data for a few months in a row which shows a gap in the chart which what I want a cliff. But when the chart resumes with non null data the chart starts from 0 and shoots up to the number lets say 98 in this case. How or which properties do I need to adjust in the chart that when I resume I can start off at 98 instead of 0 and climbing up to 98.
Rather than using a Stacked Area chart you could use a Stacked Column chart. For the data series you wish to be visible view the properties of the series, and under CustomAttributes set PointWidth to be 1.1.
When rendered this will then look like as below

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:

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.

Show 0 value in bar or column chart

In this screen shot from an SSRS report with bar charts, I would like for 0 values to display a tiny bit of color rather than just being blank. Here's what it looks like now:
Most of these charts have many series. I am generating a copy of the charts for each person under review and including the comparison values for everyone else in the group. I am thus coloring the bar representing the person under review differently from the normal color so they can easily see their performance compared to others.
Now, while there are y-axis labels, I would also like the 0 value to have at least a tiny sliver of color so everything is symmetric and the color can be seen. (I am also thinking about putting those with no data at all in the chart and need a way to distinguish those, so any ideas on how to accomplish that would help as well.)
I thought about making the axis start at -1 so the space from -1 to 0 would be colored, but I can't figure out how to get the labels to start at 0 (as shown) when I do this. I have played with quite a few settings and nothing is coming out right...
Sigh. I just figured it out.
Select the X axis.
Set CrossAt and Minimum properties to -1.
Set the IntervalOffset property to 1.
Important note: the chart in Design mode will NOT show correctly. Since I put an Interval of 20, it is showing -1 19 39 59 79 99, but when I actually Preview the report, the result is correct. Don't let yourself be thrown off by the design-mode pre-preview.
Now it looks like this:
If you leave out the CrossAt property, then the bars float away from the y-axis, leaving a gap. You must use all the properties I mentioned above to make the color reach past 0 all the way to the axis line.