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

Thread is closed for posting
5 posts, 0 answers
  1. Cindie Tenneson
    Cindie Tenneson avatar
    14 posts
    Member since:
    Dec 2008

    Posted 17 Jul 2009 Link to this post

    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?.

     

     

  2. Cindie Tenneson
    Cindie Tenneson avatar
    14 posts
    Member since:
    Dec 2008

    Posted 22 Jul 2009 Link to this post

    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.
  3. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 23 Jul 2009 Link to this post

    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.
  4. Cindie Tenneson
    Cindie Tenneson avatar
    14 posts
    Member since:
    Dec 2008

    Posted 24 Jul 2009 Link to this post

    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.
  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 29 Jul 2009 Link to this post

    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.
Back to Top