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

Bar versus Line

2 Answers 43 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
robin
Top achievements
Rank 1
robin asked on 02 Sep 2008, 02:31 PM
Hi  - trying to get a RadChart to display less like a Bar Chart and more an x-y 'line' chart

i.e along the x axis i would like the step values to align to data points on a series - currently a value of zero 'looks' like it starts as 0.5 (in the middle). is this a display setting perhaps

any help appreciated

2 Answers, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 03 Sep 2008, 10:44 AM
Hello robin,

If we understand you correctly you can achieve the desired effect by setting the XAxis.LayoutMode property to "Normal" like this:

<telerik:RadChart ID="RadChart1" runat="Server" AutoLayout="true"
    <Series> 
        <telerik:ChartSeries Type="Line"
            <Items> 
                <telerik:ChartSeriesItem YValue="20"></telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="30"></telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="10"></telerik:ChartSeriesItem> 
                <telerik:ChartSeriesItem YValue="50"></telerik:ChartSeriesItem> 
            </Items> 
        </telerik:ChartSeries> 
    </Series> 
    <PlotArea> 
        <XAxis LayoutMode="Normal"></XAxis> 
    </PlotArea> 
</telerik:RadChart> 


Hope this helps.


Kind regards,
Manuel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
robin
Top achievements
Rank 1
answered on 03 Sep 2008, 01:37 PM
perfect - i knew it had to be something simple

cheers Manuel
Tags
Chart (Obsolete)
Asked by
robin
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
robin
Top achievements
Rank 1
Share this question
or