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

issue with nbsp in axis title

3 Answers 22 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Boris Gheihman
Top achievements
Rank 1
Boris Gheihman asked on 07 May 2015, 01:55 PM
Since there is no way to center align text I was using non-braking spaces for this task. It wasn't perfect but it worked(at least in version 2014.3.1316). I've tried to update to latest 2015.1.429 version recently and discovered that titles with nbsp in it are completely broken. Here is an example.

3 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 11 May 2015, 11:58 AM

Hello Boris,

The change that leads to this behavior is that we now HTML-encode texts. We do this as SVG is not our only rendering target - we support Canvas and PDF as well. These will output the encoded text as they don't have a notion for HTML entities. If we don't encode the text we'll get different results, e.g. during PDF export.

What we suggest instead is to use visual templates for the labels. In combination with the Layout primitive we can produce the same results and much more.

I've prepared a snippet to demonstrate your particular case. Does this make sense?

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Boris Gheihman
Top achievements
Rank 1
answered on 11 May 2015, 01:06 PM
I wasn't aware of this new "visual templates" feature. I think it will resolve this issue. Thank you for the provided dojo very much.
0
T. Tsonev
Telerik team
answered on 13 May 2015, 07:35 AM

Hello,

Welcome. I'm glad this worked out for you.

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
Boris Gheihman
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Boris Gheihman
Top achievements
Rank 1
Share this question
or