Skip to content

Commit c105cae

Browse files
committed
Fix custom tooltip sample
1 parent 7fa11b7 commit c105cae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/BlazorApexCharts.Docs/Components/Features/Tooltips/CustomTooltip.razor

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
<ApexPointTooltip>
77
<div class="p-1">
88
@{
9-
var dataPoint = (DataPoint<Order>)context.DataPoint;
109
<h3>@context.DataPoint.X</h3>
11-
1210
<Row class="mb-2">
1311
<RowCol Auto>
1412
<Badge style="background-color:#FF0000">Gross Value</Badge>
1513
</RowCol>
1614
<RowCol Auto>
1715
<span class="@(context.SeriesIndex == 0 ? "strong": "")">
18-
@dataPoint.Items.Sum(e=> e.GrossValue).ToString("n0")
16+
@context.DataPoint.Items.Sum(e=> e.GrossValue).ToString("n0")
1917
</span>
2018
</RowCol>
2119
</Row>
@@ -26,7 +24,7 @@
2624
</RowCol>
2725
<RowCol Auto>
2826
<span class="@(context.SeriesIndex == 1 ? "strong": "")">
29-
@dataPoint.Items.Sum(e=> e.NetValue).ToString("n0")
27+
@context.DataPoint.Items.Sum(e=> e.NetValue).ToString("n0")
3028
</span>
3129
</RowCol>
3230
</Row>

0 commit comments

Comments
 (0)