Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Custom character in tooltip
birtuser75
<p>Hi,</p><p> </p><p>I would like to display mm squared with custom ascii in a pie chart tooltip as shown below:</p><p> </p><p>
Find more posts tagged with
Comments
GLO_FR
<p>Mmm, what do you mean with tooltips?</p><p>Is this on the edit chart windows the " Series > Value Series > "Interractivity Button" > Tooltip Text ?</p><p> </p><p>Is this case (in fact for all label/text made with javascript syntax), use the javascript function <strong>String.fromCharCode() </strong>and the ISO code / unicode of your character.</p><p> </p><p>for squared it is <strong>String.fromCharCode(178)</strong></p><p> </p><p> </p><p>for other unicode, look <a data-ipb='nomediaparse' href='
https://www.google.fr/#q=special+characters+unicode'>here
</a>or <a data-ipb='nomediaparse' href='
http://en.wikipedia.org/wiki/List_of_Unicode_characters'>here</a></p><p> </p><p> </p><p>for
a smiley, it is String.fromCharCode(9786)....etc
</p>
birtuser75
<p>That works perfectly. </p><p> </p><p>So I am trying to mimic the following functionality into POJO calls</p><pre class="_prettyXprint _lang-xml _linenums:1"><Triggers> <Condition>onmouseover</Condition> <Action> <Type>Show_Tooltip</Type> <Value xsi:type="attribute:TooltipValue"> <Text>(row["Die Area"]* 1.0e-6).toFixed(3) + "mm"+String.fromCharCode(178)</Text> <Delay>200</Delay> </Value> </Action> </Triggers></pre><p>I tried the following POJO but that did not work:</p><pre class="_prettyXprint _lang-nocode _linenums:1">sePie.getTriggers( ).add( TriggerImpl.create( TriggerCondition.ONMOUSEOVER_LITERAL, ActionImpl.create( ActionType.SHOW_TOOLTIP_LITERAL, TooltipValueImpl.create( 0, "(row["Die Area"]* 1.0e-6).toFixed(3) + "mm"+String.fromCharCode(178)" ) ) ) );</pre><p>Would you happen to know how to set this up programmatically from the Java API:</p>