Sign in to follow this  
errodr

HoverText and Newline???

Recommended Posts

I am using the PHP Class with FusionCharts version: 3.0.4

 

 

 

My question is this: how do I add a line break in the hovertext?

 

 

 

 

 

$FC->addChartData($bs_array[$i] - $af_array[$i],"hoverText=Line1Line2");

 

 

 

I need a line break between line1 and line2 in the hovertext above.

 

 

 

How is this done??

Share this post


Link to post
Share on other sites

When I try putting between the lines what I get is:

 

 

 

Line 1 ampersand pound sign 10

 

 

 

and no line break.

 

 

 

What else can I try? Nothing seems to work.

 

 

 

I have tried several things.

Edited by Guest

Share this post


Link to post
Share on other sites

Hi,

 
Could you please change your Parameter delimiter to , (comma) first & then try using   to break text into a new line?
 
Example:
 
 $FC->setParamDelimiter (",");
 
 $FC->addChartData($bs_array[$i] - $af_array[$i],"hoverText=Line1 Line2");
 
Because the default delimiter is ";" and we need to change it to a different character to work with .

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