This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
* UPDATE: I've found the solution - you can ignore the question * Hello, I'm currently evaluating version 6.0.2165.22593 of Mindscape WPF Elements (the latest non-nightly version on the site).
I'm trying to add line series to a chart by synchronizing my ObservableCollection With the example from the code supplied in that thread, it works great. X-values from 0 to 10 are created, and a random Y-value is assigned to that x. Now, my series has custom objects. I have a TimeStamp-property (DateTime) that should be my x-value and a Value property (double) that is my y-value. I create the LineSeries in code, like this:
The ItemsSource property of the series object shows that it contains values. The problem is that I can't get the chart to show anything. The Y-axis sets the minimum and maximum values correctly (I think), but the X-axis never gets any values. Since the X-axis is a DateTime-axis, I tried setting the axis configuration like this:
...and the resources:
I don't know where the problem lies. I'm out of ideas... could you point me in the right direction? Best regards, Roland |
|
|
Scratch this - I've found my error.
You should not set the binding .Source. I guess it sets the collection as source, and tries to find the TimeStamp- and the Value-properties on the collection object instead of on each item in the collection. When I don't set the source it works. |
|