bar chart series label visual function cannot work well

4 posts, 0 answers
  1. Freddy
    Freddy avatar
    9 posts
    Member since:
    Aug 2015

    Posted 27 Apr Link to this post

    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.

  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 29 Apr Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Freddy
    Freddy avatar
    9 posts
    Member since:
    Aug 2015

    Posted 18 May Link to this post

    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.

     

  5. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 20 May Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready