telerik report chart percentage - c#

how can i get similar result on Telerik Report with showing percentage instead of the Count value that is shown by default.
i'm using C# in my application.
thanks

This is how it looks in my app
<telerik:PieSeriesDefinition AxisName="YourName"
ShowItemLabels="True"
ItemLabelFormat="#%{P0}"
RadiusFactor="0.7">
The key here is the ItemLabelFormat with RadiusFactor you can move it as far as you want from the center
Forgot to add this to the answer as well. Inside ChartDefaultView.ChartArea add this
<telerik:ChartArea.AxisY>
<telerik:AxisY AxisName="YourName" DefaultLabelFormat="#VAL{p}"/>
</telerik:ChartArea.AxisY>

Related

Concatenate number with string in RDLC report

I am using the chart in the RDLC report. I want to Concatenate the "¥" sign with values in X-axis as shown in the below image.
How I can do this?
Thanks in advance...
Finally got the answer, this works for me.
Steps:
right click on x-Axis and go to the Properties
go to properties - number
select custom options & use this expression "¥"#,0
To easily concatenate,right-click to get to the expression phase and type
= "¥" & Fields!ColName.Value
This should work

How to align the first column of listView to the right? [duplicate]

I have a Listview in detail mode with 3 columns. I want to set the text align for the headers to "center". This works for the last two columns but not for the first. If I want to change it to "center" and click on "center", the field keeps being set to "left". Can I change this using the properties or do I need to program this?
Thanks.
According to the documentation:
Due to a limitation in the underlying control, this property has no effect on the first column in the ListView control, which is always aligned to the left. To work around this limitation in .NET Framework version 2.0, you can handle the ListView.DrawColumnHeader event and paint the column header yourself.
Another alternative workaround is to not use the first column at all and hide it by setting its width to zero.
I have got a simple solution: Add a new (not needed) first column. Change the alignment of the second column (your real first column) to right or center (can now be done in the designer). In Form-Load-Event remove the first (temporary) column. Voila - the textalignent now should be correct.
I have testet this behavior under Windows 7, 8.1 and 10. It should work.
greetings from germany
I realize this is an old post, but I just found another workaround. If you insert whitespaces just before the header text you are inserting or changing in your code (I know it's rough and you need to calculate how many spaces gets your header centered, but it works!) then you can alter the position of the first column's (0) header text as follows:
ListView2.Columns(0).Text = " " & ListView1.SelectedItems(0).Text.ToString

Asp.net chart control IsValueShownAsLabel and label will display values with $ symbol

I have set IsValueShownAsLabel to true in asp.net chart control.
I am trying to show these visible lables as $100.00 instead of showing only numerics like 100.00 or so.
Is there any way as I understand that only numerics can be visible as lables.
chartSeries.LabelFormat = "${0.00}";
solved my problem
Edit:
The most professional way with hints from prthrokz's comment to the question.
chartSeries.LabelFormat = "{0:C}";

ReportViewer asp.net webform, sales report. Click to expand row detail. C#

I'm trying to do a sales report that lists each order with a little plus icon beside it, once clicked the order row should expand to show the order details. I'm using the reportviewer for the first time and having it working to show the basic order info.
What I'd like to have now is each row expand when clicked to show the order details. So row 1 might list the buyers name, address etc and when clicked you see what they bought.
Given that I'm totally new at this kind of reporting (never heard of Tablix before using this reportviewer) is there a relatively easy way of displaying this data?
did you check http://www.gotreportviewer.com/?

Ms-Chart Label Format Question

I created a PieChart with the new Ms Chart Controls. How can I format the Labels (Point Values inside the Pie) like the folllowing: "LabelName AbsoluteValue (Percentage)"? For example: "Usa 856027 (56 %)".
Is this possible with the right format information in LabelFormat alone (How?) or do I have to use a custom label format (How?) ?
Thank you very much!
Rupert Rand
You can include keywords in the Label property, which can either be set in the GUI(through the Series Collection Editor) or in code. I would recommend setting it through the GUI since it would not require a full knowledge of the available keywords. If you instead want to set it in the code, it would look similar to this (assuming I understand what format you are requesting): Chart.Series(0).Label = "#ValX #Val (#ValPercentY{P0})".

Categories

Resources