语法
表达式.XValues
表达式 一个代表 Series 对象的变量。
说明
对于数据透视图,该属性为只读。
示例
本示例将 Chart1 中系列一的 x 值设置为 Sheet1 上 B1:B5 区域的值。
Charts.Item("Chart1").SeriesCollection(1).XValues = Worksheets.Item("Sheet1").Range("B1:B5")
本示例使用数组为 Chart1 中系列一的各点逐一赋值。
Charts.Item("Chart1").SeriesCollection(1).XValues = [5.0, 6.3, 12.6, 28, 50]