Category Labels Text Wrapping

2 posts, 0 answers
  1. Ollie
    Ollie avatar
    8 posts
    Member since:
    Oct 2016

    Posted 02 Feb Link to this post

    Good day!

    I know that this is asked frequently, but do you have any options/config to set category labels/axis to auto-wrap?

    I know that you can render "\n" as part of the label to have a line break, but in order to do that we have to set a defined length on where to do the line break.

    We're making the chart responsive as possible and it will be awkward to look at a chart with a wrapped label when there's a lot of space left.





  2. Dimiter Topalov
    Dimiter Topalov avatar
    628 posts

    Posted 06 Feb Link to this post

    Hello Ollie,

    The chart option that allows for full customization of the categoryAxis labels is the categoryAxis.labels.visual:

    It takes a function in which the custom layout can be fully configured.

    Unfortunately, there is no configuration option via which text wrapping can be set, but you can submit a feature request to our UserVoice portal:

    It is closely monitored, and the most popular ideas are considered for future Kendo UI versions. Thank you in advance.

    Dimiter Topalov
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top