cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Register to attend Discovery Summit 2025 Online: Early Users Edition, Sept. 24-25.
  • New JMP features coming to desktops everywhere this September. Sign up to learn more at jmp.com/launch.
Choose Language Hide Translation Bar
Sandra233
Level III

How do I define spec limits by data category in variability chart

Hi,

How can I draw spec limits(red line) by data category in variability chart as below example?  The red line was done by manual in pptx.

Attach jmp file data for reference. Appreciate for your reply. Thanks.

 

wilsonliao233_0-1742462046122.png

 

24 REPLIES 24
Sandra233
Level III

Re: How do I define spec limits by data category in variability chart

Refer to attachments for test data and script.

jthi
Super User

Re: How do I define spec limits by data category in variability chart

Like I said earlier, easiest option is to create new grouping column and use that in your Summary table. It might also be enough to just get sum of the n categories over multiple groups

curcount = Sum(dt_summary[i, {"Leg", "Layer"}]);
-Jarmo
Sandra233
Level III

Re: How do I define spec limits by data category in variability chart

Hi Jarmo

 

When I key multiple data, the spec limit does not follow script content. How could I modify script ?

jthi
Super User

Re: How do I define spec limits by data category in variability chart

You have to calculate the group counts in different manner. One quite simple option could be to add new column to your dt which combines leg and layer

dt << new column("LEGLAYER", Character, Nominal, Formula(:Leg ||:Layer));

then use that in the summary

dt_summary = dt << Summary(
	Group(:SampleGroup),
	Max(:LSL),
	//Mean(:Target),
	Min(:USL),
	N Categories(:LEGLAYER),
	Freq("None"),
	Weight("None"),
	statistics column name format("column"),
	Link to original data table(0)
);

and get the curcount from that

	curcount = Sum(dt_summary[i, {"LEGLAYER"}]);

jthi_0-1750146955371.png

 

-Jarmo

Re: How do I define spec limits by data category in variability chart

Hi there,
If you're looking for a scripting-free solution and okay with using Graph Builder, it actually handles multi-level spec limits by category  — just make sure your spec limits are structured accordingly (e.g., via column property).

If you specifically want to stay with Variability Chart, this behavior isn’t built-in in core JMP — but it is supported in YieldOptiX, a plugin developed for test data analysis. It adds support for category-based spec limits directly in the Variability Chart.

So both options (Graph Builder or Variability Chart with grouped limits) are supported depending on your preferred interface — just depends on what fits your process best.

 

 

 

Recommended Articles