SQL Reporting: percent on repartition graphs? - reporting-services

I've to create a graphic with some percent information:
The percentage can be either IN the graphic, outside of the of the pie chart(but it has to be near the corresponding part).
I didn't found how to do this in the report builder 3.0, do you know how I can achieve this?
Actually I've numbers(e.g. 3300, 3000, 400, I can certainly transform them in percent if needed).
Thank you!

After you create your pie chart, right-click on any of the pie slices in Design mode and select Show Data Labels. You will see sample values display on your chart. Right-click one of the labels and select Series Labels Properties - you can then set font, color, formatting, etc. The default is to display inside the pie slice. If you need to control position, select one of the sample values and then see the Position property in the Properties window to adjust.

Related

SSRS: How to improve the presentation of labels on a pie diagram?

I have a circular diagram and I am using the keyword #PERCENT to present the percentages of the different categories. But sometimes the labels overlap.
enter image description here
I have tried different tag property settings but i can't fix it.
I have also tried to configure an expression, but it generates an error:
=IIf( Cint(#PERCENT) < 1 , "", #PERCENT )
How can I improve the presentation?
Thank you! in advance
There are a few things you can do.
To fix what you are already trying to do you need to change your expression to something like
= IIF(
SUM(Fields!Amount.Value) / SUM(Fields!Amount.Value, "DataSet1") <0.01,
0,
"#PERCENT"
)
The assumes the pie chart is based on a fields called Amount and your dataset is called DataSet1 .
Then you need to set the Format property of the datalabel to something like
0.00;(0.00);' '
It's the part after he last colon that is important here ;' ' means, show zero's as a space.
You could set the label position to Outside so tey are not as close togther
You could "Explode" the small slices into another pie or move the these slices away from the main pie by setting the CollectedStyle in the CustomAttributes property group
in the example below this says "any slices that are <=20% or the chart" move them into their own mini chart.
Look at the SmartLabels property group in the Chaer Series properties.
Hopefully with this info you will have enough to improve your chart.

SSRS Chart Title - change font size for a part of the title

I have a situation in which I have developed a visual chart in SSRS
2012. The chart title is fixed -
Schools Performance in MyCity (County, State, Country)
(Remember, the above title is NOT dynamic, so the situation is easy to handle.)
(1) I need to keep the first part :
Schools Performance in MyCity (left 30 characters) at a font size of 12, Bold
(2) I need to keep the second part starting from the bracket "(" and ending in the other bracket ")" :
(County, State, Country) (all characters after the left 30 characters) at a font size of 8, non-Bold and italic.
I am not able to use multiple title boxes due to space constraint in the chart
I need to get the equivalent of some T-SQL string functions such as CHARINDEX, PATINDEX, etc. in SSRS. I am not too familiar with string functions inside SSRS.
Can anyone provide me a solution on how to achieve my goal?
Any suggestion will be greatly appreciated.
I think the best way here is you delete your chart title and add a textbox above your chart. In this textbox you can write your text with the desired formating (Home Tab > Font). If SSRS rearanges the position of the textbox and the chart, put the chart and the textbox in a rectangle, so they stay where you place them.
As far as I know rich text or formating in the title is not possible.

How to fix pie charts size in SSRS

I have 4 charts created in SSRS 2017 and I need them to be the same size.
Are there any settings (and where? in SSRS) to make size all the same for all of my 4 charts?
When I go into Chart Area properties, there is nothing about the chart size...
Please help!
Update:
When I clicking on the Chart Area slightly outside the actual chart I see the following Chart Properties:
You can control the position of the chart area and the plot position of the pie within the area by setting the CustomPosition and CustomInnerPlotPosition properties. Select the chart area first to see these properties.
Please note: You must select the CHART AREA object in the designer not the chart Just click slightly outside the pie to select the correct area then you will see these properties.
You can do the same for the legend too if required so you can get full control over the final rendered size.
It does take a bit of trial and error to get a layout that suits all your needs but it can be done.
You cant directly influence the size of the chart, like Hannover Fist said it depends on multiple conditions (for example the legend). What you can do is to put the legend on top or on bottom of the chart (the reason for the different sizes of your charts it that the legend text from right to left is different, thus it uses the space from the visual). This way the size of the chart should be more or less the same size. Right click on your legend Legend properties > General > Legend position. With the MaxAutoSize property from the legend you can a little bit control the size of your legend.
To your second question. No, a chart (also tablix and matrix) can only have one Dataset as source. You can see this in the chart properties at the drop down list. You just can chose one element. But you can create one big dataset with all the data for the different charts. Then assign this dataset to one chart and copy it. And then you set different filters to the charts.
For me the above didn't help. The varying sizes of pie charts related to the fact that some had been set to have their series value > label > position = outside and others were position = auto. All pie charts had their labels hidden so you coudln't see them at all but SSRS was allowing space for them when set to position = outside. This made it extremely frustrating to chase down where the difference in size was coming from. Hope this may help someone who comes across a similar issue.

How to set fixed colors for series legend?

I am using Telerik Reporting and creating reports with Report Designer.
What I want to do is set fixed colors for specific series elements.
For instance, in a monthly financial bar chart, if the series is Company, I want to set ElectricityCost as red and WaterCost as Blue all the time. The problem is that not every bar has all types of the cost, and for a specified time range, not all types will be included, which causes that the color legend varies.
I've tried some approaches but failed.
Is there anyone who knows how can I achieve this goal?
Finally I find how to set the color for specific series.
The data points' color can be set by using the Graph.Series.BarSeries.DataPointConditionalFormatting property.
The legend markers' color can be set by using the Graph.Series.BarSeries.LegendItem.MarkConditionalFormatting property.
Besides the color, other styles can also be set so that for a certain series, the style will not change even no data is displayed after the filtering.

How to resolve Legends formatting Issue in SSRS pie Chart

I am using SSRS reporting. I have designed a report which contains some Pie Chart.
All the things working fine. There is some issue around the Legends alignment and font family .
If you see attached image. You will see the 1st Pie charts legends are different than 2nd pie Chart's Legends.
I have set same properties for both pie Chart's Legends.
Can any body suggest the solutions regarding this issue.
Thanks in advance
Ashish Bisht
Try to give same size to both the pie charts, if layout of Lengends is not matching and check if this resolves your problem.
Try to give same size to the chart area of both the charts (Select Chart Area, F4, in the properties window look for Custome Position, Set Enabled to TRUE, give Height, Width, Left, Right ). Check if this gives same size to your chart area.
If you are trying to have same legend text value, then try this,
Right click on Series (in char data box) ---> Series Properties --> Legend -- > Custome Legen Text .. Here you give the text you want to see in your Legend.
Try the three possibilities, hope any one of the three resolves your problem.