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

Canvas bug?

2 Answers 16 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Jose Mejia
Top achievements
Rank 1
Jose Mejia asked on 25 May 2015, 11:02 AM

Hi.

 

Here is my  line chart sample. The name of series is deltaX ("ΔX") and so on. But if there is

renderAs: "canvas"
presented then  displaying of series name is failing, it show's "ΔX".

Is it ok? Is it fall under limitations on canvas: interactive features are not available with the exception of shared tooltips?

 

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 26 May 2015, 08:53 AM

Hello Jose,

The chart does not support entities, but they will kind of work when the output is set to SVG as it is an XML-based format.

My suggestion is to explicitly decode the entities or use the Unicode symbols.

I hope this helps.

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
EZ
Top achievements
Rank 2
answered on 26 May 2015, 01:20 PM

You can use string.fromCharCode(916) to get the string representation of the delta symbol:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode

 Then it is up to your selected fon to render it.

UPDATED DOJO EXAMPLE

 

Tags
Charts
Asked by
Jose Mejia
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
EZ
Top achievements
Rank 2
Share this question
or