Jump to content
Software FX Community

Point values automatically rounding to 100%


Samuel
 Share

Recommended Posts

Hi,

I am creating a bar chart, which displays 10 different sector information.

I have just 96% over all sum of all the 10 sector values. on that case, the point values are not matching to the value in database.

if i have 100% sum, the chart have point values matching to my database values.

on debugging i found that chart automatically rounded up to a 100%.

How can i make the chart. Show the actual values in the database? I dont want the over all sum to be 100%.

i can make a change in procedure to get Missing value in seperate record.

can i make that (point label) Missing and (point value) 4% invisible?

Some one please provide me a solution. Urgent please

Thanks in advance

ChartTest.zip

Link to comment
Share on other sites

  • 1 month later...

Hi,

I got the answer. The following line is the reason for my issue..

ChartStrategySectorAnalysis.AllSeries.PointLabels.Format =

" %p%%";

In the display label, i am trying to include a space between number and % symbol. On this time it recalculates to 100 percentage.

 

Example, there are 4 values in database... 25, 31, 15, 25.

If the line mentioned above is not included in the code. The chart displays with the same data in the database.

On including the line, the chart have values 26,32,26,26. (Total rounds to 100, which is wrong in my case)

Hope i explained it clear.

Thanks

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