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

HorizontalBar cuts off labels when embedded in a PanelBar?

2 Answers 106 Views
Chart
This is a migrated thread and some comments may be shown as answers.
davecorun
Top achievements
Rank 2
davecorun asked on 02 Sep 2010, 07:18 PM
Attached are two screenshots, both from Silverlight Spy (which I'm running as a trial).

The first shows the horizontal bar chart labels being cut off.  It should read "95 %".

The second shows the UI tree, where both the Chart and the PanelBar do not have width's specified.

What am I doing wrong?

I can try to recreate this in a smaller app as well.

// Dave

2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Sep 2010, 09:16 AM
Hello Dave,

We would appreciate it if you're able to send a small runnable application, demonstrating this issue as we haven't been able to reproduce it locally.

One possible reason for not displaying the whole label would be if a custom range is set for the chart Y axis, that wouldn't allow for enough space for a longer label text. Label positions may also be altered by using the Smart Labels feature, so that they would fit in the desired space and would not overlap. You can find more information on Smart Labels in this help topic.

Regards,
Nikolay
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
davecorun
Top achievements
Rank 2
answered on 13 Sep 2010, 02:53 PM
I turned off the Smart Labels and changed how the Range was getting set:

chart.DefaultView.ChartArea.AxisY.AddRange(0, SeriesTotal * 1.2, SeriesTotal * 1.2);

By increasing the range an extra 20%, this resolved the issue.

Thanks!

// Dave
Tags
Chart
Asked by
davecorun
Top achievements
Rank 2
Answers by
Nikolay
Telerik team
davecorun
Top achievements
Rank 2
Share this question
or