Skip to content

Commit 4f4fb99

Browse files
Merge branch 'development' into BLAZ-998096-Docs
2 parents bda0aaa + 6472e2f commit 4f4fb99

38 files changed

+1559
-14
lines changed

blazor-toc.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,6 +765,9 @@
765765
<li>
766766
<a href="/blazor/accumulation-chart/title-and-sub-title">Title and Subtitle</a>
767767
</li>
768+
<li>
769+
<a href="/blazor/accumulation-chart/gradient">Gradient</a>
770+
</li>
768771
<li>
769772
<a href="/blazor/accumulation-chart/chart-print">Print and Export</a>
770773
</li>
@@ -983,10 +986,10 @@
983986
<li><a href="/blazor/blockeditor/keyboard-shortcuts">Keyboard Shortcuts</a></li>
984987
<li><a href="/blazor/blockeditor/appearance">Appearance</a></li>
985988
<li><a href="/blazor/blockeditor/events">Events</a></li>
986-
<li>Validation and Security
989+
<li>Editor Security
987990
<ul>
988-
<li><a href="/blazor/blockeditor/validation-security/cross-site-script">Cross-Site Scripting</a></li>
989-
<li><a href="/blazor/blockeditor/validation-security/read-only-mode">Controlling Editor Access</a></li>
991+
<li><a href="/blazor/blockeditor/editor-security/cross-site-script">Cross-Site Scripting</a></li>
992+
<li><a href="/blazor/blockeditor/editor-security/read-only-mode">Controlling Editor Access</a></li>
990993
</ul>
991994
</li>
992995
</ul>
@@ -1498,6 +1501,9 @@
14981501
<li>
14991502
<a href="/blazor/chart/trend-lines">Trendlines</a>
15001503
</li>
1504+
<li>
1505+
<a href="/blazor/chart/gradient">Gradient</a>
1506+
</li>
15011507
<li>
15021508
<a href="/blazor/chart/internationalization">Internationalization</a>
15031509
</li>
@@ -4585,6 +4591,7 @@
45854591
<li> <a href="/blazor/stock-chart/panning">Panning</a></li>
45864592
<li> <a href="/blazor/stock-chart/range-selector">Range Selector</a></li>
45874593
<li> <a href="/blazor/stock-chart/appearance">Appearance</a></li>
4594+
<li> <a href="/blazor/stock-chart/gradient">Gradient</a></li>
45884595
<li> <a href="/blazor/stock-chart/export-print">Print and Export</a></li>
45894596
<li> <a href="/blazor/stock-chart/accessibility">Accessibility</a></li>
45904597
<li> <a href="/blazor/stock-chart/events">Events</a></li>
@@ -4870,6 +4877,7 @@
48704877
<li><a href="/blazor/treegrid/columns/column-template">Column Template</a></li>
48714878
<li><a href="/blazor/treegrid/columns/column-reorder">Column Reorder</a></li>
48724879
<li><a href="/blazor/treegrid/columns/column-menu">Column Menu</a></li>
4880+
<li><a href="/blazor/treegrid/columns/column-spanning">Column Menu</a></li>
48734881
</ul>
48744882
</li>
48754883
<li>
@@ -4879,6 +4887,7 @@
48794887
<li><a href="/blazor/treegrid/rows/row-template">Row Template</a></li>
48804888
<li><a href="/blazor/treegrid/rows/detail-template">Detail Template</a></li>
48814889
<li><a href="/blazor/treegrid/rows/row-drag-and-drop">Row Drag and Drop</a></li>
4890+
<li><a href="/blazor/treegrid/rows/row-spanning">Row Drag and Drop</a></li>
48824891
</ul>
48834892
</li>
48844893
<li> <a href="/blazor/treegrid/templates">Templates</a></li>

blazor/accumulation-chart/gradient.md

Lines changed: 324 additions & 0 deletions
Large diffs are not rendered by default.
72.3 KB
Loading
53.7 KB
Loading
56.7 KB
Loading
60.9 KB
Loading
46.8 KB
Loading

