I'm reworking existing functionality to use SciChart. I need the resulting graph to look identical to original solution (or as close as possible). [edit: had to redact the image due to possible client IP issues]
In the screenshot you can see where I got so far (top) compared to the old solution (bottom). I got stuck trying to make the labels work.
I implemented a custom label provider as described here http://www.scichart.com/screenshots-xps-printing-x-axis-text-labels/ (I basically just took the CustomLabelProviderClass from there) I use the same list of labels as the old solution. What you see is as far as I got, using the following axis properties:
<sci:SciChartSurface.XAxis>
<sci:NumericAxis VisibleRange="0,115"
DrawMajorGridLines="False"
DrawMinorGridLines="False"
LabelProvider ="{Binding LabelProvider}"
TickLabelStyle="{StaticResource AxisLabelStyle}"
AutoTicks="False" MajorDelta="0.5"
MinorsPerMajor="1" MinorDelta="0.5" />
</sci:SciChartSurface.XAxis>
The old graph does actually skip some of the values as well (about every other, unless I zoom in) but it still displays them with about double the density of the SciChart. Is there a way to make SciChart behave the same?
Also, I applied rotation transform on the labels to get them vertical. As you can see, now they stick into the graph. Is there a way to move them down a bit?
In SciChart, the axis automatically culls labels that are too close, by measuring them and removing alternate labels.
You can disable this feature by setting AxisBase.IsLabelCullingEnabled = false
// C# example
var numericAxis = new NumericAxis();
numericAxis.IsLabelCullingEnabled = false
// XAML Example
<s:NumericAxis IsLabelCullingEnabled="False"/>
来源:https://stackoverflow.com/questions/36669145/scichart-showing-labels-for-all-ticks