Reputation: 5146
Here is the way that I think a scatter plot should be built in C# (at a decently high level of abstraction).
Does this even make sense? Am I using the wrong controls for the job? Is there some code in .NET that will do a large part of this already (the chart class seems good only for bar graphs)? Is there a way to access excel's plotting capabilities from C#?
To me, all of this seems quite contrived, and I would appreciate input on how to better design a scatter-plot class.
Upvotes: 0
Views: 5079
Reputation: 40838
The Microsoft Chart Controls library can do much more than bar graphs. It is included in the .NET 4 framework, but is also available as a separate download for .NET 3.5 SP1. The samples are available here and demonstrate most of the major features.
Upvotes: 2
Reputation: 26612
No, that does make sense. I don't really know how "professionals" do it, but when you need a quick scatter plot that's pretty much how you would make one. Some things to keep in mind:
Upvotes: 1