Skip to content

Commit 3530d4d

Browse files
Merge pull request #3941 from syncfusion-content/liquid-ug-chart-rte
998734-Added the Images for Liquid Glass Effect support, addressed review suggestions and Added API links for new feaatures of .NET MAUI Charts and RichTextEditor
2 parents 939aa7c + 38a4203 commit 3530d4d

File tree

23 files changed

+393
-199
lines changed

23 files changed

+393
-199
lines changed

MAUI/Cartesian-Charts/Annotation.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -621,19 +621,19 @@ this.Content = chart;
621621

622622
**AnnotationTapped**
623623

624-
The [`AnnotationTapped`]() event occurs when an annotation is tapped. The [`AnnotationTappedEventArgs`]() provides the following details:
624+
The [AnnotationTapped](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html#Syncfusion_Maui_Charts_SfCartesianChart_AnnotationTapped) event occurs when an annotation is tapped. The [AnnotationTappedEventArgs](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.Chart.Events.AnnotationTappedEventArgs.html) provides the following details:
625625

626-
* [`annotation`]() – the annotation instance that was tapped.
627-
* [`x`]() – the X coordinate of the touch or mouse click position.
628-
* [`y`]() – the Y coordinate of the touch or mouse click position.
626+
* [Annotation](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.Chart.Events.AnnotationTappedEventArgs.html#Syncfusion_Maui_Charts_Chart_Events_AnnotationTappedEventArgs_Annotation) – the annotation instance that was tapped.
627+
* [X](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.Chart.Events.AnnotationTappedEventArgs.html#Syncfusion_Maui_Charts_Chart_Events_AnnotationTappedEventArgs_X) – the X coordinate of the touch or mouse click position.
628+
* [Y](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.Chart.Events.AnnotationTappedEventArgs.html#Syncfusion_Maui_Charts_Chart_Events_AnnotationTappedEventArgs_Y) – the Y coordinate of the touch or mouse click position.
629629

630630
## Public methods
631631

632632
The following override methods allow you to handle touch interactions on annotations:
633633

634-
* [`OnTouchDown`]() – triggered when touch starts (down) on the annotation.
635-
* [`OnTouchMove`]() – triggered when moving (dragging) the finger or mouse across the annotation.
636-
* [`OnTouchUp`]() – triggered when touch ends (up) by lifting the finger or releasing the mouse from the annotation.
634+
* [OnTouchDown()](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartAnnotation.html#Syncfusion_Maui_Charts_ChartAnnotation_OnTouchDown_System_Single_System_Single_) – triggered when touch starts (down) on the annotation.
635+
* [OnTouchMove()](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartAnnotation.html#Syncfusion_Maui_Charts_ChartAnnotation_OnTouchMove_System_Single_System_Single_) – triggered when moving (dragging) the finger or mouse across the annotation.
636+
* [OnTouchUp()](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartAnnotation.html#Syncfusion_Maui_Charts_ChartAnnotation_OnTouchUp_System_Single_System_Single_) – triggered when touch ends (up) by lifting the finger or releasing the mouse from the annotation.
637637

638638
{% tabs %}
639639

MAUI/Cartesian-Charts/Legend.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ this.Content = chart;
235235

236236
## Floating legend
237237

238-
The floating legend feature allows you to position the legend inside the chart area based on its defined placement. When [IsFloating]() is set to true, the legend will start from the specified [Placement](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_Placement) (such as Top, Bottom, Left, or Right) and then move according to the offset values, enabling precise control over the legend’s location.
238+
The floating legend feature allows you to position the legend inside the chart area based on its defined placement. When [IsFloating](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_IsFloating) is set to true, the legend will start from the specified [Placement](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_Placement) (such as Top, Bottom, Left, or Right) and then move according to the offset values, enabling precise control over the legend’s location.
239239

240-
* [OffsetX](): Specifies the horizontal distance from the defined placement position.
241-
* [OffsetY](): Specifies the vertical distance from the defined placement position.
240+
* [OffsetX](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_OffsetX): Specifies the horizontal distance from the defined placement position.
241+
* [OffsetY](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_OffsetY): Specifies the vertical distance from the defined placement position.
242242

243243
{% tabs %}
244244

MAUI/Cartesian-Charts/Liquid-Glass-Effect.md

Lines changed: 105 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,57 +12,63 @@ keywords: .net maui chart, cupertino theme, glass effect, maui cupertino chart,
1212

1313
The Liquid Glass Effect is a modern design style that provides a sleek, minimalist appearance with clean lines, subtle visual effects, and elegant styling. It features smooth rounded corners and sophisticated visual treatments that create a polished, professional look for your charts.
1414

15-
N> The liquid glass effect is only available on macOS and iOS platforms with version 26 or higher.
15+
N> The liquid glass effect is supported only on `.NET 10` and on `iOS` and `macOS` versions 26 or later
1616

1717
## How it Enhances Chart UI on macOS and iOS
1818

19-
The Liquid Glass Effect enhances chart interactivity with liquid glass effects on tooltips and trackballs, creating a modern and visually appealing data visualization interface that delivers a sophisticated user experience.
19+
The Liquid Glass Effect enhances MAUI [SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html) with a sleek, glassy look and improved interactivity.
2020

21-
## Apply Liquid Glass Effect to SfCartesianChart
21+
- **Tooltip:** Applies a glassy appearance to tooltips for clearer data highlights.
22+
- **Trackball:** Adds a glassy style to trackball labels for precise value inspection.
23+
- **Chart Background:** Wrap the chart in an [SfGlassEffectView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfGlassEffectView.html) to give the chart surface a blurred or clear glass background.
2224

23-
Wrap the SfCartesianChart inside an [SfGlassEffectsView]() to give the chart surface a glass (blurred or clear) appearance. SfGlassEffectsView is available in the [Syncfusion.Maui.Core](https://www.nuget.org/packages/Syncfusion.Maui.Core/) package. To apply the glassy effect to the chart’s tooltips and trackballs, set the [EnableLiquidGlassEffect]() property of SfCartesianChart to `True`.
25+
## Apply Liquid Glass Effect to SfCartesianChart Background
26+
27+
Wrap the [SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html) inside an [SfGlassEffectView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfGlassEffectView.html) to give the chart surface a glass (blurred or clear) appearance. `SfGlassEffectView` is available in the [Syncfusion.Maui.Core](https://www.nuget.org/packages/Syncfusion.Maui.Core/) package.
2428

2529
{% tabs %}
2630

2731
{% highlight xaml %}
2832

29-
<core:SfGlassEffectsView CornerRadius="20"
30-
Padding="12"
31-
EffectType="Regular"
32-
EnableShadowEffect="True">
33+
<core:SfGlassEffectView CornerRadius="20"
34+
Padding="12"
35+
EffectType="Regular"
36+
EnableShadowEffect="True">
37+
38+
<chart:SfCartesianChart>
3339

34-
<chart:SfCartesianChart EnableLiquidGlassEffect="True">
3540
<chart:SfCartesianChart.XAxes>
3641
<chart:CategoryAxis />
3742
</chart:SfCartesianChart.XAxes>
3843
<chart:SfCartesianChart.YAxes>
3944
<chart:NumericalAxis />
4045
</chart:SfCartesianChart.YAxes>
4146

42-
<!-- Add your series here -->
4347
<chart:ColumnSeries
4448
ItemsSource="{Binding Data}"
4549
XBindingPath="Category"
4650
YBindingPath="Value" />
51+
4752
</chart:SfCartesianChart>
48-
</core:SfGlassEffectsView>
53+
</core:SfGlassEffectView>
4954

5055
{% endhighlight %}
5156

5257
{% highlight c# %}
5358

5459
SfCartesianChart chart = new SfCartesianChart();
55-
chart.EnableLiquidGlassEffect = true;
60+
5661
chart.XAxes.Add(new CategoryAxis());
5762
chart.YAxes.Add(new NumericalAxis());
63+
5864
chart.Series.Add(new ColumnSeries
5965
{
6066
ItemsSource = viewModel.Data,
6167
XBindingPath = "Category",
6268
YBindingPath = "Value"
6369
});
6470

65-
var glass = new SfGlassEffectsView
71+
var glass = new SfGlassEffectView
6672
{
6773
CornerRadius = 20,
6874
Padding = 12,
@@ -75,17 +81,96 @@ var glass = new SfGlassEffectsView
7581

7682
{% endtabs %}
7783

78-
### Key Properties
84+
For detailed guidance on [SfGlassEffectView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfGlassEffectView.html), refer to the Getting Started [documentation](https://help.syncfusion.com/maui/liquid-glass-ui/getting-started).
85+
86+
## Enable Liquid Glass Effect to SfCartesianChart Elements
87+
88+
### Tooltip
89+
90+
To Enable Liquid Glass effect to the tooltip, set `True` to [EnableLiquidGlassEffect](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartBase.html#Syncfusion_Maui_Charts_ChartBase_EnableLiquidGlassEffect) property of [SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html) and [EnableTooltip](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartSeries.html#Syncfusion_Maui_Charts_ChartSeries_EnableTooltip) property of ChartSeries.
91+
92+
{% tabs %}
93+
94+
{% highlight xaml %}
95+
96+
<chart:SfCartesianChart EnableLiquidGlassEffect="True">
97+
. . .
98+
<chart:ColumnSeries ItemsSource="{Binding Data}"
99+
XBindingPath="Category"
100+
YBindingPath="Value"
101+
EnableTooltip="True">
102+
</chart:ColumnSeries>
103+
</chart:SfCartesianChart>
104+
105+
{% endhighlight %}
106+
107+
{% highlight c# %}
108+
109+
SfCartesianChart chart = new SfCartesianChart();
110+
chart.EnableLiquidGlassEffect = true;
111+
. . .
112+
ColumnSeries series = new ColumnSeries()
113+
{
114+
ItemsSource = viewModel.Data,
115+
XBindingPath = "Category",
116+
YBindingPath = "Value",
117+
EnableTooltip = true
118+
};
119+
120+
chart.Series.Add(series);
121+
this.Content = chart;
122+
123+
{% endhighlight %}
124+
125+
{% endtabs %}
126+
127+
![Column Chart with Liquid Glass Tooltip](Liquid-Glass-Images/column_liquid_tooltip.png)
128+
129+
### Trackball
130+
131+
To Enable Liquid Glass effect to the trackball, set `True` to [EnableLiquidGlassEffect](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartBase.html#Syncfusion_Maui_Charts_ChartBase_EnableLiquidGlassEffect) property of [SfCartesianChart](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.SfCartesianChart.html) and [ShowTrackballLabel](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.CartesianSeries.html#Syncfusion_Maui_Charts_CartesianSeries_ShowTrackballLabel) property of [ChartSeries](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartSeries.html).
132+
133+
{% tabs %}
134+
135+
{% highlight xaml %}
136+
137+
<chart:SfCartesianChart EnableLiquidGlassEffect="True">
138+
. . .
139+
<chart:LineSeries ItemsSource="{Binding Data}"
140+
XBindingPath="Category"
141+
YBindingPath="Value"
142+
ShowTrackballLabel="True">
143+
</chart:LineSeries>
144+
</chart:SfCartesianChart>
145+
146+
{% endhighlight %}
147+
148+
{% highlight c# %}
149+
150+
SfCartesianChart chart = new SfCartesianChart();
151+
chart.EnableLiquidGlassEffect = true;
152+
. . .
153+
LineSeries series = new LineSeries()
154+
{
155+
ItemsSource = viewModel.Data,
156+
XBindingPath = "Category",
157+
YBindingPath = "Value",
158+
ShowTrackballLabel = true
159+
};
160+
161+
chart.Series.Add(series);
162+
this.Content = chart;
163+
164+
{% endhighlight %}
165+
166+
{% endtabs %}
79167

80-
- [EffectType](): Chooses the visual style (Regular or Clear).
81-
- [CornerRadius](): Rounds the container edges for a polished look.
82-
- [EnableShadowEffect](): Adds a subtle drop shadow to enhance depth.
83-
- [EnableLiquidGlassEffect](): Enables the glass effect for the chart's tooltip and trackballs.
168+
![Line Chart with Liquid Glass Trackball](Liquid-Glass-Images/line_liquid_trackball.png)
84169

85170
### Best Practices and Tips
86171

87-
- Host the chart inside an [SfGlassEffectsView]() to give the chart body a glass appearance.
172+
- Host the chart inside an [SfGlassEffectView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfGlassEffectView.html) to give the chart body a glass appearance.
88173
- Liquid glass effects are most visible over images or colorful backgrounds.
89-
- Use EffectType="Regular" for a blurrier look and EffectType="Clear" for a crisper, glassy look.
174+
- Set [EffectType](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfGlassEffectView.html#Syncfusion_Maui_Core_SfGlassEffectView_EffectType) property of [SfGlassEffectView](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Core.SfGlassEffectView.html) as `Regular` for a blurrier look and `Clear` for a crisper, glassy look.
90175
- Tune CornerRadius and Padding to balance content density and visual polish.
91176
- When using a custom template for tooltip and trackball using [TooltipTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartSeries.html#Syncfusion_Maui_Charts_ChartSeries_TooltipTemplate) and [TrackballLabelTemplate](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.CartesianSeries.html#Syncfusion_Maui_Charts_CartesianSeries_TrackballLabelTemplate), set the background to `Transparent` to display the liquid glass effect.
21.1 KB
Loading
28.4 KB
Loading

MAUI/Circular-Charts/Legend.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ this.Content = chart;
229229

230230
## Floating legend
231231

232-
The floating legend feature allows you to position the legend inside the chart area based on its defined placement. When [IsFloating]() is set to true, the legend will start from the specified [Placement](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_Placement) (such as Top, Bottom, Left, or Right) and then move according to the offset values, enabling precise control over the legend’s location.
232+
The floating legend feature allows you to position the legend inside the chart area based on its defined placement. When [IsFloating](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_IsFloating) is set to true, the legend will start from the specified [Placement](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_Placement) (such as Top, Bottom, Left, or Right) and then move according to the offset values, enabling precise control over the legend’s location.
233233

234-
* [OffsetX](): Specifies the horizontal distance from the defined placement position.
235-
* [OffsetY](): Specifies the vertical distance from the defined placement position.
234+
* [OffsetX](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_OffsetX): Specifies the horizontal distance from the defined placement position.
235+
* [OffsetY](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Charts.ChartLegend.html#Syncfusion_Maui_Charts_ChartLegend_OffsetY): Specifies the vertical distance from the defined placement position.
236236

237237
{% tabs %}
238238

0 commit comments

Comments
 (0)