From 5a441e79bace60efa949faf003b799688fd692e8 Mon Sep 17 00:00:00 2001 From: vderyushev Date: Mon, 14 Oct 2024 11:28:30 +0300 Subject: [PATCH] Updated API examples 24.10 --- .../ApiExamples/ApiExamples.csproj | 14 +++++----- Examples/ApiExamples/Runner.MAUI/ExCharts.cs | 28 +++++++++---------- .../Runner.MAUI/Runner.MAUI.csproj | 12 ++++---- Examples/DocsExamples/Docker/Docker.csproj | 2 +- .../DocsExamples/DocsExamples.csproj | 10 +++---- .../DocumentExplorer/DocumentExplorer.csproj | 2 +- .../PluginsExamples/PluginsExamples.csproj | 2 +- 7 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Examples/ApiExamples/ApiExamples/ApiExamples.csproj b/Examples/ApiExamples/ApiExamples/ApiExamples.csproj index 6842a715e..91fdce50e 100644 --- a/Examples/ApiExamples/ApiExamples/ApiExamples.csproj +++ b/Examples/ApiExamples/ApiExamples/ApiExamples.csproj @@ -125,13 +125,13 @@ - - - - - + + + + + - + @@ -139,7 +139,7 @@ runtime; build; native; contentfiles; analyzers - + diff --git a/Examples/ApiExamples/Runner.MAUI/ExCharts.cs b/Examples/ApiExamples/Runner.MAUI/ExCharts.cs index 473de78e5..5f33e7edb 100644 --- a/Examples/ApiExamples/Runner.MAUI/ExCharts.cs +++ b/Examples/ApiExamples/Runner.MAUI/ExCharts.cs @@ -191,9 +191,9 @@ public void AxisProperties() xAxis.MinorTickMark = AxisTickMark.Cross; xAxis.MajorUnit = 10.0d; xAxis.MinorUnit = 15.0d; - xAxis.TickLabelOffset = 50; - xAxis.TickLabelPosition = AxisTickLabelPosition.Low; - xAxis.TickLabelSpacingIsAuto = false; + xAxis.TickLabels.Offset = 50; + xAxis.TickLabels.Position = AxisTickLabelPosition.Low; + xAxis.TickLabels.IsAutoSpacing = false; xAxis.TickMarkSpacing = 1; ChartAxis yAxis = chart.AxisY; @@ -204,7 +204,7 @@ public void AxisProperties() yAxis.MinorTickMark = AxisTickMark.Cross; yAxis.MajorUnit = 100.0d; yAxis.MinorUnit = 20.0d; - yAxis.TickLabelPosition = AxisTickLabelPosition.NextToAxis; + yAxis.TickLabels.Position = AxisTickLabelPosition.NextToAxis; // Column charts do not have a Z-axis. Assert.Null(chart.AxisZ); @@ -222,9 +222,9 @@ public void AxisProperties() Assert.Equal(AxisTickMark.Cross, chart.AxisX.MinorTickMark); Assert.Equal(1.0d, chart.AxisX.MajorUnit); Assert.Equal(0.5d, chart.AxisX.MinorUnit); - Assert.Equal(50, chart.AxisX.TickLabelOffset); - Assert.Equal(AxisTickLabelPosition.Low, chart.AxisX.TickLabelPosition); - Assert.False(chart.AxisX.TickLabelSpacingIsAuto); + Assert.Equal(50, chart.AxisX.TickLabels.Offset); + Assert.Equal(AxisTickLabelPosition.Low, chart.AxisX.TickLabels.Position); + Assert.False(chart.AxisX.TickLabels.IsAutoSpacing); Assert.Equal(1, chart.AxisX.TickMarkSpacing); Assert.Equal(AxisCategoryType.Category, chart.AxisY.CategoryType); @@ -234,7 +234,7 @@ public void AxisProperties() Assert.Equal(AxisTickMark.Cross, chart.AxisY.MinorTickMark); Assert.Equal(100.0d, chart.AxisY.MajorUnit); Assert.Equal(20.0d, chart.AxisY.MinorUnit); - Assert.Equal(AxisTickLabelPosition.NextToAxis, chart.AxisY.TickLabelPosition); + Assert.Equal(AxisTickLabelPosition.NextToAxis, chart.AxisY.TickLabels.Position); } [Fact] @@ -285,7 +285,7 @@ public void DateTimeValues() // Define Y-axis properties for decimal values. ChartAxis yAxis = chart.AxisY; - yAxis.TickLabelPosition = AxisTickLabelPosition.High; + yAxis.TickLabels.Position = AxisTickLabelPosition.High; yAxis.MajorUnit = 100.0d; yAxis.MinorUnit = 50.0d; yAxis.DisplayUnit.Unit = AxisBuiltInUnit.Hundreds; @@ -306,7 +306,7 @@ public void DateTimeValues() Assert.Equal(AxisTickMark.Cross, chart.AxisX.MajorTickMark); Assert.Equal(AxisTickMark.Outside, chart.AxisX.MinorTickMark); - Assert.Equal(AxisTickLabelPosition.High, chart.AxisY.TickLabelPosition); + Assert.Equal(AxisTickLabelPosition.High, chart.AxisY.TickLabels.Position); Assert.Equal(100.0d, chart.AxisY.MajorUnit); Assert.Equal(50.0d, chart.AxisY.MinorUnit); Assert.Equal(AxisBuiltInUnit.Hundreds, chart.AxisY.DisplayUnit.Unit); @@ -1170,9 +1170,9 @@ public void AxisDisplayUnit() // Set the X-axis bounds so that the X-axis spans 5 major tick marks and 12 minor tick marks. axis.Scaling.Minimum = new AxisBound(-10); axis.Scaling.Maximum = new AxisBound(30); - axis.TickLabelAlignment = ParagraphAlignment.Right; + axis.TickLabels.Alignment = ParagraphAlignment.Right; - Assert.Equal(1, axis.TickLabelSpacing); + Assert.Equal(1, axis.TickLabels.Spacing); // Set the tick labels to display their value in millions. axis.DisplayUnit.Unit = AxisBuiltInUnit.Millions; @@ -1198,8 +1198,8 @@ public void AxisDisplayUnit() Assert.Equal(10.0d, axis.MajorUnit); Assert.Equal(-10.0d, axis.Scaling.Minimum.Value); Assert.Equal(30.0d, axis.Scaling.Maximum.Value); - Assert.Equal(1, axis.TickLabelSpacing); - Assert.Equal(ParagraphAlignment.Right, axis.TickLabelAlignment); + Assert.Equal(1, axis.TickLabels.Spacing); + Assert.Equal(ParagraphAlignment.Right, axis.TickLabels.Alignment); Assert.Equal(AxisBuiltInUnit.Custom, axis.DisplayUnit.Unit); Assert.Equal(1000000.0d, axis.DisplayUnit.CustomUnit); diff --git a/Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj b/Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj index 9dc72518a..c102ef579 100644 --- a/Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj +++ b/Examples/ApiExamples/Runner.MAUI/Runner.MAUI.csproj @@ -49,20 +49,20 @@ - - - - + + + + - + - + diff --git a/Examples/DocsExamples/Docker/Docker.csproj b/Examples/DocsExamples/Docker/Docker.csproj index 370bcf7d5..b16a432a2 100644 --- a/Examples/DocsExamples/Docker/Docker.csproj +++ b/Examples/DocsExamples/Docker/Docker.csproj @@ -6,7 +6,7 @@ - + diff --git a/Examples/DocsExamples/DocsExamples/DocsExamples.csproj b/Examples/DocsExamples/DocsExamples/DocsExamples.csproj index a80ac888d..68b60251a 100644 --- a/Examples/DocsExamples/DocsExamples/DocsExamples.csproj +++ b/Examples/DocsExamples/DocsExamples/DocsExamples.csproj @@ -116,14 +116,14 @@ - - - - + + + + - + diff --git a/Examples/DocsExamples/DocumentExplorer/DocumentExplorer.csproj b/Examples/DocsExamples/DocumentExplorer/DocumentExplorer.csproj index 9ec974fd6..eb8fc886b 100644 --- a/Examples/DocsExamples/DocumentExplorer/DocumentExplorer.csproj +++ b/Examples/DocsExamples/DocumentExplorer/DocumentExplorer.csproj @@ -141,7 +141,7 @@ - 24.9.0 + 24.10.0 diff --git a/Examples/DocsExamples/PluginsExamples/PluginsExamples.csproj b/Examples/DocsExamples/PluginsExamples/PluginsExamples.csproj index 9e00635c9..3916c8dde 100644 --- a/Examples/DocsExamples/PluginsExamples/PluginsExamples.csproj +++ b/Examples/DocsExamples/PluginsExamples/PluginsExamples.csproj @@ -11,7 +11,7 @@ - +