This is a migrated thread and some comments may be shown as answers.

Can I easily change % calculation from series to x-axis groups

4 Answers 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Cindie Tenneson
Top achievements
Rank 1
Cindie Tenneson asked on 17 Jul 2009, 04:51 PM
I am using the following from the percent example to change graph from counts to percent:

 

'renders as percent or count depending on choice in 1stSelectType
Dim s As ChartSeries = trcRadChart.Series.GetSeries(intInnerLoopCount)
Select Case lstSelectFormat.SelectedIndex
 Case 0
    s.DefaultLabelValue = "#%"
     Exit Select
Case 1
    s.DefaultLabelValue = "#Y"
    Exit Select
End Select

My user want the percent calculated based upon the grouping on the xaxis - is there an easy way to do this?.

 

 

4 Answers, 1 is accepted

Sort by
0
Cindie Tenneson
Top achievements
Rank 1
answered on 22 Jul 2009, 04:31 PM
Not sure if I was clear on the problem.  I have a list where they can choose to render the chart in percent or counts.  When they select percent the percent is calculated across the series and not by the grouping on the x-axis.  In my case I show several series grouped by year.  I would want the percent to be by the year.

The only way it currently works correctly is if they use a stacked bar graph, but I want it to work correctly no matter which graph type they choose.

I really need some help.  I don't want to have to write new select statements for my 90+ graphs to recalculate in percentages.
0
Vladimir Milev
Telerik team
answered on 23 Jul 2009, 07:09 AM
Hello Cindie Tenneson,

The stacked bar graph is the one most sematically appropraite for your case. It is designed to show percentages/ratios between values for a certain X group. What's the problem with using stacked bars?

Best wishes,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Cindie Tenneson
Top achievements
Rank 1
answered on 24 Jul 2009, 02:08 PM
The stacked bar doesn't look the best.  I can send you pictures if you can tell me how.  The intelligent labels get too crowded and it is impossible to read.
0
Vladimir Milev
Telerik team
answered on 29 Jul 2009, 02:33 PM
Hello Cindie Tenneson,

You can always increase the chart size or hide the labels as a work-around, however, stacked bar chart is the only one that can represent the relation you want.

Best wishes,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart (Obsolete)
Asked by
Cindie Tenneson
Top achievements
Rank 1
Answers by
Cindie Tenneson
Top achievements
Rank 1
Vladimir Milev
Telerik team
Share this question
or