This is a migrated thread and some comments may be shown as answers.

RadChart pointmark clipping axis

3 Answers 81 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Marius
Top achievements
Rank 1
Marius asked on 23 Jan 2012, 04:49 PM
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

3 Answers, 1 is accepted

Sort by
0
Accepted
Peshito
Telerik team
answered on 26 Jan 2012, 10:31 AM
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
0
Marius
Top achievements
Rank 1
answered on 26 Jan 2012, 03:17 PM
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
0
Peshito
Telerik team
answered on 31 Jan 2012, 10:53 AM
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
Tags
Chart (Obsolete)
Asked by
Marius
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Marius
Top achievements
Rank 1
Share this question
or