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

SmartLabelsMode: can it target MajorTickInterval please?

3 Answers 63 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 29 Oct 2015, 07:17 AM

Hi there, we've been playing around with the Smart Labels feature that was recently added to Silverlight UI.

We actually implemented our own solution (with a lot of help from Telerik) a while ago that does the same thing, so it's been interesting to compare the results of both.

What we've noticed is that the solution for LinearAxis works pretty much identical to our own, but the solution for CategoricalAxis (including DateTimeCategoricalAxis) has some flaws, in our opinion.

The major flaw is that the Telerik solution only seems to target the LabelStep property, whereas our solution targets the MajorTickInterval property. The result is that if you have a LOT of categories, the labels don't overlap but the chart plot area is still a mess of grid lines. 

Would it be possible to have an option that allows us to choose whether MajorTickInterval or LabelStep is updated for Smart Labels on CategoricalAxis? If this is already possible then I'd love to know how.

It would also be very useful to be able to simulate margins on labels so that whitespace is taken into consideration when determining overlap between labels - we added this ourselves as it wasn't enough just to measure the text of the labels on the axis.

 

3 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 02 Nov 2015, 11:37 AM
Hello Sam,

During development we dismissed the option of the categorical axis changing the tick interval and we decided to go with it changing the label interval only. This decision was related to more than one reason, but it was mainly due to the way the axis chooses its right margin - if the SmartLabelsMode changes the tick interval, in many cases the last label ended up getting clipped and unreadable.

However, you do have a point that in some cases there may be too many ticks and make the chart ugly. And it is true that the developer should be able to consider both modes. This is why I logged this in our feedback portal where you can vote and track its status. I also updated your Telerik points as a thank you for this suggestion.

I was unable to understand the question about the margins of the labels. When the smart labels mode is on, the axis measures the labels along with their Margin (which is set by default via a style). Please explain in little more details what you mean, so that we can assist you with this.

Regards,
Petar Marchev
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
0
Kyle
Top achievements
Rank 1
answered on 02 Dec 2016, 08:57 PM
Is there still no way to have the MajorTickInterval match the SmartLablesMode?
0
Martin Ivanov
Telerik team
answered on 06 Dec 2016, 09:48 AM
Hello Kyle,

Yes, there is still no way to apply the smart labels feature to the ticks of the axis. You can follow the item in the feedback portal in order to receive a notification when its status is updated.

Regards,
Martin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ChartView
Asked by
Sam
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Kyle
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or