Jump to content
JChartFX Community
  • 0

IE10 and 3D Pie Chart Problem


Zeeep

Question

I've created a simple animated 3d pie chart that works fine in IE9 and Chrome. When I run this within IE10 the pie chart is incorrectly drawn with a portion of it missing. Is this a known issue or is there something I'm not setting in my code? 

Code below...

 

 var pieChart = new cfx.Chart();pieChart.getAnimations().getLoad().setEnabled(true);

  pieChart.setGallery(cfx.Gallery.Pie);

  pieChart.getView3D().setEnabled(true);


  var dataFields = pieChart.getDataSourceSettings().getFields();

  var field1 = new cfx.FieldMap();

  var field2 = new cfx.FieldMap();

  var field3 = new cfx.FieldMap();

  var field4 = new cfx.FieldMap();


  field1.setName("divisionName");

  field1.setUsage(cfx.FieldUsage.Label);

  dataFields.add(field1);


  field2.setName("divisionPercent");

  field2.setUsage(cfx.FieldUsage.Value);

  dataFields.add(field2);


  field3.setName("divisionValue");

  field3.setUsage(cfx.FieldUsage.NotUsed);

  dataFields.add(field3);

  

  field4.setName("numinstructions");

  field4.setUsage(cfx.FieldUsage.NotUsed);

  dataFields.add(field4);

    

  pieChart.getDataSourceSettings().setDataSource(pieData);


  pieChart.getAllSeries().getPointLabels().setVisible(true);


  var heading = new cfx.Title;

  heading.setText("Year to date by Division (%)");

  pieChart.getTitles().add(heading);


  var divHolder = document.getElementById('piechart');

  pieChart.create(divHolder); 

 

Regards

 

Colin

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
We are testing internally a fix for this issue, it seems to be a weird issue where IE10 seems to run incorrectly code that looks like the following

    iSig = 1;
    for (j = nFirst,i = 0; i < total; i++, j += (pointCount + iSig)) {
        j = j % pointCount;
        // Other code here with a couple of continue statements
        // and a statement that sets iSig to -1
    }
 
The strangest part is that this code is used to paint the pie slices regardless of the animation settings, but when run multiple times it seems to "optimize" the j+= statement so it does not picks up the change to iSig.
 
Somehow this seems to fix it.

    iSig = 1;
    for (j = nFirst - iSig,i = 0; i < total; i++) {
        j = j + (pointCount + iSig);
        j = j % pointCount;
        // Other code here with a couple of continue statements
        // and a statement that sets iSig to -1
    }

We will post more info as soon as we determine whether this was in fact the issue.

JuanC
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...