Modules
Objects/Functions
SuiteScript 2.0
// Please search https://system.netsuite.com/app/help/helpcenter.nl?search=Legend.root for more information.
N/workbook Module
Legend.root
Property Description:
The root data (i.e., fields) that defines the legend.
Type:
workbook.DataDimension | workbook.Section
Module:
N/workbook Module
Parent Object:
workbook.Legend
Sibling Object Members:
Legend Object Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Legend.root
Example:
// Code Example 1
// Add additional code
//...
// View Legend.root in a ChartDefinition
var myWorkbook = workbook.load({
id: myWorkbookId
});
log.audit({
title: 'Legend.root = ',
details: myWorkbook.chartDefinitions[0].legend.root
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159060401557.html