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

bar chart series label visual function cannot work well

3 Answers 130 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Freddy
Top achievements
Rank 1
Freddy asked on 27 Apr 2016, 11:47 AM

hello there,

There is an common bug in bar chart with the type of "bar", if the value become 0 along with some other negative values, the label of value 0 will overlap the category axis label, please see the attached image.

So here I want move the series label to left of the value axis with the visual function. please refer to telerik demo.

With the visual function, the series label is clipped, and no matter what number of the plot area margin I set , it cannot show the label completely. Is there any way to realize this effect?

It is great if there is a good way to make the label which value is 0 will not overlap the category label.

 

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 29 Apr 2016, 08:36 AM
Hi Freddy,

In the provided dojo the 0 label does not cover the categoryAxis label, however I observed that the value 10 is clipped. To avoid this problem you should set the panes.clip option to false. For your convenience here is the updated dojo.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Freddy
Top achievements
Rank 1
answered on 18 May 2016, 09:12 AM

Hello lliana,

Firstly thanks a lot for your answer about the clip. It make sense.

The previous demo I used the visual function to change the position of series label, without visual function it will cover the category axis label, you can refer to this demo.  I don't know whether there is an solution to fix this cover issue.

 

0
T. Tsonev
Telerik team
answered on 20 May 2016, 07:38 AM
Hi,

You can employ some trickery such as margins, but the generic solution is the so-called "smart labels" feature.
What it does is to offset each overlapping label and add a connection pointing to its original location.

Please, file a request for this feature on our UserVoice portal if you have minute.
This will help us gauge the overall interest and prioritize.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Charts
Asked by
Freddy
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Freddy
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or