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
sibanibisoyi
Level I

Adding Data Labels in a graph using scripting

Hello,

I need help in adding the Data Labels in a graph using Scripting. I want to display always the data value of the recent row. 

I marked the column as Label, and I also marked the row as label. But I don't know how can I write the script for the same.

 

 

1 REPLY 1
txnelson
Super User

Re: Adding Data Labels in a graph using scripting

Below is an example of how to accomplish what you want.  You need to get familiar with the Scripting Index.  It will provide you with the documentation and examples of how to do things such as you have asked.

     Help==>Scripting Index

Names Default To Here( 1 );
dt = Current Data Table();
dt:Column 1 << Set labelled;
dt << select where( :Pressure == 60 ) << label;
Jim

Recommended Articles