coder98103

Is non-breaking space supported?

Recommended Posts

I'm wondering how to use non-breaking space with Fusion Charts.  It seems to be treating non-breaking space as normal space. I've played around with a number of scenarios, for example using   in the caption, or using   and   In all the cases I tried, the non-breaking space was treated as a plain old space character. 

Here is example. Note the label for the first data point has been modified from the sample chart to include  Q1.   When I render this chart, I get a line break between Jan and Q1.

 

<chart caption="Monthly revenue for last year" subcaption="Harry&#39;s SuperMart" xaxisname="Month" yaxisname="Revenues (In USD)" numberprefix="$" theme="fint">
    <set label="Jan&#xA0;Q1" value="420000" />
    <set label="Feb" value="810000" />
    <set label="Mar" value="720000" />
    <set label="Apr" value="550000" />
    <set label="May" value="910000" />
    <set label="Jun" value="510000" />
    <set label="Jul" value="680000" />
    <set label="Aug" value="620000" />
    <set label="Sep" value="610000" />
    <set label="Oct" value="490000" />
    <set label="Nov" value="900000" />
    <set label="Dec" value="730000" />
</chart>

Here is the JavaScript, nothing fancy:

  var myChart = new FusionCharts({
        "type": "column2d",
        "renderAt": "chartContainer",
        "width": "500",
        "height": "300",
        "dataFormat": "xmlurl",
        "dataSource": "data.xml"
    });

 

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