RadChart Bar Auto Scaling XAxis Values

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

    Posted 03 May 2013 Link to this post

    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>
  2. Alex
    Alex avatar
    8 posts
    Member since:
    Apr 2013

    Posted 03 May 2013 Link to this post

    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>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top