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

2 posts, 0 answers
  1. Hien
    Hien avatar
    1 posts
    Member since:
    Oct 2016

    Posted 26 Oct Link to this post

    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.

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 31 Oct Link to this post

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