Bar Chart XAxis Step and MaxValue

4 posts, 0 answers
  1. Sperduti
    Sperduti avatar
    16 posts
    Member since:
    Oct 2007

    Posted 03 Dec 2007 Link to this post

    Hi,

    I use Bar Chart and I bind data with DataTable.
    I see if my value is, for example, 20, my bar chart max value is 20 too and the bar is dock one the right of my plotarea.
    In this case, can I add just one more step to obtain space between my bar and my plotarea border ? Or change my maxValue ? I try several things but there is no effect.

    Thanks,

    YSP
  2. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 06 Dec 2007 Link to this post

    Thank you for contacting us, Sperduti.

    Setting AxisMode to Extended will force the chart to set a max value greater than the maximum one in the series. This way there will always be some space on top:
     
    radChart1.PlotArea.YAxis.AxisMode = Telerik.Charting.ChartYAxisMode.Extended; 
     
     
    Note:
    This will only work when the YAxis.AutoSize mode is true.

     
    Best wishes,
    Evtim
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Sperduti
    Sperduti avatar
    16 posts
    Member since:
    Oct 2007

    Posted 10 Dec 2007 Link to this post

    Thanks, that work correctly.
    I think  you mean Yaxis.AutoScale, because I don't find AutoSize.

    Regards,

    YSP
  5. Dwight
    Admin
    Dwight avatar
    475 posts

    Posted 10 Dec 2007 Link to this post

    Hi Sperduti,

    We are glad to help. Should you experience any other difficulties using our controls, do not hesitate to contact us. Any suggestions that could help the controls' usability is also appreciated.

     
    Best regards,
    Evtim
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top