50% of this wish Graph Builder: Line - possibility to add breaks come too late, option (2) is already available:
With this new finding, I am happy to present you:
version 3:
- measurements of one group have same color
- no nasty jumps back for the individual curves
- transparency works
- each group has it's own smoother curve
- smoother curves with matching color
- new rows added to the data table *)
*) Definitely: a slight tendency towards a "workaround" - it only works because auxiliary rows were added to the data table **)
But after all, it was a GraphBuilder feature which made it work
What do you think, does it count?
**) With one of these new features:Graph Builder - Overlay by multiple columns ,Graph Builder: Line - possibility to add breaks[option (1)] you will get the same graph just using Graph Builder ... without the need for data table modifications.
dt =Open( "$SAMPLE_DATA/Functional Data/Weekly Weather Data.jmp" );
dt << New Column( "group",Character,"Nominal",Formula( Substr( :STATION, 8, 1 ) ));
//version 3
stations = dt << Summary(Group( :STATION, :NAME ));
For EACH({station}, stations[0,0], dt << add row({:STATION=station[1],:NAME=station[2]}));
dt << sort( BY(:NAME, :DATE ), Replace Table);
dt << Graph Builder(
Variables( X( :DATE ), Y( :TAVG ), Overlay( :group ), Color( :group ) ),
Elements(
Line( X, Y, Legend( 1 ), Row order( 1 ), Missing Values( "No Connection" ) ),
Smoother( X, Y, Color( 0 ), Legend( 2 ) )
),
SendToReport(
Dispatch(
{},
"400",
ScaleBox,
{Legend Model(
1,
Properties( 0, {Transparency( 0.2 )}, Item ID( "2", 1 ) ),
Properties( 1, {Transparency( 0.2 )}, Item ID( "3", 1 ) ),
Properties( 2, {Transparency( 0.2 )}, Item ID( "4", 1 ) )
), Legend Model(
2,
Base( 0, 0, 0, Item ID( "2", 1 ) ),
Base( 1, 0, 0, Item ID( "3", 1 ) ),
Base( 2, 0, 0, Item ID( "4", 1 ) )
)}
)
)
)
#1000