Subscribe Bookmark RSS Feed

Adding Data Labels in a graph using scripting

sibanibisoyi

Occasional Contributor

Joined:

May 31, 2017

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
txnelson

Super User

Joined:

Jun 22, 2012

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