Skip to content

Commit ddcf45f

Browse files
Merge pull request #250 from syncfusion-content/UG_DevToMaster
Moved Content Development to Master
2 parents 0768d2c + 1a4e832 commit ddcf45f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1422
-4
lines changed

maui-toolkit-toc.html

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,16 @@
1616
</ul>
1717
</li>
1818
<li><a href="/maui-toolkit/Migration">Migrate from Syncfusion .NET MAUI</a></li>
19-
19+
<li>
20+
SfAccordion
21+
<ul>
22+
<li><a href="/maui-toolkit/Accordion/overview">Overview</a></li>
23+
<li><a href="/maui-toolkit/Accordion/getting-started">Getting Started</a></li>
24+
<li><a href="/maui-toolkit/Accordion/appearance">Appearance</a></li>
25+
<li><a href="/maui-toolkit/Accordion/bindablelayout">BindableLayout</a></li>
26+
<li><a href="/maui-toolkit/Accordion/events">Events</a></li>
27+
</ul>
28+
</li>
2029
<li>
2130
SfBottomSheet
2231
<ul>
@@ -126,7 +135,8 @@
126135
<li><a href="/maui-toolkit/cartesian-charts/stackedarea">Stacked Area Chart</a></li>
127136
<li><a href="/maui-toolkit/cartesian-charts/stackedarea100">Stacked Area 100 Chart</a></li>
128137
<li><a href="/maui-toolkit/cartesian-charts/bubble">Bubble Chart</a></li>
129-
<li><a href="/maui-toolkit/cartesian-charts/scatter">Scatter Chart</a></li>
138+
<li><a href="/maui-toolkit/cartesian-charts/scatter">Scatter Chart</a></li>
139+
<li><a href="/maui-toolkit/cartesian-charts/fastscatter">Fast Scatter Chart</a></li>
130140
<li><a href="/maui-toolkit/cartesian-charts/range-column">Range Column Chart</a></li>
131141
<li><a href="/maui-toolkit/cartesian-charts/stackedcolumn">Stacked Column Chart</a></li>
132142
<li><a href="/maui-toolkit/cartesian-charts/stackedcolumn100">Stacked Column 100 Chart</a></li>
@@ -138,6 +148,7 @@
138148
<li><a href="/maui-toolkit/cartesian-charts/histogram">Histogram Chart</a></li>
139149
</ul>
140150
</li>
151+
<li><a href="/maui-toolkit/cartesian-charts/emptypoints">Empty Points</a></li>
141152
<li><a href="/maui-toolkit/cartesian-charts/Appearance">Appearance</a></li>
142153
<li><a href="/maui-toolkit/cartesian-charts/plotband">Plot Band</a></li>
143154
<li><a href="/maui-toolkit/cartesian-charts/annotation">Annotation</a></li>
@@ -220,6 +231,14 @@
220231
<li><a href="/maui-toolkit/Effects-View/Events">Events</a></li>
221232
</ul>
222233
</li>
234+
<li>
235+
SfExpander
236+
<ul>
237+
<li><a href="/maui-toolkit/Expander/overview">Overview</a></li>
238+
<li><a href="/maui-toolkit/Expander/getting-started">Getting Started</a></li>
239+
<li><a href="/maui-toolkit/Expander/appearance">Appearance</a></li>
240+
</ul>
241+
</li>
223242
<li>
224243
SfFunnelChart
225244
<ul>
@@ -272,6 +291,18 @@
272291
<li><a href="/maui-toolkit/NumericUpDown/Events">Events</a></li>
273292
</ul>
274293
</li>
294+
<li>
295+
SfOtpInput
296+
<ul>
297+
<li><a href="/maui-toolkit/Otp-Input/Overview">Overview</a></li>
298+
<li><a href="/maui-toolkit/Otp-Input/Getting-Started">Getting Started</a></li>
299+
<li><a href="/maui-toolkit/Otp-Input/Input-Types">Input Types</a></li>
300+
<li><a href="/maui-toolkit/Otp-Input/Styling-Modes">Styling Modes</a></li>
301+
<li><a href="/maui-toolkit/Otp-Input/OtpInput-Customization">Customization</a></li>
302+
<li><a href="/maui-toolkit/Otp-Input/Events">Events</a></li>
303+
<li><a href="/maui-toolkit/Otp-Input/Accessibility">Accessibility</a></li>
304+
</ul>
305+
</li>
275306
<li>
276307
SfPolarChart
277308
<ul>
@@ -303,6 +334,23 @@
303334
<li><a href="/maui-toolkit/polar-charts/Exporting">Exporting</a></li>
304335
</ul>
305336
</li>
337+
<li>
338+
SfPopup
339+
<ul>
340+
<li><a href="/maui-toolkit/Popup/overview">Overview</a></li>
341+
<li><a href="/maui-toolkit/Popup/getting-started">Getting Started</a></li>
342+
<li><a href="/maui-toolkit/Popup/popup-positioning">Popup Positioning</a></li>
343+
<li><a href="/maui-toolkit/Popup/popup-size">Popup Size</a></li>
344+
<li><a href="/maui-toolkit/Popup/layout-customizations">Layout Customizations</a></li>
345+
<li><a href="/maui-toolkit/Popup/styles">Styles</a></li>
346+
<li><a href="/maui-toolkit/Popup/popup-animations">Popup Animations</a></li>
347+
<li><a href="/maui-toolkit/Popup/modal-window">Modal Window</a></li>
348+
<li><a href="/maui-toolkit/Popup/Popup-Events">Events and Commands</a></li>
349+
<li><a href="/maui-toolkit/Popup/working-with-mvvm">Working with MVVM</a></li>
350+
<li><a href="/maui-toolkit/Popup/localization">Localization</a></li>
351+
</ul>
352+
</li>
353+
306354
<li>
307355
SfPullToRefresh
308356
<ul>
@@ -364,6 +412,7 @@
364412
<li><a href="/maui-toolkit/TabView/Nested-Tabs">Nested Tab bar</a></li>
365413
<li><a href="/maui-toolkit/TabView/How-To">How To</a></li>
366414
<li><a href="/maui-toolkit/TabView/Events">Events</a></li>
415+
<li><a href="/maui-toolkit/TabView/CenterButton-Customization">Center Button</a></li>
367416
</ul>
368417
</li>
369418
<li>
@@ -386,6 +435,7 @@
386435
<li>
387436
Release Notes
388437
<ul>
438+
<li><a href="/maui-toolkit/release-notes/v1.0.4">v1.0.4</a></li>
389439
<li><a href="/maui-toolkit/release-notes/v1.0.3">v1.0.3</a></li>
390440
<li><a href="/maui-toolkit/release-notes/v1.0.2">v1.0.2</a></li>
391441
<li><a href="/maui-toolkit/release-notes/v1.0.1">v1.0.1</a></li>

