The Legend object is used to store the display attributes of the chart legend. A legend object is automatically created when creating a Chart object.
import visualization session.charts[name].legend session.defaultChartOptions.legend session.xyPlots[name].charts[name].legend
This method modifies the Legend object.
Required arguments
Optional arguments
A Legend object from which attributes are to be copied.
A Boolean specifying whether to show the legend. The default value is ON.
A Boolean specifying whether to display the minimum and maximum values. The default value is OFF.
A String specifying the title to appear on the legend. The default value is an empty string.
A SymbolicConstant specifying how the minimum and maximum values are formatted. Possible values are AUTOMATIC, DECIMAL, SCIENTIFIC, and ENGINEERING. The default value is AUTOMATIC.
An Int specifying the number of significant digits displayed for the minimum and maximum values. Possible values are 1 to 7. The default value is 2.
A TextStyle object specifying the text properties used to display the legend text.
A TextStyle object specifying the text properties used to display the legend title.
Return value
Exceptions
The Legend object can have the following members:
A SymbolicConstant specifying how the minimum and maximum values are formatted. Possible values are AUTOMATIC, DECIMAL, SCIENTIFIC, and ENGINEERING. The default value is AUTOMATIC.
An Int specifying the number of significant digits displayed for the minimum and maximum values. Possible values are 1 to 7. The default value is 2.
A Boolean specifying whether to show the legend. The default value is ON.
A Boolean specifying whether to display the minimum and maximum values. The default value is OFF.
An Area object specifying the area of the legend.
A TextStyle object specifying the text properties used to display the legend text.
A String specifying the title to appear on the legend. The default value is an empty string.
A TextStyle object specifying the text properties used to display the legend title.