I have an SfChart that does not render correctly on iOS when the app is first started. It does render correctly on Windows. When the curves are calculated and displayed, the rendering is correct. I am using Xamarin forms. I have attached a zip file with iOS and Windows screen shots and the complete XAML.
Here is the XAML for the SfChart:
<xForms1:SfChart x:Name="Chart" Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
Series="{Binding SeriesCollection, Mode=OneWay}">
<xForms1:SfChart.Title>
<xForms1:ChartTitle Text="Resistivity Measurements" FontSize="15" />
</xForms1:SfChart.Title>
<xForms1:SfChart.PrimaryAxis>
<xForms1:NumericalAxis Minimum="{Binding XPlotMin}" Maximum="{Binding XPlotMax}">
<xForms1:NumericalAxis.Title>
<xForms1:ChartAxisTitle Text="Measured Depth (m)" />
</xForms1:NumericalAxis.Title>
</xForms1:NumericalAxis>
</xForms1:SfChart.PrimaryAxis>
<xForms1:SfChart.SecondaryAxis>
<xForms1:LogarithmicAxis Minimum="{Binding YPlotMin}" Maximum="{Binding YPlotMax}">
<xForms1:LogarithmicAxis.Title>
<xForms1:ChartAxisTitle Text="Resistivity (Ohm-m)" />
</xForms1:LogarithmicAxis.Title>
</xForms1:LogarithmicAxis>
</xForms1:SfChart.SecondaryAxis>
</xForms1:SfChart>
I set the initial plot limits in my viewmodel:
XPlotMin = 0.0;
XPlotMax = 1.0;
YPlotMin = 1.0;
YPlotMax = 1000;
Here is the rendered plot in iOS when the app starts up:
Here is the plot in Windows when the app starts up:
Attachment:
iPad_screen_96de8ab6.zip