In pre-WPF versions of ChartFX, there was the ability to hardcode the PixPerUnit value for the X axis so that when the chart is resized to be smaller, the number of points displayed will be constant until there are too many points to display at the current PixPerUnit value.
In ChartFX for WPF, the PixPerUnit property seems to have been removed, so the only option is to use SetScrollView. The problem is that SetScrollView always sets the PixPerUnit based on the current size of the chart. So for example, if the chart is very large and there are only 2 points displayed, the points will be huge on the screen. This is fine, except that when the chart is made smaller, the points will remain huge and a scrollbar will appear with only one point displayed.
Is there any way to preserve the old behaviour, i.e. that the points will get smaller until there are too many to display at the current PixPerUnit, and only then will the scrollbar appear? The only solution I've found is to call SetScrollView from the chart's SizeChanged event, and this is definitely not ideal.
Thanks in advance.