Phone-y charts [Silverlight/WPF Data Visualization Development Release 4 and Windows Phone 7 Charting sample!]

This blog has moved to a new location and comments have been disabled.

All old posts, new posts, and comments can be found on The blog of

See you there!

Comments (18)
  1. kennetht says:

    Nice to hear this! Will the stacked series be included in WPFTookit too?

  2. Delay says:


    Yes, the next release of the WPF Toolkit will include these changes. For now, the pre-compiled WPF 3.5/4 assembly that’s part of the SilverlightWpfDataVisualization download I provide here is probably the easiest way to get this stacked series support on WPF.


  3. kennetht says:


    Thanks very much for your info! Looking forward to it :)

    BTW, I noticed that .NET 4.0 actually gets the namespace. Is the toolkit going into the .NET main stream?


  4. Delay says:


    System.Windows.FORMS.DataVisualization is the namespace used by the Microsoft Charts assemblies that are available for WinForms/WebForms. They’re not *directly* related to what’s in the Silverlight/WPF Toolkits, though there are a variety of indirect relationships. But you’re right about the basic notion that stuff like this might eventually find its way into the Framework itself. :)

  5. Humberto says:

    Nice Post!


    I tried your sample with WP7 RTM bits and it still works (which is cool). However I was hoping to use the "official" dlls that I downloaded from the Silverlight Toolkit page. I'm adding a reference to the .Controls of SL3 and to the .DataVisualization from SL 4 but the app fails to load with a bogus exception. So it seems that the bug that you aluded too hasn't been fixed yet. Am I missing something?

  6. Delay says:


    This should work okay on WP7 RTM because they have fixed the assembly signing bug that caused problems initially. In this post I note that I've switched my sample to use the official Controls assembly from the Silverlight 3 SDK:…/why-didn-t-i-think-of-that-in-the-first-place-windows-phone-7-charting-example-updated-to-include-reusable-platform-consistent-style-and-templates.aspx

    What might be happening in your case is that you're using a Silverlight 4 assembly with Windows Phone 7 (~Silverlight 3). Of course, I realize there isn't an official Silverlight 3 build of the April 2010 Silverlight 4 Toolkit Data Visualization assembly – which is why I used the Silverlight 3 one from my Development Release. :) The only difference there should be that it's not officially signed with the Microsoft key. If that's not an issue for you (and I'm not sure why it would need to be), you ought to be able to use the "semi-official" DataVis build that I produced instead.

    Hope this helps!

  7. Its Me says:

    Could anyone clarify if what im doing is correct please – I already have a reference to ….DataVisualization.Toolkit which i believe is aiming at SL3 (Although im using WPF 4.0).

    So i delete that reference and add the reference from the link above… Add the Chart control to my toolbox and drag it to my form. When i run the app i get a Object not set error as it has the ItemsSource="{Binding} set so i take that line out and i can successfully build and run the project (of course without any data in the chart – which i will soon bind once i know what im doing is correct?)


  8. Delay says:

    Its Me,

    As I explain in the post above, the DataVisualization assembly is compiled for Silverlight 3, Silverlight 4, WPF 3.5, and WPF 4, so you can pick the right binary for your application. If you're looking for tutorials and/or examples, I have a pretty extensive list of links here:

    Hope this helps!

  9. Rukai says:

    Hi do anyone know how to display count Number on the part of one catelog on the chart??

    Thank you~!

  10. Delay says:


    I don't think I understand your question. Do you have an example of what you're trying to do?

  11. Kamesh says:

    Error 1 Unknown build error, 'Cannot resolve dependency to assembly 'System.Windows, Version=, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' because it has not been preloaded. When using the ReflectionOnly APIs, dependent assemblies must be pre-loaded or loaded on demand through the ReflectionOnlyAssemblyResolve event.'

    I am getting the above error when I run my Application.

    Can you please help me on this.

    Many Thanks


  12. Delay says:


    That error doesn't seem to have much to do with the Data Visualization assembly. This appears to be a Silverlight build question (version – those are best asked on the forums:

  13. Jordan says:

    Do you have plans for porting the DragDrop features for charts from the silverlight toolkit to wpf?

  14. Delay says:


    I don't know of any such plans, sorry!

  15. andre says:

    Hi David,

    Im trying to incorporate Cory Plott logarithmic Axis based on NumericAxis of WPF4. My project currently uses assembly for data visualization Toolkit v3.5 (Feb 2010).

    When I paste the logarithmic axis file to my project, it returns error because :

    protected override UnitValue GetPlotAreaCoordinate(object value, double length)


    return GetPlotAreaCoordinate(value, ActualDoubleRange, length);


    is not declared in v3.5 RangeAxis.

    Do you have any idea how to incorporate the library other than grouping the WPF4 sources code together with my project? Because current data visualization toolkit dll reference is already nice and portable for my project.


  16. Delay says:


    You might want to check Cory's blog because it seems he's done this for a few different releases of the Data Visualization assembly:…/wpf-silverlight-charting-a-logarithmic-axis

    The way I read that (and remember), he did implement this for the version you're using and maybe you can get that copy of the code and things will fit together nicely.

    Good luck – I hope this helps!

  17. Rohan says:

    Hi David,

    I am trying to add labels on this chart, just like the LabeledPieChart.

    Could you help out ?…/621979.aspx

    Can we port the charting solution so I can compile it in VS 2010 express?



  18. Delay says:


    Everything you link to already works fine with the full versions of VS 2010 – what problem are you seeing trying to use VS 2010 Express?

Comments are closed.