The property 'LineGraphs' does not exist in XML namespace 'http://research.microsoft.com/DynamicDataDisplay/1.0'.

Sep 22, 2010 at 9:06 AM
 In my View.Xaml I have:
 
<xmlns:d3="http://research.microsoft.com/DynamicDataDisplay/1.0" /> 
<d3:ChartPlotter x:Name="chWLP" LineGraphs="{Binding SomeGraphList}" />
But I have such error-message: 
The property 'LineGraphs' does not exist in XML namespace 'http://research.microsoft.com/DynamicDataDisplay/1.0'.
Why I have such error? 
DynamicDataDisplay.dll 0.3.4703.0

Sep 22, 2010 at 2:59 PM
Edited Sep 22, 2010 at 3:02 PM

I have generally added my LineGraphs to the plotter in code but have had no issues doing it that way. 

i.e. plotter.AddLineGraph(dataSource);

but you should also be able to do this:

<d3:ChartPlotter>

     <d3:LineGraph DataSource="{Binding Path=MyDataSource}"/>
</d3:ChartPlotter>

Sep 22, 2010 at 3:11 PM

There is no "LineGraphs" property. Only a "Children" property where you can add any type of object that implements the IPlotterElement interface, including LineGraphs. You will have to add the LineGraphs the way gorter described.

If you want to bind to "Children", you will have to change the code to make it a DependencyProperty.

Sep 22, 2010 at 8:59 PM

Have a look at http://dynamicdatadisplay.codeplex.com/Thread/View.aspx?ThreadId=63633

Ravi has written a class that adds a LineGraphs property that should help.

You can download Ravi's code from http://cid-996b1960e19fab56.skydrive.live.com/self.aspx/.Documents/LineGraph.zip

Sep 23, 2010 at 5:14 AM

I sow this example. Is very good.

But my problem it the other thing.

I can't use this code (in LineGraph example application)

<chart:ChartPlotter x:Name="plotter" Grid.Row="1" Height="Auto" Width="Auto"
         LineGraphs="{Binding Path=LineGraphs}" >
            <chart:ChartPlotter.MainHorizontalAxis>
                <c:HorizontalDateTimeAxis x:Name="dateAxis"/>
            </chart:ChartPlotter.MainHorizontalAxis>
</chart:ChartPlotter>
because in string 
LineGraphs="{Binding Path=LineGraphs}"
I have an error message which was described above.
Sep 23, 2010 at 5:28 AM

I don't really understand your question.

As @Foxman13 says, there is no LineGraphs property on the standard dynamic data display ChartPlotter class.  If there is no property on the class, you wont be able to bind to it!!

Why do you still expect to bind to a property (i.e. LineGraphs) that doesn't exist?

Jun 6, 2012 at 2:54 PM

Dont you get it, he wants to bind a collection of line graphs instead of only statically binded one via Xaml as in gorters code:

<d3:ChartPlotter>

     <d3:LineGraph DataSource="{Binding Path=MyDataSource}"/>

</d3:ChartPlotter>

Jul 27, 2013 at 5:35 AM
Edited Jul 27, 2013 at 8:46 AM
Hi,

I am trying to use d3 chart plotter in MVVM. I am trying to use the code given by Ravi in my project, but not quite sure how to use it properly. It says "the property Linegraphs is not found in type ChartPlotter". What I did is add the LinegraphViewModel.cs to my project and make it the same namespace as my new project. Similarly ChartPlotter.cs was added as well.

Anyone can advice me on what else need to be done in order to use the plotter successfully in my MVVM application?

Thank you so much!
Sep 17, 2014 at 6:27 AM