Chart showing only positive value on Y axis and auto scale

Thread is closed for posting
4 posts, 0 answers
  1. FISCAL
    FISCAL avatar
    91 posts
    Member since:
    May 2010

    Posted 15 Jan 2013 Link to this post

    Hi,

    Is it possible to have a chart which displays only positive values without setting manually Min and Max values?
    What I am looking for is a property like the LinearAxis.RangeExtendDirection in the SIlverlight ChartView, is it available in the .net control?

    Thanks,

    Michele
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 17 Jan 2013 Link to this post

    Hi FISCAL,

    As my colleague Yavor mentioned in another thread  in here, in the ASP AJAX Chart you have two options - either let the control autosize the axis, or set the range manually.

    All the best,
    Peshito
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. FISCAL
    FISCAL avatar
    2 posts
    Member since:
    Jun 2012

    Posted 01 Feb 2013 Link to this post

    What about the ChartAxisVisibleValues property? What does it exactly does it hide/show?
  5. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 05 Feb 2013 Link to this post

    Hello,

    You can use the VisibleValues property of the YAxis in order to hide the negative values like shown below:
    radChart.PlotArea.YAxis.VisibleValues = Telerik.Charting.Styles.ChartAxisVisibleValues.Positive;
    The property has three possible values which are All, Negative and Positive. This approach will indeed work without manually specifying the range of your axis.

    Hope this helps.

    All the best,
    Peshito
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top