ChartsJazz

Line break in X-axis does not work

Recommended Posts

Hi

Welcome to FusionCharts Forum!

Can you please post the xml that you are using to achieve this?

Can you please tell us the version of FusionCharts you are using? ( You can get the version by turning on the debugMode ) .

Thanks :)

Srividya

Share this post


Link to post
Share on other sites

I am using FusionCharts v. 3.1.1 Enterprise.

Below is what I think is the relevant part of the code, copied from View Source in IE7.  If you want to see the entire code for the chart, let me know.

<set label='2<BR>05' value='119904' 
toolText='04/01/2005 - 06/30/2005:  119,904' color='0000ff'/>
<styles><definition><style name='myHTMLFont' type='font' 
face='Verdana' size='12' isHTML='1'/></definition><application><apply 
toObject='DATALABELS' styles='myHTMLFont' /></application></styles>

Share this post


Link to post
Share on other sites
Guest Rajroop

Hi,

 

 

 

Could you please try using ' ' as a Line Break for this?

 

 

 

I hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

The link of our documentation that you have mentioned in your post display < for '<' and > for '>' of the <br> tag of HTML.

Ref.- <set label='John Miller<BR>Score: 420<BR>Rank:2' value='420' />

This is a second way for line-break.

I hope this helps. :)

Share this post


Link to post
Share on other sites

Basundhara,

If you look at the code I included in my earlier post, you will see that "<BR>" is where I started and that does not work.

<set label='2<BR>05' value='119904' 
toolText='04/01/2005 - 06/30/2005:  119,904' color='0000ff'/>
<styles><definition><style name='myHTMLFont' type='font' 
face='Verdana' size='12' isHTML='1'/></definition><application><apply 
toObject='DATALABELS' styles='myHTMLFont' /></application></styles>

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

We aplogize for the inconvenience.

Thanks for sharing and informing us about the small discrepancy in our documentation.

Please try applying the "Styles" functionality on "TOOLTIP" object as well.

Ref.- <set label='2<BR>05' value='119904'  toolText='04/01/2005 - 06/30/2005:  119,904' color='0000ff'/>

<styles>

<definition>

<style name='myHTMLFont' type='font'

face='Verdana' size='12' isHTML='1'/>

</definition>

<application>

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

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

</application>

</styles>

Hope this helps. :)

Share this post


Link to post
Share on other sites

Basundhara,

I want the line break in the X axis labels as in "set label='2<BR;>05'" , not the tooltips.  Even so, I tried applying the style to the TOOLTIP object, which makes no sense.  It didn't make any difference; I still get "Invalid XML data."  "set label='2 05'" with the style applied to DATALABELS works.  The documentation is just wrong regarding using "<BR;>" for a line break in the X axis labels.  There is no second method.

 

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