返回或設(shè)置數(shù)值坐標(biāo)軸中與分類坐標(biāo)軸的交點。僅應(yīng)用于數(shù)值坐標(biāo)軸。Double 類型,可讀寫。
設(shè)置本屬性將導(dǎo)致 Crosses 屬性變?yōu)?xlAxisCrossesCustom。
本屬性不能用于三維圖表或雷達(dá)圖。
本示例設(shè)置 ActiveChart 的分類坐標(biāo)軸與數(shù)值坐標(biāo)軸的交點位于數(shù)值坐標(biāo)軸數(shù)值 3 的地方。
Sub Chart()
' Create a sample source of data.
Range("A1") = "2"
Range("A2") = "4"
Range("A3") = "6"
Range("A4") = "3"
' Create a chart based on the sample source of data.
Charts.Add
With ActiveChart
.ChartType = xlLineMarkersStacked
.SetSourceData Source:=Sheets("Sheet1").Range("A1:A4"), PlotBy:= xlColumns
.Location Where:=xlLocationAsObject, Name:="Sheet1"
End With
' Set the category axis to cross the value axis at value 3.
ActiveChart.Axes(xlValue).Select
Selection.CrossesAt = 3