Home
Analytics
Pie Chart
plavanya
Hi Folks<br />
<br />
Can anyone please try to help me in resolving the following issue<br />
<br />
Birt Version - 3.7.2<br />
<br />
In one of my reports I am using charts of PIE type, Dimension of 2D with Depth and Output Format as SVG. <br />
I am using Legend to display entries. <br />
<br />
<span style='font-size: 24px;'>ISSUE1:</span><br />
Basically my issue is in the legend entries I want to display a value as superscript. For example one of my legend entry is A1BC1, this legend entry need to be modified to replace all the 1's as superscript value A<sup class='bbc'>1</sup>BC<sup class='bbc'>1</sup>.<br />
<br />
Please find the screen shot below<br />
Find more posts tagged with
Comments
kclark
As far as issue 1 with the superscript, it looks like you're only using 1 (that needs to be raised) in your legend, so you could edit the legend and use alt+0185 (which produces ?) 0178 and 0179 are for ? and ?...I guess it could be considered cheating, but I think it's easy to use in static situations like that.
And issue two I'm not sure how to make just a straight leaderline, I'll work on it and let you know what I come up with.
plavanya
Hi<br />
<br />
Basically it is not only 1 that has to be displayed as superscript, apart from 1, we may have <span style='font-size: 18px;'><strong class='bbc'>?</strong></span> (Registered symbol) to be displayed as superscript and this has to be rendered while executing the report only. u00AE is the unicode for <span style='font-size: 18px;'><strong class='bbc'>?</strong></span>(Registered symbol). I cant change all these values after generating the report in legend. Can anyone please help me out in resolving the issue.<br />
<br />
Thank & Regards<br />
Lavanya
kclark
Try this...<br />
<br />
String.fromCharCode(185)<br />
<br />
that will give you <sup class='bbc'>1</sup><br />
<br />
and<br />
<br />
String.fromCharCode(169) give you the copyright symbol<br />
<br />
<a class='bbc_url' href='
http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C47007456E7'>http://www.breakingpar.com/bkp/home.nsf/0/87256B280015193F87256C47007456E7</a>
;
plavanya
String.fromCharCode(169) gives copyright symbol and String.fromCharCode(174) gives the Registered symbol, but using these charcodes normal values are displayed, but i want these values to be superscripted for example Total<sup class='bbc'>?</sup>