Completely hide LinearAxis on LineSeries

8 posts, 0 answers
  1. nico
    nico avatar
    2 posts
    Member since:
    Oct 2014

    Posted 31 Oct 2014 Link to this post

    Hello,

    I would like to hide a LinearAxis in my RadCartesianChartView. But when I put the property Visible to false, indeed, my LinearAxis is not visible but his allocated space is not empty. So the result is not exactly an hidden axis because the axis/label space is not freed.

    My project is to instanciate ten LineSeries and just show dynamically the LinearAxis of a selected one... So with 10 LineSeries, the chartArea is reduce to maybe 50% screen size.... because each LinearAxis are put next to each others.

    A part of my code:

    LineSeries lineSeries = new LineSeries();
    LinearAxis verticalAxis = new LinearAxis();
    verticalAxis.setHorizontalLocation(AxisHorizontalLocation.LEFT);
    verticalAxis.setVisible(false);
    lineSeries.setVerticalAxis(verticalAxis);
    chartView.getSeries().add(lineSeries);

    Maybe I do something wrong?! I saw something like axis "collapse" in Silverlight or WPF component, is it possible to use it on android ?
    Thanks!!
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 05 Nov 2014 Link to this post

    Hello Nico,

    Thank you for writing.
    I am afraid that this functionality is not implemented in our Chart for android because the chart elements do not inherit from View because this turned out to be a significant performance improvement. We will definitely add the ability to collapse an axis in a future release however.
    Please write again if you have more questions.

    Currently, you can simply add and remove series dynamically instead of collapsing their axes. Is it absolutely necessary for all series to be plotted at the same time?

    Regards,
    Victor
    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. DevCraft banner
  4. FABIEN
    FABIEN avatar
    1 posts
    Member since:
    Nov 2014

    Posted 06 Nov 2014 in reply to Victor Link to this post

    Thanks for your answer Victor,

    Finally, it's what I done, add and remove dynamically series in the chart component. It works but I need to keep two collections, it's a real shame...

    Best Regards,
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 11 Nov 2014 Link to this post

    Hello Nico,

    Thanks for the feedback again. We'll add this functionality for the Q1 2015 release.
    Please write again if you have more feedback to share.

    Regards,
    Victor
    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.

     
  6. Jacob
    Jacob avatar
    2 posts
    Member since:
    Jun 2015

    Posted 22 Jun 2015 Link to this post

    Is there an update on this? I would like to do the same thing. If there is not an update is there some sort of work around?
  7. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 23 Jun 2015 Link to this post

    Hello Jacob,

    Thanks for writing.
    I am afraid we could not squeeze this feature in for the Q1 release. The Q2 release is almost out of the door so we will try to implement it for Q2 SP1.

    Regards,
    Victor
    Telerik
    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
  8. Jacob
    Jacob avatar
    2 posts
    Member since:
    Jun 2015

    Posted 28 Sep 2015 in reply to Victor Link to this post

    Is there any update on this has it been released?
  9. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 29 Sep 2015 Link to this post

    Hello Jacob,

    Thank you for writing.
    I am afraid this functionality was not implemented. So far this has been the only thread about this and there have been fixes and functionality with higher priority.

    For now the workaround is to remove an axis when it should be invisible and then add it back to the chart to be visualized when necessary.

    Regards,
    Victor
    Telerik
    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
Back to Top
DevCraft banner