cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
simon_2
Level III

How can I highlight data points when clicking on legend in interactive HTML?

I have a bivariate chart saved as interactive HTML. I would like to be able to select a legend and highlight points on the chart. Is it possible to do this using JSL? 

 

This is the chart after saving as interactive HTML.

simon_2_0-1648842076350.png

 

 

Here is the JSL script:

 

Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = dt << Bivariate(
	Y( :height ),
	X( :weight ),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Frame Size( 448, 348 ), Row Legend(
				sex,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 1 ),
				Marker Theme( "Standard" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);

rbiv = biv << report;
rbiv << Save Interactive HTML( "height_weight_chart.html" );

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can I highlight data points when clicking on legend in interactive HTML?

Legends aren't interactive in Interactive HTML, unfortunately. But you can achieve something close using a dashboard:

 

Jordan_Hiller_0-1648844096349.png

 

View solution in original post

4 REPLIES 4

Re: How can I highlight data points when clicking on legend in interactive HTML?

Legends aren't interactive in Interactive HTML, unfortunately. But you can achieve something close using a dashboard:

 

Jordan_Hiller_0-1648844096349.png

 

simon_2
Level III

Re: How can I highlight data points when clicking on legend in interactive HTML?

Thanks

Re: How can I highlight data points when clicking on legend in interactive HTML?

Thanks for your question, @simon_2. In JMP 17, HTML5 supports interactive legends in Graph Builder reports. 

 

bfricke_0-1649431486761.png

 

simon_2
Level III

Re: How can I highlight data points when clicking on legend in interactive HTML?

 Cool. Looking forward to using JMP 17.

Recommended Articles