Jump to content
Software FX Community

ChartFX.WinForms.Chart - The pie chart exceeds 100%


Iva
 Share

Recommended Posts

If you pass values to the pie chart which need rounding sometimes the sum of the chart percentage exceeds 100%. This happen with the values for example: "50; 49; 1; 1". I think the problem is when you have more then one value with 0.5 decimal part. It rounds to the greater number and this causes the problem.

 http://community.softwarefx.com/forums/data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAA5CAIAAACai1gLAAANwklEQVR4nO2de0wb9x3A/c+kNVvTKctUNLVJq1ZNJ6XbFGlbUqVLNJcNrU07LdMerVSmSosWVaSV60qZNJT9kZZQIDb23flsnx/4hTE+P84PbA5j8woEEigQCClO4iYhTWmjkKwZU1ap++P8uDvfnY2xOaC/nz5C5vhx3P1+9/k97r73Q7L04GsAALBSJKIfAQCwEQHmAAClAMwBAEoBmAMAlAIwBwAoBWAOAFAKwBwAoBTo5sTrJIwkRVOiHFNQJqkjhTJMozXZYwvK0keb/ZVptEbEg9/wJDEprTCXSLmkGpumf6gkhao+XiepUSXT34pb0Sxz5EFGCdK+XUMKFF8Sk2bLK1edmTIl5dSPsjsJyoBFK2AaralDMaksnt5SLnOSmLSIX+ev+pSqmmohM+aIXdH85jxIqapzfq8lwuYEZRJpdbrPoXc+2c+MpihTvoDiSKmq5cH016+pAlwf5mQPj6fPWfOKLqrPoQ5RIpHQGnjuMVIuDymXVNdIJRKJDFNV57JlG4a8febGXZndskzOVKQsnhOGVp1BmUSSbSmzBS2r+ABDgM/uP5hZWJy8dqt7cpZCTyb4sPYNUXli03MzC4vJz++IcMzJdG8zjdakq4zLnFzdZQqcvYWU5+qyGpvO9hjV2HTJVU9VKHdrLkJFC8xzaK0OrYCkaCp34WYbkrw8S6Scaw+ZEuHMny7HFN20vIKTB/nmOTI5y5xc9a8JXyx/NbOw2D05a+0bag1GTzrxRtyvjsTg7rhucJTCPnWRD8vEhXS2gbPqSEwZ6qb2oCcTxLmPRq9cu750v9KnkCsxes3yfci2g/lbaPtMdyPCl0rhqs9eABzm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BUc7lO7goZE5pdwhowzyO9ft5xmagz9mQRCYunPaFNoE5MIKQiX7Ry3NTAszhZnDucosv2OQNblBzYBjWoKg/GBa9JDcrwBxexlOftniDTd7ghjMHQRAU1Q6Nnhe9DDcxwBwhkp/fUfjDLf5wSzCyUcxBEESr0xU9twGUCDCnMN2Ts82+oD4QWufmaDQaCIZD0Z6bd74UvdA2PcCcoli4t2x0uSEYRlHUYDCsK3OMRqNWq0U0GrfXd+P2XdHL6hsCMGcF3Lh9l4z3wQii0+kwDBPdHAzDtFqdWq32BYKc/7AAUDmAOaUwPjPncHZAMKzX641Go81mWzNzbDab0WjUYxgEww5nx7mpmeKecgLKDDCndG7e+XJ8Zs4XCKGoFkYQahTncDjKbo7T6TSbzQaDQYOiCKLBff6R8UkwmREXYE55uHH77sj4JO4jDEaTQqFAEI0ew8xmc1tbm9PpdLvdbrebIAhhc7xer9vtdrlcbW1tZrNZj2FarY7aG+4jRsYnU5/dFv1MARTAnIpw4/bduavXR8YnE0PD7R0uq91hsztQrU444hMzGKx2h9Xu6OkbSAwNz129DmYv65b/A++M5YfPnBEpAAAAAElFTkSuQmCC

The version is 7.0.3754.18555

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

 Share

×
×
  • Create New...