Anyone knows if this is possible? If yes is there any sample code so I can easily just put my data and get my chart?
There is no such thing as a C# Chart. I think what you are referring to is Microsoft Chart Controls.
Check here for examples.
Related
Maybe this is not the right forum for my question, but I'll try anyway.
I am creating an application where I want the user to be able to fill in values in a table/matrix. The values are then going to be saved to a database I have set up. I want to build this application using Windows Presentation Foundation (WPF). I watched the following video on youtube:
https://www.youtube.com/watch?v=_i4mYXSaD4w and it shows very well what features I want my own application to have. The problem is, the example in the video is made in Winforms...
So, my question, which can be split into three parts, is:
Is there a way to build something equal, similar or better, in WPF?
What/which control(s) should I use? Grid? DataGrid?
How do I use this control?
I am new to WPF, and do not have a good picture of what controls to use. I have read many questions about WPF's DataGrid on StackOverflow as well as other QnA's, but I couldn't understand how to do what I wanted, or even if it was possible. Therefore, I'm very thankful to anyone who can explain and lead me onto the right track.
I suggest you to read this article: http://www.codeproject.com/Articles/30905/WPF-DataGrid-Practical-Examples
Is there a way to display tooltips on an image that is dynamically created. The image is a dynamically created chart that has multiple points and on mouse over on a specific point I need to show additional information via a popup.
I'm using a web forms .net 4.0 and using the System.Drawing and System.Drawing.Imaging namespaces.
If your only output is a flat image, you could try adding a <map> to your page and set the 'title' attribute of each <area> to your tooltip value.
You can learn more about creating maps here: http://www.w3schools.com/tags/tag_map.asp
Essentially, you're defining regions of your image as hot spots.
If you know exactly where the point is, you could create an image map. But will be cumbersome.
How to make an image map:
http://www.javascriptkit.com/howto/imagemap.shtml
I would recommend that you use a Javascript Charting Library, there are tons of them out there. And there are some good free ones.
We are using Highchart
http://www.highcharts.com/products/highstock
But this is not free.
You can use a image map, but in order to do that, you're going to need the exact coordinates and if you're off by just a little bit, it could be messed up. Have you given any thought to using MS Charting? http://www.microsoft.com/download/en/details.aspx?id=14422
With MS Charting, everything is done on the code behind and it generates an image just as the way you're doing it now. The difference is on the backend, when you create the datapoint, you can set the tool tip and several other properties like this:
DataPoint.ToolTip = "Your Tooltip Here";
If you are unfamiliar with them, there is a ton of documentation and samples online.
Good Luck!
I'm looking to buy or build a spline chart (just like one here) in C# .NET for which the data points can be draged by mouse and the resulting underlying dataset changes.
Could some one point me in the right direction?
I've been making interactive spline charting using native .NET WinForm charting controls. MSDN has an expansive demo of these features, one of which is chart interactivity.
Samples Environment for Microsoft Chart Controls
You could try using the Silverlight toolkit.... LINK
But what is the problem you are having with the Visifire chatrs you have shown in example ?
I am looking for a graphing library that I can use in a C# application. I am hoping to find one that is free and would allow me to create a line graph that end-users could modify by dragging data points.
If anyone knows of one that can do this let me know.
Thanks.
It looks like this is possible with both MsChart and ZedGraphs.
MsChart: http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/2bc4823c-1365-40ee-a239-b6f0c65a539a
ZedGraphs: http://goorman.free.fr/ZedGraph/zedgraph.org/wiki/indexa9f9.html
Piccolo is pretty good as well.
Does the ZedGraph API allow us to create a radar chart? An example of a radar chart can be seen at http://www.internet4classrooms.com/excel_files/radar_chart3.gif and is also listed below.
Language used: C#, getting data from a database dynamically and shown on the radar chart.
You can do it in ZedGraph using polar plot or any similar type of chart, here is some example:
[link broken] http://zedgraph.org/wiki/index.php?title=Polar_Plot_Demo
This should show you how you can do a chart like this. It shouldn't be any problem.
maybe also take a look on this example:
[link broken]
http://zedgraph.org/wiki/index.php?title=Contour_Chart_Demo
I don't think you can do it in ZedGraph, but I did come across this example in VB.NET (it could probably easily be translated to C#) for a different charting application: OpenFlashChart - A radar chart example with VB.NET.