VB.NET:在折线图中标记点

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16180068/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 13:22:43  来源:igfitidea点击:

VB.NET: Mark Points in Line Chart

vb.netcharts

提问by Florian Müller

I'm creating a Chart with Lines on it in VB.NET. Now I got multiple Values in one Line. I want to mark certain of these values with a little Circle (or a Sqare, nevermind).

我正在 VB.NET 中创建一个带有线条的图表。现在我在一行中得到了多个值。我想用一个小圆圈(或一个正方形,没关系)标记这些值中的某些。

How do I have to do this?

我该怎么做?

It should look right light this:

它看起来应该是正确的:

A Sample of a Line with highlighted and non-highlighted Values

具有突出显示和非突出显示值的线条示例

How to Achieve?

如何实现?

回答by Florian Müller

Setting the Point's Marker does the Trick:

设置点的标记有诀窍:

dataGridView1.Series(0).Points(0).MarkerStyle = DataVisualization.Charting.MarkerStyle.Circle
dataGridView1.Series(0).Points(0).MarkerSize = 10