views:

65

answers:

3

Hi, I'm looking for a very simple wpf diagram toolset that would allow me to create simple charts based on data from the database. I need a simple solution - I have seen many that were too advanced, allowing the programmer to create UML diagrams, complicated charts, etc. I want to be able to show simple changes over time with a line - that's it.

I would really appreciate any help on that as well as suggestions.

Thanks.

+1  A: 

The WPF Toolkit has standard classic charts; Delay's blog has a few tutorials/demos on what you can do with them, and how to use them. Would that be sufficient for your purposes?

Mathias
I will check it out but the examples shown on the website you mentioned looks promising. I just hope it is easy to use and integrate. Thanks a lot for fast response.
Enzomatric
+1  A: 

The free WPFToolkit includes a very simple and easy to use charting implementation in its DataVisualization.Toolkit DLL. It tends to be very good for quick and easy charting of data without having to put much thought into it. It can be as simple as:

<toolkit:Chart>
  <toolkit:LineSeries Title="Series Title"
                      ItemsSource="{Binding Data}"
                      IndependentValueBinding="{Binding Month}"
                      DependentValueBinding="{Binding Value}" />

  <toolkit:LineSeries ... />
</toolkit:Chart>

This assumes your Data is a list of objects each containing a Month and a Value field. Or you can generate such objects with LINQ:

Data =
  from xyz in myData
  select new { Month = xyz.ComputeMonth(), Value = xyz.Count };
Ray Burns
Thanks a lot, Ray Burns. I will see if I can use that.
Enzomatric
+1  A: 

GoXam (for WPF and Silverlight) may be in your category of "too advanced", but you can do some amazing things with it with very little code (other than the XAML).

Fuzzy