maui-toolkit/Bottom-Sheet/BottomSheet-Customization.md

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,29 @@ bottomSheet.AllowedState = BottomSheetAllowedState.HalfExpanded;
8989
{% endhighlight %}
9090
{% endtabs %}
9191

92+
93+
## Overlay tap to collapse
94+
95+
The `CollapseOnOverlayTap` property enables the bottom sheet to collapse when the user taps on the overlay (outside the sheet). This enhances user interaction by allowing easy dismissal of the sheet without fully closing it.
96+
97+
{% tabs %}
98+
{% highlight xaml %}
99+
100+
<bottomSheet:SfBottomSheet x:Name="bottomSheet" CollapseOnOverlayTap="True">
101+
<bottomSheet:SfBottomSheet.BottomSheetContent>
102+
<!--Add your content here-->
103+
</bottomSheet:SfBottomSheet.BottomSheetContent>
104+
</bottomSheet:SfBottomSheet>
105+
106+
{% endhighlight %}
107+
{% highlight c# %}
108+
109+
SfBottomSheet bottomSheet = new SfBottomSheet();
110+
bottomSheet.CollapseOnOverlayTap = true;
111+
112+
{% endhighlight %}
113+
{% endtabs %}
114+
92115
## Content Padding
93116
The [ContentPadding](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.BottomSheet.SfBottomSheet.html#Syncfusion_Maui_Toolkit_BottomSheet_SfBottomSheet_ContentPadding) property of the [BottomSheet](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.BottomSheet.SfBottomSheet.html) adds space around the content creating a gap between the bottom sheet content and the edges.
94117

@@ -349,4 +372,29 @@ SfBottomSheet bottomSheet = new SfBottomSheet
349372

350373
{% endhighlight %}
351374
{% endtabs %}
352-
![Grabber Customization Image for BottomSheet](images/grabberCustomization.png)
375+
![Grabber Customization Image for BottomSheet](images/grabberCustomization.png)
376+
377+
378+
### Grabber area height
379+
380+
The `GrabberAreaHeight` feature in the [BottomSheet](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.BottomSheet.SfBottomSheet.html) control allows developers to adjust the height of the drag area, thus enhancing both usability and appearance.
381+
382+
{% tabs %}
383+
{% highlight xaml %}
384+
385+
<bottomSheet:SfBottomSheet x:Name="bottomSheet" GrabberAreaHeight="100">
386+
<bottomSheet:SfBottomSheet.BottomSheetContent>
387+
<!--Add your content here-->
388+
</bottomSheet:SfBottomSheet.BottomSheetContent>
389+
</bottomSheet:SfBottomSheet>
390+
391+
{% endhighlight %}
392+
{% highlight c# %}
393+
394+
SfBottomSheet bottomSheet = new SfBottomSheet
395+
{
396+
GrabberAreaHeight = 100
397+
};
398+
399+
{% endhighlight %}
400+
{% endtabs %}
Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
---
2+
layout: post
3+
title: Empty Points in .NET MAUI Chart control | Syncfusion
4+
description: Learn here all about empty points support and its features in Syncfusion® .NET MAUI Chart (SfCartesianChart) control.
5+
platform: maui
6+
control: SfCartesianChart
7+
documentation: ug
8+
keywords: .net maui chart empty points, .net maui empty points customization, syncfusion maui chart empty points, maui chart empty points, .net maui chart empty points visualization, cartesian empty points maui, missing data handling
9+
---
10+
11+
# Empty Points in .NET MAUI Chart
12+
Empty Points are used to indicate missing or null data in a series. These empty points can occur when data is unavailable, improperly formatted, or explicitly set as null or double.NaN. The chart provides options to handle and customize these empty points to enhance visualization and maintain the integrity of data representation.
13+
14+
[SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html) provides support for empty points, allowing users to handle missing data effectively.
15+
16+
The data collection that is passed to the chart can have NaN or Null values that are considered as empty points. The empty point can be defined as in the below code example.
17+
18+
{% highlight C# %}
19+
20+
ProductSales = new ObservableCollection<Model>();
21+
ProductSales.Add(new Model() { Product = "Electronics", Sales = 60 });
22+
ProductSales.Add(new Model() { Product = "Clothing", Sales = 40 });
23+
ProductSales.Add(new Model() { Product = "Groceries", Sales = double.NaN });
24+
ProductSales.Add(new Model() { Product = "Furniture", Sales = 70 });
25+
ProductSales.Add(new Model() { Product = "Toys", Sales = 30 });
26+
ProductSales.Add(new Model() { Product = "Sports", Sales = double.NaN });
27+
ProductSales.Add(new Model() { Product = "Books", Sales = 50 });
28+
29+
{% endhighlight %}
30+
31+
By default, the [EmptyPointMode]() property is `None`. So the empty points will not be rendered as shown in the below.
32+
33+
![Empty Points in MAUI Chart](EmptyPoints_images/EmptyPoints_Default.png)
34+
35+
## Empty Point Mode
36+
The [EmptyPointMode]() property of series specifies how empty points should be handled.
37+
38+
This property is an enumeration with the following options:
39+
40+
* None - Empty points are not rendered. This is the default behavior.
41+
* Zero - Empty points will be replaced with zero.
42+
* Average - Empty points will be replaced with the average value of the surrounding data points.
43+
44+
The following code example shows the [EmptyPointMode]() as `Zero`.
45+
46+
{% tabs %}
47+
48+
{% highlight xaml %}
49+
50+
<chart:SfCartesianChart>
51+
52+
.....
53+
54+
<chart:LineSeries ItemsSource="{Binding ProductSales}"
55+
XBindingPath="Product"
56+
YBindingPath="Sales"
57+
EmptyPointMode="Zero">
58+
</chart:LineSeries>
59+
</chart:SfCartesianChart>
60+
61+
{% endhighlight %}
62+
63+
{% highlight c# %}
64+
65+
SfCartesianChart chart = new SfCartesianChart();
66+
67+
.....
68+
69+
LineSeries series = new LineSeries()
70+
{
71+
ItemsSource = new ViewModel().ProductSales,
72+
XBindingPath = "Product",
73+
YBindingPath = "Sales",
74+
EmptyPointMode = EmptyPointMode.Zero
75+
};
76+
77+
chart.Series.Add(series);
78+
this.Content = chart;
79+
80+
{% endhighlight %}
81+
82+
{% endtabs %}
83+
84+
![EmptyPoint Mode Zero in MAUI Chart](EmptyPoints_images/EmptyPoints_Mode_Zero.png)
85+
86+
The following code example shows the [EmptyPointMode]() as `Average`.
87+
88+
{% tabs %}
89+
90+
{% highlight xaml %}
91+
92+
<chart:SfCartesianChart>
93+
94+
.....
95+
96+
<chart:ColumnSeries ItemsSource="{Binding ProductSales}"
97+
XBindingPath="Product"
98+
YBindingPath="Sales"
99+
EmptyPointMode="Average">
100+
</chart:ColumnSeries>
101+
</chart:SfCartesianChart>
102+
103+
{% endhighlight %}
104+
105+
{% highlight c# %}
106+
107+
SfCartesianChart chart = new SfCartesianChart();
108+
109+
.....
110+
111+
ColumnSeries series = new ColumnSeries()
112+
{
113+
ItemsSource = new ViewModel().ProductSales,
114+
XBindingPath = "Product",
115+
YBindingPath = "Sales",
116+
EmptyPointMode = EmptyPointMode.Average
117+
};
118+
119+
chart.Series.Add(series);
120+
this.Content = chart;
121+
122+
{% endhighlight %}
123+
124+
{% endtabs %}
125+
126+
![EmptyPoint Mode Average in MAUI Chart](EmptyPoints_images/EmptyPoints_Mode_Average.png)
127+
128+
## Customizing Empty Points
129+
The [EmptyPointSettings]() property allows you to customize the appearance of empty points in a series. This enables you to adjust various visual aspects of empty points, making them more distinct from the other data points. You can modify the following properties within [EmptyPointSettings]().
130+
131+
* [Fill]() - Gets or sets the fill color for the empty points.
132+
* [Stroke]() - Gets or sets the stroke color for empty points.
133+
* [StrokeWidth]() - Gets or sets the stroke thickness for empty points.
134+
135+
{% tabs %}
136+
137+
{% highlight xaml %}
138+
139+
<chart:SfCartesianChart>
140+
141+
.....
142+
143+
<chart:LineSeries ItemsSource="{Binding ProductSales}"
144+
XBindingPath="Product"
145+
YBindingPath="Sales"
146+
Fill="#3068F7"
147+
StrokeWidth="2"
148+
ShowMarkers="True"
149+
ShowDataLabels="True"
150+
EmptyPointMode="Average">
151+
<chart:LineSeries.EmptyPointSettings>
152+
<chart:EmptyPointSettings Fill="Orange" StrokeWidth="2"/>
153+
</chart:LineSeries.EmptyPointSettings>
154+
</chart:LineSeries>
155+
</chart:SfCartesianChart>
156+
157+
{% endhighlight %}
158+
159+
{% highlight c# %}
160+
161+
SfCartesianChart chart = new SfCartesianChart();
162+
163+
.....
164+
165+
LineSeries series = new LineSeries()
166+
{
167+
ItemsSource = new ViewModel().ProductSales,
168+
XBindingPath = "Product",
169+
YBindingPath = "Sales",
170+
Fill = Color.FromArgb("#3068F7"),
171+
StrokeWidth = 2,
172+
ShowMarkers = true,
173+
ShowDataLabels = true,
174+
EmptyPointMode = EmptyPointMode.Average
175+
};
176+
177+
EmptyPointSettings emptypointSettings = new EmptyPointSettings()
178+
{
179+
Fill = Colors.Orange,
180+
StrokeWidth = 2
181+
};
182+
183+
series.EmptyPointSettings = emptypointSettings;
184+
185+
chart.Series.Add(series);
186+
this.Content = chart;
187+
188+
{% endhighlight %}
189+
190+
{% endtabs %}
191+
192+
![Customize EmptyPoints in MAUI Chart](EmptyPoints_images\Customize_EmptyPoints.png)
193+
194+
N> The EmptyPoints feature is not supported for Histogram and BoxAndWhisker series.
9.18 KB
Loading
6.05 KB
Loading
7.06 KB
Loading
10.8 KB
Loading

0 commit comments

Comments
 (0)