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

RadChart Bar Auto Scaling XAxis Values

1 Answer 105 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 03 May 2013, 02:30 PM
I need this bar chart to label each bar with the data from the DataXColumn. The Values range from 1000-1200. The problem is that the chart starts the XAxis range at 0 so all my bars are clustered together in the middle of my chart. If I set Auto Scale to False, all my bars disappear and the XAxis range is 1.-7. How do I set the Xaxis plot range?

<telerik:RadChart runat="server" ID="rcBar" DefaultType="Bar" DataSourceID="sdsBar" Width="600px" Height="500px">         
                 <PlotArea>
                    <XAxis></XAxis>
                 </PlotArea>
                 <Series>
                    <telerik:ChartSeries Name="BarVals" DataYColumn="YCol" DataXColumn="XCol" Type="Bar">
                    </telerik:ChartSeries>   
                </Series>
                <ChartTitle>
                 <TextBlock Text="Chart 1">
                 </TextBlock>
                </ChartTitle>
</telerik:RadChart>

1 Answer, 1 is accepted

Sort by
0
Alex
Top achievements
Rank 1
answered on 03 May 2013, 02:53 PM
I think I resolved this issue. Removed DataXColumn from ChartSeries. Edited XAxis in Plotarea. 

<telerik:RadChart runat="server" ID="rcBar" DefaultType="Bar" DataSourceID="sdsBar" Width="600px" Height="500px">          
                 <PlotArea>
                    <XAxis Appearance-ValueFormat="General" DataLabelsColumn="XCol"></XAxis>
                 </PlotArea>
                 <Series>
                    <telerik:ChartSeries Name="BarVals" DataYColumn="YCol" Type="Bar">
                    </telerik:ChartSeries>   
                </Series>
                <ChartTitle>
                 <TextBlock Text="Chart 1">
                 </TextBlock>
                </ChartTitle>
             </telerik:RadChart>
Tags
Chart (Obsolete)
Asked by
Alex
Top achievements
Rank 1
Answers by
Alex
Top achievements
Rank 1
Share this question
or