Hello,
I am experimenting with SfChart and I am trying to display chart with transactions (price chart with buys and sells highlighted). I figured using line series for prices in combination with scatter series for buys/sells (with custom data marker) might be the best way to achieve it. However, the scatter series does not respect the primary and secondary axis as I would like. Based on documentation, I'd expect it is the default behavior when using multiple series in a single chart.
This is my code behind:
This is my view content:
And this is the resulting chart:
I'd expect to have the blue dots from scatter plot on line data points with indexes 3 and 6 (values 25 and 64 in data markers). But they do not seem to respect the X binding and are just displayed on a first and second X location. Y binding works just fine. I tried non-fast version of the series as well, didn
How do I make my scatter series respect their X locations? Is it possible?
|
<sfc:SfChart.PrimaryAxis>
<sfc:DateTimeAxis ShowMajorGridLines="false">
<sfc:DateTimeAxis.AxisLineStyle>
<sfc:ChartLineStyle StrokeColor="White" />
</sfc:DateTimeAxis.AxisLineStyle>
<sfc:DateTimeAxis.LabelStyle>
<sfc:ChartAxisLabelStyle LabelFormat="MMM" />
</sfc:DateTimeAxis.LabelStyle>
</sfc:DateTimeAxis>
</sfc:SfChart.PrimaryAxis> |
I confirm this solved my issue. Thank you for the help.