Scatter Series and Date Time axis

Oystein Bjorke 5 aastat tagasi 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:

yes~

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:

Yep.
Here's a screenshot:
Image

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