I'm trying to automate my JMP chart creation. I've been using the following as a guide: Automated Report Creation From Data Import to Publication 2019
I've gotten to the point where I can create all of the charts. Now I'm working on saving them and having a hard time determining how. I am generating a P Chart report that is grouped by some value in the underlying data table. The report comes out with multiple P Charts, one for each group by value. I want to save each one individually to a seperate HTML page. So for example, if I had a report that grouped on "Planets" and the report had charts for each planet, I want to have an HTML page with the chart for each Planet instread of a signle HTML page with all of the planets. Is this possible and if so, how. Attached is my sample script.
planetQ = New SQL Query(
Connection(
"CONNECTION INFO HERE"
),
QueryName( "ON_TIME_SPC_PLANET" ),
Select(
Column( "ReleaseMonth", "t1", Numeric Format( "m/d/y", "-1", "NO", "" ) ),
Column( "PLANET", "t1" ),
Column(
"On-Time",
"t1",
Alias( "Sum-On-Time" ),
SavedJMPName( "On-Time" ),
Aggregation( "Sum" ),
JMP Name( "Sum-On-Time", 0 )
),
Column(
"Total",
"t1",
Alias( "Sum-Total" ),
SavedJMPName( "Total" ),
Aggregation( "Sum" ),
JMP Name( "Sum-Total", 0 )
),
Column( "Phase", "t1", Analysis Type( "Nominal" ) )
),
From( Table( "ON_TIME_SPC", Schema( "dbo" ), Alias( "t1" ) ) ),
Group By(
Column( "ReleaseMonth", "t1", Numeric Format( "m/d/y", "-1", "NO", "" ) ),
Column( "PLANET", "t1" ),
Column( "Phase", "t1" )
),
Order By(
Column(
"ReleaseMonth",
"t1",
Numeric Format( "m/d/y", "-1", "NO", "" ),
Order( "Ascending" )
)
)
) << Run Foreground();
planetQ << New Column( "OnTimePct",
Formula( :Name( "Sum-On-Time" ) / :Name( "Sum-Total" ))
);
wait(1.0);
current data table(planetQ);
planetP = Control Chart(
Sample Label( :ReleaseMonth ),
Phase( :Phase ),
Sample Size( :Name( "Sum-Total" ) ),
KSigma( 3 ),
Chart Col( :OnTimePct, P( Phase Level( "1" ), Phase Level( "2" ) ) ),
By( :PLANET )
);