хотите создать диаграмму рассеяния XY в виде диаграммы, которая имеет определенный вид.
Когда я меняю стиль строки ряда данных на msoLineSysDot , VBA-Excel также изменяется стиль линии контуров маркера. Контур пунктирный , хотя я использовал стиль «точки» для линии серии (см. Рисунок: я покрасил его в оранжевый цвет для выделения).
Вот что у меня:
But this is what I expected it to look like:
Which properties specifically set or enable just the data series line? Or vice-versa: How can I specifically change just the line format of the marker outlines from dashed to solid?
The code block:
'Dim ch as chart 'Excel CHART object (not the container)
With ch.FullSeriesCollection(seriesNo)
'format the line between the data series markings
.format.Line.visible = msoTrue
.format.Line.Weight = 1
.format.Line.DashStyle = msoLineSysDot ' -> this change dash type of line AND border markings
'failed workarounds to turn the border line solid againg
'.MarkerForegroundColor = 0
'.Border.LineStyle = xlContinuous 'turns all lines back to solid
'.Border.Color = RGB(0, 0, 0) 'all lines turn white
'.MarkerBackgroundColor = RGB(255, 255, 255)
'"solutions" to alleviate my problem a bit
.MarkerForegroundColor = xlNone
.MarkerSize = 4
.MarkerStyle = 8
end with
I found a аналогичный вопрос , где контур маркера меняется на одну точку. Но при использовании в точке в середине ряда это также влияет на линию от предыдущей точки.