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

Bar Chart - 'Uncluster' Bars

1 Answer 46 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 06 May 2013, 09:00 PM
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>

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 09 May 2013, 02:31 PM
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.
Tags
Chart (Obsolete)
Asked by
Alex
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or