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
VB.NET: Mark Points in Line Chart
提问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:
它看起来应该是正确的:


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

