Hi all,
I am having trouble with trying to bind the x-value for a ScatterPointSeries to DateTime variable. The chart is based on live data, so I know that the data binding in general is working because the Y-axis is adjusting correctly. However, no tick marks are showing up for the X-axis, and thus no scatter points are showing up on the graph. Below is the code snippet for the dynamic data binding.
Thanks,
Jin
I am having trouble with trying to bind the x-value for a ScatterPointSeries to DateTime variable. The chart is based on live data, so I know that the data binding in general is working because the Y-axis is adjusting correctly. However, no tick marks are showing up for the X-axis, and thus no scatter points are showing up on the graph. Below is the code snippet for the dynamic data binding.
def =
new
ScatterPointSeries()
{
XValueBinding =
new
PropertyNameDataPointBinding(
"Time"
),
YValueBinding =
new
PropertyNameDataPointBinding(
"Value"
)
};
...
(def
as
ScatterPointSeries).PointTemplate = (DataTemplate)System.Windows.Markup.XamlReader.Parse(
@
"<DataTemplate xmlns="
"http://schemas.microsoft.com/winfx/2006/xaml/presentation"
">
<Ellipse Width=
""
5
""
Height=
""
5
""
Fill=
""
" + BrushColor.ToString() + @"
""
Opacity=
""
" + WPConstants.DEFAULT_LINE_FILL_OPACITY + @"
""
/>
</DataTemplate>");
Thanks,
Jin