Modules
Objects/Functions
SuiteScript 2.0
workbook.ChartType.{|AREA,BAR,COLUMN,LINE|}
N/workbook Module
workbook.ChartType
Enum Description:
Holds string values for chart types. Used to pass the type value to workbook.createChartDefinition(options).
For more information about charts in SuiteAnalytics, see Chart Types.
Module:
N/workbook Module
Sibling Module Members:
N/workbook Module Members
Since:
2020.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=workbook.ChartType
Example:
// Code Example 1
// Add additional code
//...
var myAreaChartDefinition = workbook.createChartDefinition ({
id: '123',
name: 'Chart A',
type: workbook.ChartType.AREA,
category: myCategory,
legend: myLegend,
series: [mySeries],
dataset: myDataset
});
var myBarChartDefinition = workbook.createChartDefinition ({
id: '456',
name: 'Chart B',
type: workbook.ChartType.BAR,
category: myCategory,
legend: myLegend,
series: [mySeries],
dataset: myDataset
});
var myColumnChartDefinition = workbook.createChartDefinition ({
id: '789',
name: 'Chart C',
type: workbook.ChartType.COLUMN,
category: myCategory,
legend: myLegend,
series: [mySeries],
dataset: myDataset
});
var myLineChartDefinition = workbook.createChartDefinition ({
id: '1000',
name: 'Chart D',
type: workbook.ChartType.LINE,
category: myCategory,
legend: myLegend,
series: [mySeries],
dataset: myDataset
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_159059165881.html