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

Plot of Graph

1 Answer 56 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Nitesh Gaba
Top achievements
Rank 1
Nitesh Gaba asked on 08 Apr 2010, 07:19 AM
How can i start the plot the graph with out leaving any space between axis and plot area.

Attaching a file for helping you understand

<

 

telerik:RadChart ID="RadChart1" runat="server" Skin="BabyBlue" DefaultType="Line">

 

 

<Series>

 

 

<telerik:ChartSeries Name="Test" Type="Line">

 

 

<Items>

 

 

<telerik:ChartSeriesItem XValue="1" YValue="2"></telerik:ChartSeriesItem>

 

 

<telerik:ChartSeriesItem XValue="3" YValue="4"></telerik:ChartSeriesItem>

 

 

<telerik:ChartSeriesItem XValue="4" YValue="6"></telerik:ChartSeriesItem>

 

 

<telerik:ChartSeriesItem XValue="7" YValue="7"></telerik:ChartSeriesItem>

 

 

</Items>

 

 

</telerik:ChartSeries>

 

 

 

</Series>

 

 

<PlotArea>

 

 

<XAxis IsZeroBased="false" AutoScale="true">

 

 

</XAxis>

 

 

<YAxis IsZeroBased="false" AutoScale="true">

 

 

</YAxis>

 

 

</PlotArea>

 

 

</telerik:RadChart>

Hope you guys can understand from attached image what i am trying to achive..

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Giuseppe
Telerik team
answered on 09 Apr 2010, 03:02 PM
Hi Nitesh Gaba,

You need to set the XAxis.LayoutMode property to "Normal":

<telerik:RadChart ID="RadChart1" runat="server">
    <Series>
        <telerik:ChartSeries Type="Line">
            <Items>
                <telerik:ChartSeriesItem YValue="0" />
                <telerik:ChartSeriesItem YValue="11" />
                <telerik:ChartSeriesItem YValue="70" />
                <telerik:ChartSeriesItem YValue="90" />
                <telerik:ChartSeriesItem YValue="50" />
                <telerik:ChartSeriesItem YValue="31" />
                <telerik:ChartSeriesItem YValue="100" />
            </Items>
        </telerik:ChartSeries>
    </Series>
    <PlotArea>
        <XAxis LayoutMode="Normal" />
    </PlotArea>
</telerik:RadChart>



All the best,
Freddie
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart (Obsolete)
Asked by
Nitesh Gaba
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or