Skip to content

Commit 7ba3a6e

Browse files
Merge pull request #1407 from syncfusion-content/1027486_Review_Suggestions_WinUI
Ensure Live UG Updates and Address Review Suggestions for WinUI charts
2 parents db93a12 + 55a8a5a commit 7ba3a6e

28 files changed

Lines changed: 90 additions & 212 deletions

winui/Circular-Charts/DataLabels.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ The following properties are used to customize the data label.
118118
FontFamily="Calibri"
119119
BorderBrush="Black"
120120
BorderThickness="1"
121-
Margin="1"
121+
Margin="1"
122122
FontStyle="Italic"
123123
Background="#1E88E5"
124124
Context="Percentage"/>
@@ -177,10 +177,10 @@ The appearance of the data label can be customized using [ContentTemplate](https
177177
StrokeThickness="2"/>
178178
<TextBlock
179179
HorizontalAlignment="Center"
180-
FontSize="12"
180+
FontSize="12"
181181
Foreground="Black"
182182
FontWeight="SemiBold"
183-
Text="{Binding Item.Product}"/>
183+
Text="{Binding Item.Product}"/>
184184
</StackPanel>
185185
</DataTemplate>
186186
</Grid.Resources>
@@ -191,7 +191,7 @@ The appearance of the data label can be customized using [ContentTemplate](https
191191
<chart:PieSeries.DataLabelSettings>
192192
<chart:CircularDataLabelSettings
193193
Position="Inside"
194-
ContentTemplate="{StaticResource labelTemplate}"
194+
ContentTemplate="{StaticResource labelTemplate}"
195195
Context="DataLabelItem"/>
196196
</chart:PieSeries.DataLabelSettings>
197197
</chart:PieSeries>
@@ -248,8 +248,8 @@ The following are the values for this property:
248248
<chart:PieSeries.DataLabelSettings>
249249
<chart:CircularDataLabelSettings
250250
Position="OutsideExtended"
251-
ShowConnectorLine="True"
252-
Context="Percentage"/>
251+
ShowConnectorLine="True"
252+
Context="Percentage"/>
253253
</chart:PieSeries.DataLabelSettings>
254254
</chart:PieSeries>
255255
. . .
@@ -293,8 +293,8 @@ chart.Series.Add(series);
293293
<chart:PieSeries.DataLabelSettings>
294294
<chart:CircularDataLabelSettings
295295
Context="Percentage"
296-
Position="Outside"
297-
Rotation="335"/>
296+
Position="Outside"
297+
Rotation="335"/>
298298
</chart:PieSeries.DataLabelSettings>
299299
</chart:PieSeries>
300300
. . .
@@ -351,11 +351,11 @@ The connector line can be customized using the below properties.
351351
<chart:PieSeries.DataLabelSettings>
352352
<chart:CircularDataLabelSettings
353353
Position="Outside"
354-
Context="Percentage"
355-
ShowConnectorLine="True"
356-
ConnectorHeight="40"
357-
ConnectorType="StraightLine"
358-
ConnectorLineStyle="{StaticResource lineStyle}"/>
354+
Context="Percentage"
355+
ShowConnectorLine="True"
356+
ConnectorHeight="40"
357+
ConnectorType="StraightLine"
358+
ConnectorLineStyle="{StaticResource lineStyle}"/>
359359
</chart:PieSeries.DataLabelSettings>
360360
</chart:PieSeries>
361361
</chart:SfCircularChart>
@@ -402,7 +402,7 @@ chart.Series.Add(series);
402402
<chart:PieSeries.DataLabelSettings>
403403
<chart:CircularDataLabelSettings
404404
ConnectorType="Bezier"
405-
ConnectorHeight="40"
405+
ConnectorHeight="40"
406406
Position="Outside"
407407
ShowConnectorLine="True"/>
408408
</chart:PieSeries.DataLabelSettings>
@@ -449,10 +449,10 @@ The [UseSeriesPalette](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.C
449449
<chart:PieSeries ShowDataLabels="True">
450450
<chart:PieSeries.DataLabelSettings>
451451
<chart:CircularDataLabelSettings
452-
UseSeriesPalette="True"
453-
ShowConnectorLine="True"
454-
ConnectorHeight="40"
455-
Position="Outside"/>
452+
UseSeriesPalette="True"
453+
ShowConnectorLine="True"
454+
ConnectorHeight="40"
455+
Position="Outside"/>
456456
</chart:PieSeries.DataLabelSettings>
457457
</chart:PieSeries>
458458
</chart:SfCircularChart>

winui/Circular-Charts/Selection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ The circular chart provides support to select multiple points programmatically o
170170
<chart:PieSeries.SelectionBehavior>
171171
<chart:DataPointSelectionBehavior
172172
SelectionBrush="BlueViolet"
173-
Type="Multiple"
174-
SelectedIndexes="{Binding SelectedIndexes}"/>
173+
Type="Multiple"
174+
SelectedIndexes="{Binding SelectedIndexes}"/>
175175
</chart:PieSeries.SelectionBehavior>
176176
</chart:PieSeries>
177177
</chart:SfCircularChart.Series>

winui/Funnel-Chart/Appearance.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
3939

4040
chart.XBindingPath = "Category";
4141
chart.YBindingPath = "Value";
42-
4342
. . .
44-
4543
this.Content = chart;
4644

4745
{% endhighlight %}
@@ -102,9 +100,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
102100
chart.XBindingPath = "Category";
103101
chart.YBindingPath = "Value";
104102
chart.PaletteBrushes = CustomBrushes;
105-
106103
. . .
107-
108104
this.Content = chart;
109105

110106
{% endhighlight %}
@@ -198,14 +194,10 @@ stop2 = new GradientStop()
198194

199195
gradientColor2.GradientStops.Add(stop1);
200196
gradientColor2.GradientStops.Add(stop2);
201-
202197
. . .
203-
204198
customBrushes.Add(gradientColor1);
205199
customBrushes.Add(gradientColor2);
206-
207200
. . .
208-
209201
chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
210202
{
211203
Path = new PropertyPath("Data")
@@ -214,9 +206,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
214206
chart.XBindingPath = "Category";
215207
chart.YBindingPath = "Value";
216208
chart.PaletteBrushes = customBrushes;
217-
218209
. . .
219-
220210
this.Content = chart;
221211

222212
{% endhighlight %}

winui/Funnel-Chart/Data-label.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
4343

4444
chart.XBindingPath = "Category";
4545
chart.YBindingPath = "Value";
46-
47-
. . .
48-
46+
. . .
4947
this.Content = chart;
5048

5149
{% endhighlight %}
@@ -82,9 +80,7 @@ To customize the content of data labels, need to define [DataLabelSettings](http
8280
SfFunnelChart chart = new SfFunnelChart();
8381

8482
chart.ShowDataLabels = true;
85-
8683
. . .
87-
8884
chart.DataLabelSettings = new FunnelDataLabelSettings()
8985
{
9086
Context = LabelContext.Percentage
@@ -143,9 +139,7 @@ The following properties are used to customize the data label:
143139
SfFunnelChart chart = new SfFunnelChart();
144140

145141
chart.ShowDataLabels = true;
146-
147142
. . .
148-
149143
chart.DataLabelSettings = new FunnelDataLabelSettings()
150144
{
151145
Foreground = new SolidColorBrush(Colors.White),
@@ -231,9 +225,7 @@ The appearance of the data label can be customized by using the [ContentTemplate
231225
SfFunnelChart chart = new SfFunnelChart();
232226

233227
chart.ShowDataLabels = true;
234-
235228
. . .
236-
237229
chart.DataLabelSettings = new FunnelDataLabelSettings()
238230
{
239231
Context = LabelContext.YValue,
@@ -276,9 +268,7 @@ The [Format](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.Char
276268
SfFunnelChart chart = new SfFunnelChart();
277269

278270
chart.ShowDataLabels = true;
279-
280271
. . .
281-
282272
chart.DataLabelSettings = new FunnelDataLabelSettings()
283273
{
284274
Format = "#.000",
@@ -310,9 +300,9 @@ The [Rotation](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.Ch
310300
<chart:SfFunnelChart.DataLabelSettings>
311301
<chart:FunnelDataLabelSettings
312302
Rotation="45"
313-
BorderBrush="White"
314-
BorderThickness="1"
315-
Background="#1E88E5"/>
303+
BorderBrush="White"
304+
BorderThickness="1"
305+
Background="#1E88E5"/>
316306
</chart:SfFunnelChart.DataLabelSettings>
317307
</chart:SfFunnelChart>
318308

@@ -323,9 +313,7 @@ The [Rotation](https://help.syncfusion.com/cr/winui/Syncfusion.UI.Xaml.Charts.Ch
323313
SfFunnelChart chart = new SfFunnelChart();
324314

325315
chart.ShowDataLabels = true;
326-
327316
. . .
328-
329317
chart.DataLabelSettings = new FunnelDataLabelSettings()
330318
{
331319
Rotation = 45,

winui/Funnel-Chart/Explode-segments.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ chart.XBindingPath = "Category";
4343
chart.YBindingPath = "Value";
4444
chart.ExplodeIndex = 3;
4545
chart.ExplodeOffset = 30;
46-
4746
. . .
48-
4947
this.Content = chart;
5048

5149
{% endhighlight %}

winui/Funnel-Chart/Getting-Started.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,14 @@ This section explains how to populate the [WinUI Funnel Chart](https://www.syncf
3535
{% highlight C# %}
3636

3737
using Syncfusion.UI.Xaml.Charts;
38-
3938
. . .
40-
4139
public sealed partial class MainWindow : Window
4240
{
4341
public MainWindow()
4442
{
4543
this.InitializeComponent();
4644
SfFunnelChart chart = new SfFunnelChart();
47-
4845
. . .
49-
5046
this.Content = chart;
5147
}
5248
}

winui/Funnel-Chart/Legend.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ documentation: ug
1111

1212
The legend contains a list of series data points in the chart. The information provided in each legend item helps you to identify the corresponding data series in the chart.
1313

14-
N> The x-value of data points in the funnel chart will be the legend items Label.
14+
N> The x-value of data points in the funnel chart will be the legend items `Label`.
1515

1616
{% tabs %}
1717

@@ -83,9 +83,7 @@ TextBlock textBlock = new TextBlock()
8383

8484
legend.Header = textBlock;
8585
chart.Legend = legend;
86-
8786
. . .
88-
8987
this.Content = chart;
9088

9189
{% endhighlight %}
@@ -130,9 +128,7 @@ chart.Legend = new ChartLegend()
130128
IconHeight = 15,
131129
IconVisibility = Visibility.Visible,
132130
};
133-
134131
. . .
135-
136132
this.Content = chart;
137133

138134
{% endhighlight %}
@@ -167,9 +163,7 @@ chart.Legend = new ChartLegend()
167163
{
168164
ItemMargin = new Thickness(10)
169165
};
170-
171166
. . .
172-
173167
this.Content = chart;
174168

175169
{% endhighlight %}
@@ -204,9 +198,7 @@ chart.Legend = new ChartLegend()
204198
{
205199
CheckBoxVisibility = Visibility.Visible
206200
};
207-
208201
. . .
209-
210202
this.Content = chart;
211203

212204
{% endhighlight %}
@@ -241,9 +233,7 @@ chart.Legend = new ChartLegend()
241233
{
242234
ToggleSeriesVisibility = true
243235
};
244-
245236
. . .
246-
247237
this.Content = chart;
248238

249239
{% endhighlight %}
@@ -281,9 +271,7 @@ chart.Legend = new ChartLegend()
281271
Placement = LegendPlacement.Right,
282272
ItemMargin = new Thickness(10),
283273
};
284-
285274
. . .
286-
287275
this.Content = chart;
288276

289277
{% endhighlight %}
@@ -331,9 +319,7 @@ chart.Legend = new ChartLegend()
331319
BorderThickness = new Thickness(1),
332320
CornerRadius = new CornerRadius(5)
333321
};
334-
335322
. . .
336-
337323
this.Content = chart;
338324

339325
{% endhighlight %}
@@ -383,9 +369,7 @@ chart.Legend = new ChartLegend()
383369
{
384370
ItemTemplate = grid.Resources["labelTemplate"] as DataTemplate
385371
};
386-
387372
. . .
388-
389373
this.Content = chart;
390374

391375
{% endhighlight %}

winui/Funnel-Chart/Neck-width.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
3636
chart.XBindingPath = "Category";
3737
chart.YBindingPath = "Value";
3838
chart.MinimumWidth = 20;
39-
4039
. . .
41-
4240
this.Content = chart;
4341

4442
{% endhighlight %}
@@ -75,9 +73,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
7573
chart.XBindingPath = "Category";
7674
chart.YBindingPath = "Value";
7775
chart.MinimumWidth = 0;
78-
7976
. . .
80-
8177
this.Content = chart;
8278

8379
{% endhighlight %}

winui/Funnel-Chart/Rendering-mode.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty,new Binding()
4141
chart.XBindingPath = "Category";
4242
chart.YBindingPath = "Value";
4343
chart.Mode = ChartFunnelMode.ValueIsHeight;
44-
4544
. . .
46-
4745
this.Content = chart;
4846

4947

@@ -83,9 +81,7 @@ chart.SetBinding(SfFunnelChart.ItemsSourceProperty, new Binding()
8381
chart.XBindingPath = "Category";
8482
chart.YBindingPath = "Value";
8583
chart.Mode = ChartFunnelMode.ValueIsWidth;
86-
8784
. . .
88-
8985
this.Content = chart;
9086

9187
{% endhighlight %}

0 commit comments

Comments
 (0)