Plot of Graph

Thread is closed for posting
2 posts, 1 answers
  1. Nitesh Gaba
    Nitesh Gaba avatar
    4 posts
    Member since:
    Apr 2010

    Posted 08 Apr 2010 Link to this post

    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..

     

  2. Answer
    Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 09 Apr 2010 Link to this post

    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.
Back to Top