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

Category Labels Text Wrapping

1 Answer 934 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Ollie
Top achievements
Rank 1
Iron
Ollie asked on 02 Feb 2017, 04:45 PM

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.

 

Thanks!

Ollie

Neovation

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 06 Feb 2017, 09:32 AM
Hello Ollie,

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

http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-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:

http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

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

Regards,
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.
Tags
Charts
Asked by
Ollie
Top achievements
Rank 1
Iron
Answers by
Dimiter Topalov
Telerik team
Share this question
or