Question Charting and annotations

Grayda

Member
Joined
May 20, 2010
Messages
16
Programming Experience
10+
I've managed to get a good grip on the charting component that was introduced with .NET 4. I've managed to create a chart, add some series and legends and plot out some data. I've also worked out annotations in the designer, but cannot do so programatically.

I've searched on a few sites, but they are mostly ASP.NET / C# examples that don't really line up with what I'm seeing in the IDE.

What I'd like to insert a line pointing to a particular X & Y coordinate and a caption saying what happened there, but it also seems like the X & Y it's looking for are pixels and not the X & Y you would use for a chart. Quite confusing.

Has anyone had any experience with annotations in the new charting component?
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,437
Location
Norway
Programming Experience
10+
Anchoring to a DataPoint is done with the AnchorDataPoint property. I recommend you experiment with configuring things in the designer first, translating that to code (if any) later is much easier.
 
Top Bottom