RadChart pointmark clipping axis

Thread is closed for posting
4 posts, 1 answers
  1. Marius
    Marius avatar
    2 posts
    Member since:
    Oct 2011

    Posted 23 Jan 2012 Link to this post

    Hi,

    Is it possible to render the chart so that the point markers site on TOP of the plot boundary?  Currently they are being clipped (see attached image) and I would rather the whole marker was displayed if the point sits on an axis.

    Thanks
  2. Answer
    Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 26 Jan 2012 Link to this post

    Hi,

    This is possible using the YAxis AxisMode property like this:
    RadChart1.PlotArea.YAxis.AxisMode = ChartYAxisMode.Extended;
    However this is only available for the axis' maximum value and using the above approach will add additional axis step to the end of the axis. Alternatively you could set the axis AutoScale to false and manually set your own range using the AddRange method and set the Min, Max and Step values so they best fit your scenario.

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marius
    Marius avatar
    2 posts
    Member since:
    Oct 2011

    Posted 26 Jan 2012 Link to this post

    HI Peshito,

    Thanks for the response.  Disabling the AutoScale and setting Min/Max/Step does acheive the effect i am looking for but as a number of the values along the y-axis in these graphs can be zero, this means im forced to have the min value for Y set to -1 so rather than steps of (for example) 0>10>20>30, i now have -1>9>19>29, which sort of spoils the look of the graph slightly. 

    Your suggestion of using Yaxis.AxisMode = ChartYAxisMode.Extended has meant that the only values being clipped will be zero values so this will probably be more acceptable for the user. The reason i feel that the clipping is an issue is because I am using tooltips on the point marks and it could be a bit awkward for the user to hover over the mark if its clipped.  Perhaps a subsequent build of the control could include the option to render the point marks at the front (I have seen this done on similar controls).  This would improve what is already a very good control.

    Thanks for your help
  5. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 31 Jan 2012 Link to this post

    Hello,

    Thank you for your feedback and your suggestion. I will forward it to our developers so they will discuss it. I cannot give you a time frame when or whether this will be included as a fix.

    Alternatively as a workaround you could also set the color of your XAxis to transparent and along with the manually set range the look of the chart will look more consistent.

    Greetings,
    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