DOCUMENTS 5 - PortalScripting API
|
The XLSXChartAxis class represents the Excel chart axis. More...
Public Member Functions | |
String | getLastError () |
Function to get the description of the last error that occurred. More... | |
boolean | setLabelAlign (String align) |
Set the alignment of the axis labels. More... | |
boolean | setLabelPosition (String position) |
Position the axis labels. More... | |
boolean | setName (String name) |
Set the name caption of the chart axis. More... | |
boolean | setNameRange (String sheetname, number row, number col) |
Set a chart axis name formula using row and column values. More... | |
boolean | setNumberFormat (String numFormat) |
Set the format of the numbers on the axis. More... | |
boolean | setReverse () |
Reverse the order of the axis categories or values. More... | |
The XLSXChartAxis class represents the Excel chart axis.
An XLSXChartAxis object isn't created directly. You can get it using the XLSXChart.getAxis(String axisType) function. It provides functions for configuring a chart axis.
String XLSXChartAxis::getLastError | ( | ) |
Function to get the description of the last error that occurred.
boolean XLSXChartAxis::setLabelAlign | ( | String | align | ) |
Set the alignment of the axis labels.
Position the category axis labels for the chart. The labels are the numbers, or strings or dates, on the axis that indicate the categories of the axis.
align | The axis label alignment with the following available values:
|
true
if successful, false
in case of any error boolean XLSXChartAxis::setLabelPosition | ( | String | position | ) |
Position the axis labels.
Position the axis labels for the chart. The labels are the numbers, or strings or dates, on the axis that indicate the categories or values of the axis.
position | Option to position the axis labels. The following values are available:
|
true
if successful, false
in case of any error boolean XLSXChartAxis::setName | ( | String | name | ) |
Set the name caption of the chart axis.
name | String containing the name caption of the axis or a formula such as "=Worksheet1!$A$1" to point to a cell in the Excel file that contains the name. |
true
if successful, false
in case of any error boolean XLSXChartAxis::setNameRange | ( | String | sheetname, |
number | row, | ||
number | col | ||
) |
Set a chart axis name formula using row and column values.
This function can be used to set an axis name range and is an alternative to using XLSXChartAxis.setName(String name)
and a string formula.
sheetname | The name of the worksheet that contains the cell range. |
row | The zero indexed row number of the range. |
col | The zero indexed column number of the range. |
true
if successful, false
in case of any error boolean XLSXChartAxis::setNumberFormat | ( | String | numFormat | ) |
Set the format of the numbers on the axis.
numFormat | The number format string being similar to the parameter numFormat of the function XLSXFormat.setNumberFormat(String numFormat). |
true
if successful, false
in case of any error boolean XLSXChartAxis::setReverse | ( | ) |
Reverse the order of the axis categories or values.
true
if successful, false
in case of any error