Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 SPC Control Chart Tools for .Net
 Stack Overflow in ParetoChart

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
chrism Posted - 26 Apr 2013 : 11:34:16
I am getting a stack overflow exception (An unhandled exception of type 'System.StackOverflowException' occurred in QCChart2DNet.dll) when attempting to build a pareto chart where all values are zero. If there are non-zero values the chart builds correctly.

It should be reproducible by doing a

Me.AddCategoryItem(0, "Category 1")
Me.AddCategoryItem(0, "Category 2")

and then attempting to build the chart.

I will handle this case in my code before I attempt to BuildChart, but just wanted to put it out there in case anyone else gets this.

Thanks,
Chris
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 26 Apr 2013 : 11:45:21
The Pareto Chart by definition has to divide each value by the sum of all values in order to produce the cumulative percent value. So if you feed it invalid data (sum of all values equals 0) the results create a divide by 0 down the line.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07