Graeme

Firefox multiple Pie2d on page label error

Recommended Posts

When rendering 2 Pie2d charts on a single page, the labels do not appear in Firefox, only the lines.  However, if you showLegend 1 labels then appear.

<script>
  function LoadGraphs() {
  
  piechart1 = new FusionCharts({
        "type": "pie2d",
        "renderAt": "chartContainer",
        "width": "500",
        "height": "300",
        "dataFormat": "json",
        "dataSource": {
          "chart": { showLegend:0 },
          "data": [
        {
            "label": "Mon",
            "value": "4123"
        },
        {
            "label": "Tue",
            "value": "4633"
        },
        {
            "label": "Wed",
            "value": "5507"
        },
        {
            "label": "Thu",
            "value": "4910"
        },
        {
            "label": "Fri",
            "value": "5529"
        },
        {
            "label": "Sat",
            "value": "5803"
        },
        {
            "label": "Sun",
            "value": "6202"
        }
    ]
        }
});

piechart1.render();

piechart2 = new FusionCharts({
        "type": "pie2d",
        "renderAt": "chartContainer2",
        "width": "500",
        "height": "300",
        "dataFormat": "json",
        "dataSource": {
          "chart": { showLegend:0 },
          "data": [
        {
            "label": "Mon",
            "value": "1123"
        },
        {
            "label": "Tue",
            "value": "1633"
        },
        {
            "label": "Wed",
            "value": "1507"
        },
        {
            "label": "Thu",
            "value": "1910"
        },
        {
            "label": "Fri",
            "value": "1529"
        },
        {
            "label": "Sat",
            "value": "1803"
        },
        {
            "label": "Sun",
            "value": "1202"
        }
    ]
        }
    });

piechart2.render();
}
</script>

<a href="javascript:LoadGraphs();">Run Test</a>

<div id="chartContainer">FusionCharts XT will load here!</div>

<div id="chartContainer2">FusionCharts XT will load here!</div>

It works fine in IE and Chrome, but not in Firefox, based on the latest FusionCharts.

The code works in Firefox with FusionCharts 3.10.1

Share this post


Link to post
Share on other sites

Hi,

This is a known issue, and it has been fixed internally, and it will be fixed in the next version release.

If you still want a quick fix for the issue kindly send us a mail to [email protected] with your order and licensing details so that we could provide a quick patch fix for this.

Share this post


Link to post
Share on other sites

Hello,

We have already shared the patch file with you.

Please check and let us know whether you have received the correct patch or not. 

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