Hi @thiennguyen ,
I'm not sure that it's possible to do that in JMP -- at least to modify the color of any possible line in a box plot.
I played around with the Air.jmp sample data table using :Ozon cencentration and :month as the y and x axes, respectively. You can modify the color of any one box plot and its whiskers, but I don't think you can do that to any one line element of the box plot -- that is unless you build the box plot lines individually and manually create the box plot, which kind of defeats the purpose of using JMP's graphing capabilities.
One of the reasons I think it's not possible is how the box plot is addressed in the JSL version:
Graph Builder(
Graph Spacing( 4 ),
Variables( X( :month ), Y( :Ozone Concentration ) ),
Elements( Box Plot( X, Y, Legend( 5 ) ) ),
SendToReport(
Dispatch(
{},
"Graph Builder",
FrameBox,
{DispatchSeg(
Box Plot Seg( "Box Plot (1)" ),
{Confidence Diamond( 1 ), Shortest Half Bracket( 1 ),
Line Color( "Blue" )}
)}
)
)
);
If you read down the JSL to the Box Plot Seg() command, it is accessing the entire "Box Plot (1)" element as a whole, not an individual line segment. I also checked the tree structure of the graph builder, and it looks like it treats the box plot elements as an entire entity.
Based on this, I don't see a way at the moment to access a single line segment of a box plot and make it a unique color. Sorry it's not a real solution to your question.
Hope this helps,
DS