Below is a jsl example of PMroz' suggestion using the Chart platform or alternatively Graph Builder to generate overlaid "histograms". Both platforms leave space between bars which may not be desired. It seems not to be possible to adjust spacing as in e.g. Excel.
dt = Open( "$ENGLISH_SAMPLE_DATA/Big Class.jmp" );
// get bins from histogram
dist = dt << Distribution(
Column( :Weight ),
save( level midpoints ),
invisible
);
dist << close window;
col = Column( dt, N Col( dt ) );
col << set modeling type( Nominal );
// Chart histogram
Chart( X( col, :sex ), Y( N ), Bar Chart( 1 ) );
// Graph Builder histogram
Graph Builder(
Show Control Panel( 0 ),
Variables( X( col ), Overlay( :sex ) ),
Elements(
Bar(
X,
Legend( 2 ),
Bar Style( "Side by side" ),
Summary Statistic( "Mean" )
)
)
);