X Axis and Y Axis crossing 0 point

Thread is closed for posting
2 posts, 0 answers
  1. jimmy
    jimmy avatar
    2 posts
    Member since:
    Sep 2010

    Posted 04 Nov 2012 Link to this post

    X Axis's value type  and Y Axis's value type are number type.X - axis points are -2 , -1, 0, 1,2.Y-axis points are from -10 to 0.
    How to set X Axis and Y Axis crossing 0 point?
  2. Yavor
    Admin
    Yavor avatar
    11 posts

    Posted 08 Nov 2012 Link to this post

    Hi,

    Below is a working code snippet, showing one similar setup. I hope it gets you started properly:
    <telerik:RadChart SeriesOrientation="Horizontal" ID="RadChart1" SkinsOverrideStyles="true" runat="server">
           <PlotArea>
               <XAxis LayoutMode="Normal" MaxValue="5" MinValue="1" Step="1">
               </XAxis>
               <YAxis MaxValue="3" Step="0.5" AxisMode="Normal">
               </YAxis>
               <YAxis2 MaxValue="5" MinValue="1" Step="1">
               </YAxis2>
           </PlotArea>
           <Series>
               <telerik:ChartSeries Name="Series 1" Type="Line">
                   <Items>
                       <telerik:ChartSeriesItem YValue="0" Name="Item 20">
                       </telerik:ChartSeriesItem>
                       <telerik:ChartSeriesItem YValue="2" Name="Item 100">
                       </telerik:ChartSeriesItem>
                       <telerik:ChartSeriesItem YValue="1" Name="Item 100">
                       </telerik:ChartSeriesItem>
                       <telerik:ChartSeriesItem YValue="3" Name="Item 20">
                       </telerik:ChartSeriesItem>
                   </Items>
               </telerik:ChartSeries>
               <telerik:ChartSeries Name="Series 2" Type="Line">
                   <Items>
                       <telerik:ChartSeriesItem YValue="3" Name="Item 80">
                       </telerik:ChartSeriesItem>
                       <telerik:ChartSeriesItem YValue="1" Name="Item 10">
                       </telerik:ChartSeriesItem>
                       <telerik:ChartSeriesItem YValue="3" Name="Item 10">
                       </telerik:ChartSeriesItem>
                       <telerik:ChartSeriesItem YValue="1" Name="Item 80">
                       </telerik:ChartSeriesItem>
                   </Items>
               </telerik:ChartSeries>
           </Series>
       </telerik:RadChart>


    Kind regards,
    Yavor
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top