Showing first and last x-axis labels for control charts

Reply
Occasional Contributor
Posts: 6

Showing first and last x-axis labels for control charts

Hello,

I'm trying to show the first and last x-axis labels for a control chart.  The rest of the labels show but not the first and last.  Is there a way to do this?  I would like to add it to a script that can be used for multiple data sets.

I have tried adding blank rows to the beginning and end of the data (the first x-axis label will appear but not the last) and changing the x-axis scale.

Thank you!

Super User
Posts: 11,343

Re: Showing first and last x-axis labels for control charts

Showing some example code of how you are making the control charts would be helpful.

Occasional Contributor
Posts: 6

Re: Showing first and last x-axis labels for control charts

I have not added anything into the script to attempt to get the first and last x-axis labels to appear.  I have played around with it by changing the x-axis scale but still was unable to get it to appear:

specs = Open();

lm = specs << get as matrix;

Close( specs, nosave );

FinalDataSet<<Control Chart(

      Sample Label( :DOM ),

      KSigma( 3 ),

      Chart Col( :VALUE, Levey Jennings( Test 1( 1 ), Test 2( 1 ), Test 3( 1 ) ) ),

      SendToReport(

            Dispatch(

                  {"Levey Jennings of VALUE"},

                  "2",

                  ScaleBox,

                  {Format( "Best", 10 ), Add Ref Line( lm[1,1], Solid, "Blue","LSL"),Add Ref Line( lm[2,1], Solid, "Blue","USL"),

                  Rotated Labels( "Horizontal" )}

            ),

            Dispatch(

                  {"Levey Jennings of VALUE"},

                  "Levey Jennings Chart",

                  FrameBox,

                  {Frame Size( 400,300), Marker Size( 3 )}

            ),

            Dispatch(

                  {"Levey Jennings of VALUE"},

                  "Levey Jennings Chart",

                  FrameBox( 2 ),

                  {Frame Size( 101,300 )}

            )

      )

)

Ask a Question
Discussion stats
  • 2 replies
  • 175 views
  • 0 likes
  • 2 in conversation