Bar Chart - 'Uncluster' Bars

Thread is closed for posting
2 posts, 0 answers
  1. Alex
    Alex avatar
    8 posts
    Member since:
    Apr 2013

    Posted 06 May 2013 Link to this post

    I'm guessing the RadChart defaults to a cluster bar chart since that's the way it appears in the documentation. I need just need one bar per my data segments. My data is simply a name column and a value. Where am I going wrong here?


     <telerik:RadChart runat="server" ID="rcData" DefaultType="Bar" DataSourceID="sdsData" 
                   SeriesOrientation="Horizontal" Width="500px" Height="600px">
                  <PlotArea>
                     <XAxis Appearance-ValueFormat="General" DataLabelsColumn="Name"></XAxis>
                   </PlotArea>
                    <Legend Visible="false"></Legend>
                    <ChartTitle Visible="false"></ChartTitle>
                 </telerik:RadChart>
  2. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 09 May 2013 Link to this post

    Hello Alex,

     Indeed when you have chosen Bar Series and more than 1 serie belong to one and the same XAxis Label, the Chart "Clusters" the bars. I'm not sure what you mean by saying that you want to "uncluster" them. I'm assuming that you'd like to see the bars stacked.
    To have stacked bars you may follow our help topic and demo. The topic demonstrates how you can bind a single series to a List of objects. However to have stacked bars with N bars in a stack , you will need N number of series. The approach is absolutely the same as the one you'll use to cluster the bars. The onliest change needed is to set the Type of the series to StackedBar and Voilà.

    P.S. If this is not what you expect as result from the chart, please send us a sample image which shows how you'd like the bars to appear and we'll get back to you with our suggestions.

    All the best,
    Evgenia
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top