title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Series.XValues property (Excel) |
vbaxl10.chm578112 |
|
|
63715a3c-9d2d-6213-ac99-2c583773b45a |
05/11/2019 |
medium |
Returns or sets an array of x values for a chart series. The XValues property can be set to a range on a worksheet or to an array of values, but it cannot be a combination of both. Read/write Variant.
expression.XValues
expression A variable that represents a Series object.
For PivotChart reports, this property is read-only.
This example sets the x values for series one on Chart1 to the range B1:B5 on Sheet1.
Charts("Chart1").SeriesCollection(1).XValues = _
Worksheets("Sheet1").Range("B1:B5")
This example uses an array to set values for the individual points in series one on Chart1.
Charts("Chart1").SeriesCollection(1).XValues = _
Array(5.0, 6.3, 12.6, 28, 50)
[!includeSupport and feedback]