cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Have your say in shaping JMP's future by participating in the new JMP Wish List Prioritization Survey
Choose Language Hide Translation Bar
lala
Level VII

How can add a specified scale to a bar chart?

For example, using this script to add the "pla" column,
How do I add this to the horizontal scale of the bar chart?

Thanks Experts!

dt=Open("$SAMPLE_DATA/Big Class.jmp");
dt << New Column( "ran", Numeric, Continuous, Set Formula( Col Shuffle() ) );
ca="pla";New Column(ca);Column(ca)<<Formula( round(ran/40*100,0) );dt<<run formulas;Column(ca)<<deleteFormula;
p1=dt<< Graph Builder(
	Transform Column( "rows", Formula( Row() ) ),
	Size( 536, 459 ),
	Show Control Panel( 0 ),
	Variables( X( :rows ), Y( :weight ) ),
	Elements( Bar( X, Y, Legend( 5 ) ) ),
	SendToReport(
		Dispatch( {}, "400", ScaleBox,
			{Legend Model(
				5,
				Properties( 0, {Transparency( 0.5 )}, Item ID( "weight", 1 ) )
			)}
		)
	)
);

2024-07-13_19-47-04.png

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How can add a specified scale to a bar chart?

Basically, all that needs to be done is to

  1. Drag Rows to the X axis
  2. Drag PLA and Weight to the Y axis
  3. Select the Bar chart Icon to change the chart to a Bar chart
  4. Right click on the graph and select
    1. Add=>Points
  5. Go to the Properties for the Bar
    1. Open the Variables paragraph
    2. Unselect PLA
  6. Go to the Properties for the Points
    1. Open the Variables paragraph
    2. Unselect Weight
  7. Go to the legend
    1. Right click on the PLA marker and select Marker
    2. Change the to your marker of choice
    3. Click again on the PLA marker and select Color
    4. Change the color to Red

txnelson_0-1720874093703.png

 

Jim

View solution in original post

2 REPLIES 2
txnelson
Super User

Re: How can add a specified scale to a bar chart?

Basically, all that needs to be done is to

  1. Drag Rows to the X axis
  2. Drag PLA and Weight to the Y axis
  3. Select the Bar chart Icon to change the chart to a Bar chart
  4. Right click on the graph and select
    1. Add=>Points
  5. Go to the Properties for the Bar
    1. Open the Variables paragraph
    2. Unselect PLA
  6. Go to the Properties for the Points
    1. Open the Variables paragraph
    2. Unselect Weight
  7. Go to the legend
    1. Right click on the PLA marker and select Marker
    2. Change the to your marker of choice
    3. Click again on the PLA marker and select Color
    4. Change the color to Red

txnelson_0-1720874093703.png

 

Jim
lala
Level VII

Re: How can add a specified scale to a bar chart?

Thank Jim!

2024-07-13_21-09-35.png