Sign in to follow this  
muzzs

HTML labels with PHP Class

Recommended Posts

Hi,

 

 

 

I'm having an issue with right aligning labels in a chart. I have seen this on the forum in another thread:

 

<chart >

 

<set label='This is the first line<BR><P align="Right" >second line</P>' value='500' />

 

<set label='Feb' value='857' />

 

<set label='Mar' value='671' />

 

<set label='Apr' value='494' />

 

<styles>

 

<definition>

 

<style name='myHTMLFont' type='font' isHTML='1' />

 

</definition>

 

<application>

 

<apply toObject='DATALABELS' styles='myHTMLFont' />

 

<apply toObject='TOOLTIP' styles='myHTMLFont' />

 

</application>

 

</styles>

 

</chart>

 

 

 

When I try to do this using the php class it encodes the = and " within the p tag to entities, giving me the following:

 

 

<chart animation='0' showYAxisValues='0' showValues='0' plotSpacePercent='10' adjustdiv='0' numDivLines='1' divLineAlpha='0' labelDisplay='WRAP' exportEnabled='1' exportAtClient='0' exportAction='save' exportHandler='http://site166.clienttestsite.com/report_scripts/FCExporter.php' yAxisMaxValue='40' >

 

<set value='25.8389261745' label='You' color='FFCC33' />

 

<set value='25.198938992' label='%26lt;p align%3d%26quot;right%26quot;%26gt;Avge%26lt;/p%26gt; %26lt;p align%3d%26quot;right%26quot;%26gt;male%26lt;/p%26gt; %26lt;/p%26gt; age %26lt;18' color='FFCC33' />

 

<trendLines>

 

<line startValue='10' displayvalue='Possible under-use' dashed='1' showOnTop='1' />

 

<line startValue='30' displayvalue='Possible over-use' dashed='1' showOnTop='1' />

 

</trendLines>

 

<styles>

 

<definition>

 

<style name='LabelStyle' type='font' isHTML='1' />

 

</definition>

 

<application>

 

<apply toObject='DATALABELS' styles='LabelStyle' />

 

</application>

 

</styles>

 

</chart>

 

 

 

 

Any ideas what I can do to get around this?

 

 

 

Many thanks!

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi,

 

 

 

We are working on this. As of now, we have not been able to come up for a solution or fix.

 

 

 

We'll be sure to let you know once we do.

 

 

 

Thanks for your patience in this matter.

Share this post


Link to post
Share on other sites

Hi,

 

 

 

There wont be any issue with = and "" getting encoded as that is a necessity in dataXML method which PHP class uses.

 

 

 

If it happens to be that your <18 is not working please encode < to &lt;

 

 

 

Please note that in FusionCharts labels righ align is not supported.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this