ExcelScript.ChartPoint interface
Represents a point of a series in a chart.
Methods
get |
Returns the data label of a chart point. |
get |
Encapsulates the format properties chart point. |
get |
Represents whether a data point has a data label. Not applicable for surface charts. |
get |
HTML color code representation of the marker background color of a data point (e.g., #FF0000 represents Red). |
get |
HTML color code representation of the marker foreground color of a data point (e.g., #FF0000 represents Red). |
get |
Represents marker size of a data point. |
get |
Represents marker style of a chart data point. See |
get |
Returns the value of a chart point. |
set |
Represents whether a data point has a data label. Not applicable for surface charts. |
set |
HTML color code representation of the marker background color of a data point (e.g., #FF0000 represents Red). |
set |
HTML color code representation of the marker foreground color of a data point (e.g., #FF0000 represents Red). |
set |
Represents marker size of a data point. |
set |
Represents marker style of a chart data point. See |
Method Details
getDataLabel()
Returns the data label of a chart point.
getDataLabel(): ChartDataLabel;
Returns
getFormat()
Encapsulates the format properties chart point.
getFormat(): ChartPointFormat;
Returns
getHasDataLabel()
Represents whether a data point has a data label. Not applicable for surface charts.
getHasDataLabel(): boolean;
Returns
boolean
getMarkerBackgroundColor()
HTML color code representation of the marker background color of a data point (e.g., #FF0000 represents Red).
getMarkerBackgroundColor(): string;
Returns
string
getMarkerForegroundColor()
HTML color code representation of the marker foreground color of a data point (e.g., #FF0000 represents Red).
getMarkerForegroundColor(): string;
Returns
string
getMarkerSize()
Represents marker size of a data point.
getMarkerSize(): number;
Returns
number
getMarkerStyle()
Represents marker style of a chart data point. See ExcelScript.ChartMarkerStyle
for details.
getMarkerStyle(): ChartMarkerStyle;
Returns
getValue()
Returns the value of a chart point.
getValue(): number;
Returns
number
setHasDataLabel(hasDataLabel)
Represents whether a data point has a data label. Not applicable for surface charts.
setHasDataLabel(hasDataLabel: boolean): void;
Parameters
- hasDataLabel
-
boolean
Returns
void
setMarkerBackgroundColor(markerBackgroundColor)
HTML color code representation of the marker background color of a data point (e.g., #FF0000 represents Red).
setMarkerBackgroundColor(markerBackgroundColor: string): void;
Parameters
- markerBackgroundColor
-
string
Returns
void
setMarkerForegroundColor(markerForegroundColor)
HTML color code representation of the marker foreground color of a data point (e.g., #FF0000 represents Red).
setMarkerForegroundColor(markerForegroundColor: string): void;
Parameters
- markerForegroundColor
-
string
Returns
void
setMarkerSize(markerSize)
Represents marker size of a data point.
setMarkerSize(markerSize: number): void;
Parameters
- markerSize
-
number
Returns
void
setMarkerStyle(markerStyle)
Represents marker style of a chart data point. See ExcelScript.ChartMarkerStyle
for details.
setMarkerStyle(markerStyle: ChartMarkerStyle): void;
Parameters
- markerStyle
- ExcelScript.ChartMarkerStyle
Returns
void
Office Scripts
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for