Skip to content

Commit 34923cc

Browse files
committed
998039: Updated changes.
1 parent d7cc92e commit 34923cc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
15.7 KB
Loading

blazor/accumulation-chart/legend.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,13 @@ To use, add a `LegendItemTemplate` inside any [AccumulationChartSeries](https://
405405
@{
406406
var info = context as AccumulationChartLegendInfo;
407407
var browser = info?.Data?["Browser"]?.ToString() ?? "";
408+
var users = info?.Data?["Users"] is null ? 0 : Convert.ToDouble(info.Data["Users"]);
408409
}
409410
<div style="display:flex; align-items:center; gap:8px; padding:4px 0;">
410-
<span style="font-weight:600; color:@info.Data["Color"];">@browser</span>
411+
<div style="display:flex; flex-direction:column; line-height:1.1;">
412+
<span style="font-weight:800; font-size:14px; color: @info.Data["Color"]">@browser</span>
413+
<span style="font-size:12px; opacity:0.8;"><b>@users million</b> people use @browser</span>
414+
</div>
411415
</div>
412416
</LegendItemTemplate>
413417
<ChildContent>

0 commit comments

Comments
 (0)