Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) =>
{ if (e.NativeView is SFChart)
{ SFChart nativeChart = (e.NativeView as SFChart); SfChart formsChart = e.View as SfChart; nativeChart.Delegate = new CustomChartDelegate(); } }; |
public override NSString GetFormattedDataMarkerLabel(SFChart chart, NSString label, nint index, SFSeries series)
{ if (series is SFXyDataSeries) { if (!(chart.SecondaryAxis.ZoomFactor < 1) || !(chart.PrimaryAxis.ZoomFactor < 1)) { if ((int)index % 4 == 0) { return label; } else { return new NSString(""); } } } return label; }
|