Monday, March 26, 2012
Formatting the Y axis of chart
it to show 10% Or instead of 1,000 I may want it to show $1000 (with
dollar sign). Basically I'm just trying to learn how to manipulate it
period.
Thanks!How a Chart's Y axis values are fomatted are controlled via the Chart Options
dialog : Y Axis tab. In your case you will need to supply a formatting string
in the Format code textbox. The information at this link will give some idea
about how to construct the string:
http://msdn2.microsoft.com/en-us/library/26etazsy.aspx.
"Malik" wrote:
> How do you change the Y axis? For instance, instead of 10, I may want
> it to show 10% Or instead of 1,000 I may want it to show $1000 (with
> dollar sign). Basically I'm just trying to learn how to manipulate it
> period.
> Thanks!
>
Wednesday, March 21, 2012
Formatting labels in chart
I have one report with chart. And labels of X axis at this chart are too long. How can I format them to show, for example, only 3 first symbols of titles?
As far as I understand, to solve this problem I should use Format property. But I know only about formatting date and numbers, not strings.
Can you help me?
Thank you.
I have a similar problem. The labels are little too long and are shown alternatively on 2 different lines.
Is it possible to have the labels angled at 45 degrees or something?
Thanks for any help!!!
|||To shorten labels i use "substring" in the sql-query..
select label, substring(label,1,5) as shortlabel, value from table (MSSQL)
select label, substr(label,1,5) as shortlabel, value from table (Oracle)
|||
in the Label property do the following.
= Code.getThreeCharsFromMyLabel(Fields!LabelField.Value)
In the code section of the report you could write a function named "getThreeCharsFromMyLabel" that accepts the label string and returns a Substring of the label.
and thats it u get what u want...... :)
|||Note: you could also just use the =Left(..., 3) function to get the first 3 characters: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vafctleft.asp
-- Robert
sqlFriday, March 9, 2012
Format Y axis label as percentage
I have entered the code as P0 when formatting my Y axis to show 0% to 100%. This showed me percent values as 0% to 10,000%. Then after reading the forums I put the major gridline interval as 0.2 to get jumps of 20% but this just puts a lot of lines on the chart as 0,0.2,0.4 till 10,000%.
How can i fix this one ..
Thanks
Kiran
Kiranvukkadala wrote:
I have entered the code as P0 when formatting my Y axis to show 0% to 100%. This showed me percent values as 0% to 10,000%. Then after reading the forums I put the major gridline interval as 0.2 to get jumps of 20% but this just puts a lot of lines on the chart as 0,0.2,0.4 till 10,000%.
How can i fix this one ..
Thanks
Kiran
Have you set the minimum value on the scale to zero and the maximum value on the scale of the Y-axis to 100?
|||
Yes I have done so. I have tried removing that too
No luck
|||Possibly the issue is your data. What is the maximum value of your data? Have you divided this into your field?
For example, if you try to display change as a fraction of a dollar:
Then one penny should be 1% of a dollar. To get 1%, you take 1/100 = .01 (1%)
If you didn't divide by 100, however, then one penny would be 1.00 (100%).
A dime would be 1000% and so on.
One dollar would be BEHOLD 10000% (There's that 10000 percent).
Most likely you have just put the field as raw data, not as a percentage and expected the format expression to do the division for you.
Try dividing by 100!!!!
|||
I have got a stacked chart and on the data fields I have put in 2 fields
% received and % latewhic combine together to give 100%.
The data points is actuallys et to give teh actual counts of these fields.
So would this count as raw data?
If I divide this percentage number by 100 it goes really small on the graph but the scale remains the same. How can I modify the scale.
I appreciate the time.
Kiran
|||Oh I thought you were saying your data was going to 10,000%. Try changing your Y-scale to a minimum of zero and maximum of 1.
|||
Thanks for the replies.
I have tried that possibility too. This option is successfull in creating the axis from 1% to 100% but the data itself goes wrong. There is no split between the received and late numbers and its either 100% received or 100% late. I dont know why it does that. My assumption is that since maximum value of 1 is specified only the first 1% of the data is displayed.
Kiran
Wednesday, March 7, 2012
Format numbers on chart y axis
How can I format number on chart's y axis? I wanto to show 1.000 instead of 1000.
Thank you!
Set the format property on the y-axis tab of the chart properties dialog.
More information about chart label formatting is available in the following whitepaper: http://msdn.microsoft.com/library/en-us/dnsql90/html/MoreSSRSCharts.asp?frame=true#moressrscharts_topic3
-- Robert