While having fun with WPF/XAML in my spare time, I came across this work by John Stevien at CodeProject. So I went out to try something fun with WPF and see if we can create something similar to the charts you see on Google finance. Since unlike Adobe Flex platform, WPF/XAML lacks any built-in support for data charts, I think this could be something helpful in real-life applications. Here is the results of this 4-hour adventure. I’ve created a WPF/XAML based 2D filled chart that supports dynamic zooming and panning, and track-ball of the current chart positions for time-series data. This chart could possibly be used in many situations where time-series data needs to be displayed.

This chart utilize the flexibility and power of the “adorner” class in WPF Visual elements. The following shows the chart in action:
[ Update: 7/20/2007]
The source code is uploaded to my Box.net share here. You can download and try the code.
[Update: 1/16/2009]
A new source code link is posted at:
July 20, 2007 at 7:34 pm |
[...] you are looking for ideas, Li Gao just published another WPF charting example (no source code available [...]
July 20, 2007 at 7:35 pm |
Any thought about makig the source code available?
http://wpfwonderland.wordpress.com/
July 20, 2007 at 8:11 pm |
Walt, thanks for your interests in this chart. I will clean up my code and remove some confidential info and then post the source code here. Stay tuned.
July 20, 2007 at 9:10 pm |
The source code is posted in my Box.Net share. The link is on the bottom of the blog entry page.
The download link is http://www.box.net/shared/j2u1ir2nfc
July 20, 2007 at 11:16 pm |
Thank you. I updated my post.
July 30, 2007 at 8:18 am |
Can this wpf Chart be implemented in Silverlight ???
Anyone has an idea ??
July 30, 2007 at 6:50 pm |
It will be interesting to see this implemented in Silverlight. Since it just went for RC1, I will see if I can make it work under Silverlight.
August 21, 2007 at 8:34 pm |
[...] chart in WPF A few weeks back I posted a WPF-based chart in my blog. Currently in one of my projects I need to deploy charts that support displaying [...]
December 19, 2007 at 9:31 pm |
Oh, and did not know about it. Thanks for the information …
May 1, 2008 at 8:33 pm |
4 hours hey…
May 11, 2008 at 12:48 am |
Dude, this is awesome!!! GREAT JOB!
June 4, 2008 at 12:35 pm |
hi there ,if you guys are in search of silverlight then chk this out visifire its an amazing charting component under open source for free
August 4, 2008 at 11:03 am |
I can’t download the source code from Box.net account. Could you please check? I really like your chart. Thanks!
August 20, 2008 at 7:59 pm |
I think the link is still broken. I really want to download this and checked it out.
August 25, 2008 at 9:20 pm |
Looks interesting, can you please republish the code?
Thanks
August 28, 2008 at 7:51 pm |
I cannot download the source for your graph – Could you please send it?
Thank you!
September 7, 2008 at 2:17 am |
Looks great. Can’t download, would be nice if you can repost it. Thanks.
October 10, 2008 at 10:17 am |
Any chance we can download the source, it looks great.
October 16, 2008 at 5:35 pm |
The Box.net account does not show the file to download and displays an error. could you share the source code please?
I am impressed and would like to try it out.
Thanks,
VT
November 10, 2008 at 8:31 pm |
Hi, could you post source code?
November 13, 2008 at 1:23 am |
code seems to be missing
November 24, 2008 at 7:54 am |
You guys should check out Visifire at http://www.visifire.com. It is open source and supports both WPF and Silverlight using a single API.
December 8, 2008 at 3:47 am |
Any chance of making the source available again?
Thanks!
Jim
December 13, 2008 at 1:57 pm |
Thanks!,
January 15, 2009 at 10:37 pm |
Could you PLEASE post the source code? Thanks!
January 16, 2009 at 5:15 pm |
Hi,
Will the source be available again ?
January 16, 2009 at 6:33 pm |
Hi all,
I’ve just posted the new source code link. Check the bottom of the blog page.
Sorry for the broken link. Haven’t updated it for quite some time.
January 16, 2009 at 6:41 pm |
thanks a lot
April 27, 2009 at 4:18 pm |
[...] http://ligao101.wordpress.com/2007/07/17/a-wpfxaml-based-chart/ [...]
April 27, 2009 at 5:07 pm |
[...] http://ligao101.wordpress.com/2007/07/17/a-wpfxaml-based-chart/ [...]