SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
When I try to bind SciStockChart.XAxis to ViewModel, changing the SciStockChart.XAxisVisibleRange is no longer working. But when I define SciStockChart.XAxis in XAML code it works fine. What’s wrong in my binding?
I attached an example to reproduce the problem.
Hello, thanks for your inquiry!
A note about SciStockChart. this is not intended to be used with any axis other than the CategoryDateTimeAxis, since stock charts by nature require category axes.
Can I ask what it is you are trying to do?
Ok, I understand, thank you for clarifying.
SciStockChart is not intended to be modified in this way (the axis type is fixed), this is why it doesn’t work.
You can however achieve the same thing by using the SciChartSurface control. The SciTrader demo uses the SciChartSurface (not SciStockChart) control and specifies the axis types, modifiers all manually.
This one will support a DateTimeAxis but does require a bit more code to get it working.
I hope this is helpful,
Please login first to submit.