Hi Albert K,
Greetings from Syncfusion. You can resolve “margin between axis” by setting the Margin and BorderWidth as Zero to the ChartAxis LabelStyle and Title for respective axis. And also, you can resolve “margin between chart and rangenavigator” by setting Chart, RangeNavigator Margin and StackLayout Padding and Spacing as Zero. Please refer below code snippet.
Code Snippet[C#]
Chart.PrimaryAxis = new DateTimeAxis();
Chart.PrimaryAxis.Title.Text = "Date";
Chart.PrimaryAxis.Title.Margin = new Thickness(0);
Chart.PrimaryAxis.Title.BorderWidth = 0;
Chart.PrimaryAxis.LabelStyle.Margin = new Thickness(0);
Chart.PrimaryAxis.LabelStyle.BorderThickness = new Thickness(0);
Chart.SecondaryAxis = new NumericalAxis();
Chart.SecondaryAxis.Title.Text = "Pressure";
Chart.SecondaryAxis.Title.Margin = new Thickness(0);
Chart.SecondaryAxis.Title.BorderWidth = 0;
Chart.SecondaryAxis.LabelStyle.Margin = new Thickness(0);
Chart.SecondaryAxis.LabelStyle.BorderThickness = new Thickness(0);
RangeNavigator.Margin = 0;
Chart.Margin = 0;
Layout.Padding = 0;
Layout.Spacing = 0; |
And we have prepared a sample for your requirement and you can download the sample from the below link.
Screenshot:
Regards,
Michael