With MSChart1 '标记数据点数据
.Plot.SeriesCollection(1).DataPoints(-1). _
DataPointLabel.LocationType = VtChLabelLocationTypeBelowPoint
End With
你的这段代码实现的是点的数据,我不要出现数字,我要的只是把点放大就好
Private Sub Check2_Click()
If Check2.Value Then
With MSChart1 '标记数据点数据
.Plot.SeriesCollection(1).DataPoints(-1). _
DataPointLabel.LocationType = VtChLabelLocationTypeBelowPoint
End With
If Val(GetMyINI("显示点数据", "显示", inipath)) Then
Else
SetMyINI "显示点数据", "显示", "1", inipath
End If
Else
With MSChart1 '取消数据点数据标记
.Plot.SeriesCollection(1).DataPoints(-1). _
DataPointLabel.LocationType = VtChLabelLocationTypeNone
End With
If Val(GetMyINI("显示点数据", "显示", inipath)) Then
SetMyINI "显示点数据", "显示", "0", inipath
End If
End If
Private Sub Check1_Click()
Dim serX As Series
MSChart1.Plot.SeriesCollection.Item(1).SeriesMarker.Auto = False
If Check1.Value Then
' Display Markers for Series 1.
With MSChart1.Plot.SeriesCollection.Item(1).DataPoints.Item(-1).Marker
.Visible = True '显示标记
.Size = 50 '标记大小
.Style = VtMarkerStyleFilledCircle '标记样式
.FillColor.Automatic = False
.FillColor.Set 0, 255, 255 '填充色
End With
If Val(GetMyINI("显示点标记", "显示", inipath)) Then
Else
SetMyINI "显示点标记", "显示", "1", inipath
End If
Else
With MSChart1.Plot.SeriesCollection.Item(1).DataPoints.Item(-1).Marker
.Visible = False '隐藏标记
End With
If Val(GetMyINI("显示点标记", "显示", inipath)) Then
SetMyINI "显示点标记", "显示", "0", inipath
End If
End If