RadHtmlChart 2nd axis dock to right side?

Thread is closed for posting
2 posts, 0 answers
  1. Doug
    Doug avatar
    70 posts
    Member since:
    Aug 2014

    Posted 14 Jan 2015 Link to this post

    I used this code to add a 2nd y axis
    Dim axis As Telerik.Web.UI.AxisY = New Telerik.Web.UI.AxisY
    axis.Name = "AdditionalAxis"
    Rad1.PlotArea.AdditionalYAxes.Add(axis)

    and when creating series I can tell a series to bond to the 2nd additional axis with
    oSeries.AxisName = "AdditionalAxis"

    but my 2nd axis is on the left side - how do I tell it (with API) to dock to the right side of the chart?
    I see it in the example here but don't see how it is done.
    http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/multipleyaxes/defaultvb.aspx?show-source=true
  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1494 posts

    Posted 16 Jan 2015 Link to this post

    Hi Doug,

    You must configure the x-axis crossing points collection, which indicate the point through which all of the y-axes cross the x-axis. For example:

    <XAxis>
        <AxisCrossingPoints>
            <telerik:AxisCrossingPoint Value="0" />
            <telerik:AxisCrossingPoint Value="4" />
        </AxisCrossingPoints>
        <LabelsAppearance DataFormatString="Quarter {0}" />
        <Items>
            <telerik:AxisItem LabelText="1" />
            <telerik:AxisItem LabelText="2" />
            <telerik:AxisItem LabelText="3" />
            <telerik:AxisItem LabelText="4" />
        </Items>
    </XAxis>



    Regards,
    Danail Vasilev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top