This project is read-only.

MVVM LineGraph - Unable to populate graph from Constructor

Dec 6, 2010 at 2:41 PM

Hi,

I read and downloaded the code from this thread

http://dynamicdatadisplay.codeplex.com/Thread/View.aspx?ThreadId=63633

And also read this thread, though it doesn't really provide an answer:

http://dynamicdatadisplay.codeplex.com/Thread/View.aspx?ThreadId=78607

I'm working on a WPF project using MVVM and am trying to draw a line graph through the calling of a method in the constructor, opposed to having to click a button to populate the graph, For example:

 

public ChartViewModel()
{
  LoadData();
}

private void LoadData()
{
	// Create LineGraphViewModels and add them to ObservableCollection list
}

 

Strangely, the Line Chart remains blank : /  Very Confusing.  Would any one know how to rectify this?

Cheers,
Mark 

Dec 7, 2010 at 6:46 AM

Hi Mark,

 

Sorry but this part of functionality is not a inherent part of D3, as I have not merged it with D3's trunk.

I will try to do it in the closest time ( I hope 2-3 weeks, as I have more urgent tasks now).

Can you please add request for this functionality here - http://d3future.codeplex.com/workitem/list/basic

 

Thanks,

Mikhail.

Dec 7, 2010 at 10:21 AM

Cheers Mikhail,  Done: http://d3future.codeplex.com/workitem/4