Skip to content

Commit afe28c6

Browse files
Align the code
1 parent dcc0729 commit afe28c6

File tree

2 files changed

+61
-60
lines changed

2 files changed

+61
-60
lines changed

maui-toolkit/Cartesian-Charts/EmptyPoints.md

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The data collection that is passed to the chart can have NaN or Null values that
1717

1818
{% highlight C# %}
1919

20-
ProductSales = new ObservableCollection<Model>();
20+
ProductSales = new ObservableCollection<Model>();
2121
ProductSales.Add(new Model() { Product = "Electronics", Sales = 60 });
2222
ProductSales.Add(new Model() { Product = "Clothing", Sales = 40 });
2323
ProductSales.Add(new Model() { Product = "Groceries", Sales = double.NaN });
@@ -47,13 +47,13 @@ The following code example shows the [EmptyPointMode](https://help.syncfusion.co
4747

4848
{% highlight xaml %}
4949

50-
<chart:SfCartesianChart>
51-
50+
<chart:SfCartesianChart>
51+
5252
.....
5353
<chart:LineSeries ItemsSource="{Binding ProductSales}"
54-
XBindingPath="Product"
55-
YBindingPath="Sales"
56-
EmptyPointMode="Zero">
54+
XBindingPath="Product"
55+
YBindingPath="Sales"
56+
EmptyPointMode="Zero">
5757
</chart:LineSeries>
5858

5959
</chart:SfCartesianChart>
@@ -62,7 +62,7 @@ The following code example shows the [EmptyPointMode](https://help.syncfusion.co
6262

6363
{% highlight c# %}
6464

65-
SfCartesianChart chart = new SfCartesianChart();
65+
SfCartesianChart chart = new SfCartesianChart();
6666

6767
.....
6868
LineSeries series = new LineSeries()
@@ -88,13 +88,13 @@ The following code example shows the [EmptyPointMode](https://help.syncfusion.co
8888

8989
{% highlight xaml %}
9090

91-
<chart:SfCartesianChart>
91+
<chart:SfCartesianChart>
9292

9393
.....
9494
<chart:ColumnSeries ItemsSource="{Binding ProductSales}"
95-
XBindingPath="Product"
96-
YBindingPath="Sales"
97-
EmptyPointMode="Average">
95+
XBindingPath="Product"
96+
YBindingPath="Sales"
97+
EmptyPointMode="Average">
9898
</chart:ColumnSeries>
9999

100100
</chart:SfCartesianChart>
@@ -103,15 +103,15 @@ The following code example shows the [EmptyPointMode](https://help.syncfusion.co
103103

104104
{% highlight c# %}
105105

106-
SfCartesianChart chart = new SfCartesianChart();
106+
SfCartesianChart chart = new SfCartesianChart();
107107

108108
.....
109109
ColumnSeries series = new ColumnSeries()
110110
{
111-
ItemsSource = new ViewModel().ProductSales,
112-
XBindingPath = "Product",
113-
YBindingPath = "Sales",
114-
EmptyPointMode = EmptyPointMode.Average
111+
ItemsSource = new ViewModel().ProductSales,
112+
XBindingPath = "Product",
113+
YBindingPath = "Sales",
114+
EmptyPointMode = EmptyPointMode.Average
115115
};
116116

117117
chart.Series.Add(series);
@@ -134,47 +134,47 @@ The [EmptyPointSettings](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.
134134

135135
{% highlight xaml %}
136136

137-
<chart:SfCartesianChart>
137+
<chart:SfCartesianChart>
138138

139-
.....
140-
<chart:LineSeries ItemsSource="{Binding ProductSales}"
141-
XBindingPath="Product"
142-
YBindingPath="Sales"
143-
Fill="#3068F7"
144-
StrokeWidth="2"
145-
ShowMarkers="True"
146-
ShowDataLabels="True"
147-
EmptyPointMode="Average">
148-
<chart:LineSeries.EmptyPointSettings>
139+
.....
140+
<chart:LineSeries ItemsSource="{Binding ProductSales}"
141+
XBindingPath="Product"
142+
YBindingPath="Sales"
143+
Fill="#3068F7"
144+
StrokeWidth="2"
145+
ShowMarkers="True"
146+
ShowDataLabels="True"
147+
EmptyPointMode="Average">
148+
<chart:LineSeries.EmptyPointSettings>
149149
<chart:EmptyPointSettings Fill="Orange" StrokeWidth="2"/>
150-
</chart:LineSeries.EmptyPointSettings>
151-
</chart:LineSeries>
150+
</chart:LineSeries.EmptyPointSettings>
151+
</chart:LineSeries>
152152

153153
</chart:SfCartesianChart>
154154

155155
{% endhighlight %}
156156

157157
{% highlight c# %}
158158

159-
SfCartesianChart chart = new SfCartesianChart();
159+
SfCartesianChart chart = new SfCartesianChart();
160160

161161
.....
162162
LineSeries series = new LineSeries()
163163
{
164-
ItemsSource = new ViewModel().ProductSales,
165-
XBindingPath = "Product",
166-
YBindingPath = "Sales",
167-
Fill = Color.FromArgb("#3068F7"),
168-
StrokeWidth = 2,
169-
ShowMarkers = true,
170-
ShowDataLabels = true,
171-
EmptyPointMode = EmptyPointMode.Average
164+
ItemsSource = new ViewModel().ProductSales,
165+
XBindingPath = "Product",
166+
YBindingPath = "Sales",
167+
Fill = Color.FromArgb("#3068F7"),
168+
StrokeWidth = 2,
169+
ShowMarkers = true,
170+
ShowDataLabels = true,
171+
EmptyPointMode = EmptyPointMode.Average
172172
};
173173

174174
EmptyPointSettings emptypointSettings = new EmptyPointSettings()
175175
{
176-
Fill = Colors.Orange,
177-
StrokeWidth = 2
176+
Fill = Colors.Orange,
177+
StrokeWidth = 2
178178
};
179179

180180
series.EmptyPointSettings = emptypointSettings;

maui-toolkit/Cartesian-Charts/FastScatter.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,30 +20,31 @@ N> The Cartesian chart has [Series](https://help.syncfusion.com/cr/maui-toolkit/
2020

2121
{% highlight xaml %}
2222

23-
<chart:SfCartesianChart>
24-
<chart:SfCartesianChart.XAxes>
25-
<chart:NumericalAxis/>
26-
</chart:SfCartesianChart.XAxes>
23+
<chart:SfCartesianChart>
2724

28-
<chart:SfCartesianChart.YAxes>
29-
<chart:NumericalAxis/>
30-
</chart:SfCartesianChart.YAxes>
25+
<chart:SfCartesianChart.XAxes>
26+
<chart:NumericalAxis/>
27+
</chart:SfCartesianChart.XAxes>
3128

32-
<chart:FastScatterSeries ItemsSource="{Binding Data1}"
33-
XBindingPath="XValue"
34-
YBindingPath="YValue" />
29+
<chart:SfCartesianChart.YAxes>
30+
<chart:NumericalAxis/>
31+
</chart:SfCartesianChart.YAxes>
3532

36-
<chart:FastScatterSeries ItemsSource="{Binding Data2}"
37-
XBindingPath="XValue"
38-
YBindingPath="YValue" />
33+
<chart:FastScatterSeries ItemsSource="{Binding Data1}"
34+
XBindingPath="XValue"
35+
YBindingPath="YValue"/>
36+
37+
<chart:FastScatterSeries ItemsSource="{Binding Data2}"
38+
XBindingPath="XValue"
39+
YBindingPath="YValue"/>
3940

4041
</chart:SfCartesianChart>
4142

4243
{% endhighlight %}
4344

4445
{% highlight c# %}
4546

46-
SfCartesianChart chart = new SfCartesianChart();
47+
SfCartesianChart chart = new SfCartesianChart();
4748

4849
NumericalAxis primaryAxis = new NumericalAxis();
4950
chart.XAxes.Add(primaryAxis);
@@ -53,16 +54,16 @@ N> The Cartesian chart has [Series](https://help.syncfusion.com/cr/maui-toolkit/
5354

5455
FastScatterSeries scatterSeries1 = new FastScatterSeries
5556
{
56-
ItemsSource = new ViewModel().Data1,
57-
XBindingPath = "XValue",
58-
YBindingPath = "YValue",
57+
ItemsSource = new ViewModel().Data1,
58+
XBindingPath = "XValue",
59+
YBindingPath = "YValue",
5960
};
6061

6162
FastScatterSeries scatterSeries2 = new FastScatterSeries
6263
{
63-
ItemsSource = new ViewModel().Data2,
64-
XBindingPath = "XValue",
65-
YBindingPath = "XValue",
64+
ItemsSource = new ViewModel().Data2,
65+
XBindingPath = "XValue",
66+
YBindingPath = "XValue",
6667
};
6768

6869
chart.Series.Add(scatterSeries1);

0 commit comments

Comments
 (0)