blazor/accumulation-chart/legend.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,70 @@ When the legend text exceeds the container, the text can be wrapped by using [Te
389389

390390
{% previewsample "https://blazorplayground.syncfusion.com/embed/htLqsrMJWRuPUEHB?appbar=false&editor=false&result=true&errorlist=false&theme=bootstrap5" backgroundimage "[Blazor Accumulation Chart Legend with Wrap](images/legend/blazor-accumulation-chart-legend-wrap.png)" %}
391391

392+
## Legend Template
393+
394+
Legend templates allow you to replace default legend icons and text with custom HTML or Blazor markup for each series. This enables branded styles, richer content (icons, multi-line text, badges), improved readability, and localization.
395+
396+
To use, add a `LegendItemTemplate` inside any [AccumulationChartSeries](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.AccumulationChartSeries.html) you want to customize. The rendered content becomes the legend item and can be styled with CSS. Legend interactions (click to toggle series) remain unless [ToggleVisibility](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Charts.AccumulationChartLegendSettings.html#Syncfusion_Blazor_Charts_AccumulationChartLegendSettings_ToggleVisibility) is set to false. Templates work with all legend positions, alignments, and paging.
397+
398+
**Text** : Gets or sets the text to render for the current legend item in the template. Defaults to the value from the field mapped by AccumulationChartSeries.XName.
399+
400+
**Data** : Gets the data item from AccumulationChartSeries.DataSource bound to the current legend item. Use this to access additional fields (for example, images, badges, or localized text) inside the template.
401+
402+
```
403+
@using Syncfusion.Blazor.Charts
404+
405+
@* Initialize the accumulation chart component and configure its essential features *@
406+
<SfAccumulationChart Title="Mobile Browser Statistics">
407+
408+
@* Display the legend and allow toggling visibility on interaction *@
409+
<AccumulationChartLegendSettings Visible="true" >
410+
</AccumulationChartLegendSettings>
411+
412+
<AccumulationChartSeriesCollection>
413+
@* Define a pie series with X and Y mappings and color mapping *@
414+
<AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users" Name="Browser" PointColorMapping="Color">
415+
@* Render a custom legend item using the template context *@
416+
<LegendItemTemplate>
417+
@{
418+
var info = context as AccumulationChartLegendInfo;
419+
var browser = info?.Data?["Browser"]?.ToString() ?? "";
420+
var users = info?.Data?["Users"] is null ? 0 : Convert.ToDouble(info.Data["Users"]);
421+
}
422+
<div style="display:flex; align-items:center; gap:8px; padding:4px 0;">
423+
<div style="display:flex; flex-direction:column; line-height:1.1;">
424+
<span style="font-weight:800; font-size:14px; color: @info.Data["Color"]">@browser</span>
425+
<span style="font-size:12px; opacity:0.8;"><b>@users million</b> people use @browser</span>
426+
</div>
427+
</div>
428+
</LegendItemTemplate>
429+
</AccumulationChartSeries>
430+
</AccumulationChartSeriesCollection>
431+
432+
</SfAccumulationChart>
433+
434+
@code {
435+
public class Statistics
436+
{
437+
public string Browser { get; set; }
438+
public double Users { get; set; }
439+
public string Color { get; set; }
440+
}
441+
442+
public List<Statistics> StatisticsDetails = new()
443+
{
444+
new Statistics { Browser = "Chrome", Users = 37, Color = "#a16ee5" },
445+
new Statistics { Browser = "UC Browser", Users = 17, Color = "#f7ce69" },
446+
new Statistics { Browser = "iPhone", Users = 19, Color = "#55a5c2" },
447+
new Statistics { Browser = "Others", Users = 4, Color = "#7ddf1e" },
448+
new Statistics { Browser = "Opera", Users = 11, Color = "#ff6ea6" },
449+
new Statistics { Browser = "Android", Users = 12, Color = "#7953ac" },
450+
};
451+
452+
}
453+
```
454+
![Legend Template in Blazor Accumulation Chart](images/legend/blazor-accumulation-chart-legend-template.png)
455+
392456
N> Refer to the [Blazor Charts](https://www.syncfusion.com/blazor-components/blazor-charts) feature tour page for its groundbreaking feature representations and also explore the [Blazor Accumulation Chart Example](https://blazor.syncfusion.com/demos/chart/pie?theme=bootstrap5) to know about the various features of accumulation charts and how it is used to represent numeric proportional data.
393457

394458
* [Grouping](./grouping)

blazor/blockeditor/appearance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ You can use the `CssClass` property to customize the appearance of the Block Edi
5050
5151
```
5252

53-
The following example demonstrates the usage of `Readonly` and `CssClass` properties of the Block Editor.
53+
The following example demonstrates the usage of `ReadOnly` and `CssClass` properties of the Block Editor.
5454

5555
```cshtml
5656

blazor/blockeditor/built-in-blocks/built-in-blocks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ By default, the `Indent` property is set to `0`.
4545
4646
@using Syncfusion.Blazor.BlockEditor
4747
48-
<div class="wrapper">
48+
<div id="container">
4949
<SfBlockEditor Blocks="BlockData"></SfBlockEditor>
5050
</div>
5151
@code {
@@ -92,7 +92,7 @@ Custom CSS classes allow you to define specialized styling for specific blocks i
9292
9393
@using Syncfusion.Blazor.BlockEditor
9494
95-
<div class="wrapper">
95+
<div id="container">
9696
<SfBlockEditor Blocks="BlockData"></SfBlockEditor>
9797
</div>
9898

0 commit comments

Comments
 (0)