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

RadHtmlChart 2nd axis dock to right side?

1 Answer 51 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 14 Jan 2015, 03:59 PM
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

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 16 Jan 2015, 12:04 PM
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.

 
Tags
Chart (Obsolete)
Asked by
Doug
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or