Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1390
igDataChart tooltipFormat using Jquery 1.10.*
posted

Hi, Im using build 13.1.20131.2143 with Jquery 1.10.1,  the Chart control legend, I receive the following sizzle error,

0x800a139e - JavaScript runtime error: Syntax error, unrecognized expression: #${item.Label} : ${item.Value}

The issue has to do with setting the tooltipFormat, I've reproduced the issue in the attatched sample

 

The isuue was discussed under this thread.

 

http://es.infragistics.com/community/forums/p/78323/415697.aspx#415697

 

Thanks

tooltipTemplate.zip
Parents
No Data
Reply
  • 30692
    Verified Answer
    Offline posted

    Hi,

    Because you have no recognizable html in the tooltipTemplate you are providing. The chart/map think this is a selector and try to run it through jQuery to see if results are returned. More recent versions of jQuery have started returning an error when this is performed however. The reason we run a selector if we think you didn't provide html (with template tags) is that you can also put your html template in a script block and point at it with a selector.

    To avoid the ambiguity, put some recognizable html in a template when providing it inline, as you are. For example, you could wrap the above in a span element:

    <span>${item.Label} : ${item.Value}</span>

    -Graham

Children