Scatter Series and Date Time axis

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

willmoore88 wrote at 2013-07-24 16:29:

Is it possible to use a scatter series with a dateTime axis?

Jasper1986 wrote at 2013-10-20 17:23:


var s2 = new ScatterSeries
            Title = "testScatter",
            DataFieldX = "Time",
            DataFieldY = "Value",
            ItemsSource = data
however, i can't compile the codes above with current dlls, it seems something is wrong when cast datetime to double.

_Noctis_ wrote at 2013-10-21 06:23:

Here's a screenshot:

I'm using something along:
X = DateTimeAxis.ToDouble(your_date_here)
when adding the points... seems to work.