Jump to content
Software FX Community

Pie Charts all showing the same color and percentage


Recommended Posts

The charts on this web page used to render correctly, which each graph showing distinct data.  I haven't made any changes to the code, and I've stepped through the code and it's properly loading the underlying data, yet the graphs load as shown here, with every graph showing the same set of colors and percentages.  Any ideas why?  Only this page on the site has this issue; graphs on other pages run properly.  I've recycled the PSS service, no change.

 Posted Image

Link to comment
Share on other sites

I have determined that chart.Data.Points is set to 10 as soon as the chart is created; we have code that expects to load up to four points, thus the data isn't getting loaded  (10 > MAXPOINTS, which is a constant set to 4).

The question now becomes, why are the charts being created by default with ten random points?  They didn't use to!

Link to comment
Share on other sites

I coded a work-around, resetting Data.Points to 0 in my AddPoints routine, if the existing Data.Points > MAXPOINTS. 

I still don't know why the charts suddenly started showing up with 10 predefined points, when they did not do this before, on initial instantiation.

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.

Reply to this topic...

×   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.

  • Create New...