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

Custom the position of xAxis (equivalent with TKChartNumericAxis.offset on iOS)

1 Answer 34 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Hien
Top achievements
Rank 1
Hien asked on 26 Oct 2016, 08:27 AM

Hi, i'm working on an project with both iOS and android version.

i'm drawing a chart which have yAxis's range from some negative value to some positive value. And i want to show the xAxis at the zero position of yAxis.

on iOS, this can be done simply by set <TKChartNumericAxis>.offset = 0. You can see the result in attached.

But i can't find the equivalent proprety on android, with LinearAxis. 

Could you show me how can i archive this on android?

Thanks alot.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 31 Oct 2016, 07:26 AM
Hi Hilen,

Thanks for writing.
Our numerical axis has a property called RangeExtendDirection. Please try calling: 
axis.setRangeExtendDirection(NumericalAxisRangeExtendDirection.BOTH);

Please note that this is supported only by the numerical axes which are LinearAxis and LogarithmicAxis.

Regards,
Victor
Telerik by Progress
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Hien
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or