-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
77 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
docs/BlazorApexCharts.Docs/Components/ChartTypes/RadarCharts/DataLabels.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<DemoContainer> | ||
<ApexChart TItem="Order" | ||
Title="Order Value"> | ||
Title="Order Value" OnXAxisLabelClick=XAxisLabelClick> | ||
|
||
<ApexPointSeries TItem="Order" | ||
Items="orders" | ||
Name="Gross Value" | ||
SeriesType="SeriesType.Radar" | ||
XValue="@(e => e.Country)" | ||
YAggregate="@(e => e.Sum(e => e.GrossValue))" | ||
OrderByDescending="e=>e.Y" | ||
ShowDataLabels /> | ||
ShowDataLabels | ||
OrderByDescending="e=>e.Y" /> | ||
|
||
<ApexPointSeries TItem="Order" | ||
Items="orders" | ||
Name="Net Value" | ||
SeriesType="SeriesType.Radar" | ||
XValue="@(e => e.Country)" | ||
YAggregate="@(e => e.Sum(e => e.NetValue))" | ||
OrderByDescending="e=>e.Y" | ||
/> | ||
OrderByDescending="e=>e.Y" /> | ||
</ApexChart> | ||
</DemoContainer> | ||
|
||
@code { | ||
private List<Order> orders { get; set; } = SampleData.GetOrders(); | ||
|
||
|
||
|
||
} | ||
private void XAxisLabelClick(XAxisLabelClicked<Order> data) | ||
{ | ||
var gg = data.LabelIndex; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
docs/BlazorApexCharts.Docs/Components/Events/LegendClick/NoAxisChart.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<DemoContainer> | ||
<ApexChart TItem="Order" | ||
Title="Order Gross Value" OnLegendClicked="LegendClicked"> | ||
|
||
<ApexPointSeries TItem="Order" | ||
Items="Orders" | ||
Name="Gross Value" | ||
SeriesType="SeriesType.Pie" | ||
XValue="@(e => e.Country)" | ||
YAggregate="@(e => e.Sum(e => e.GrossValue))" | ||
OrderByDescending="e=>e.Y" | ||
/> | ||
</ApexChart> | ||
|
||
@if(currentLegend != null) | ||
{ | ||
<Alert BackgroundColor="TablerColor.Primary"> | ||
<h3>You clicked @currentLegend.DataPoint.X</h3> | ||
|
||
</Alert> | ||
} | ||
|
||
</DemoContainer> | ||
|
||
@code { | ||
private List<Order> Orders { get; set; } = SampleData.GetOrders(); | ||
|
||
|
||
private LegendClicked<Order> currentLegend = null; | ||
protected override void OnInitialized() | ||
{ | ||
|
||
} | ||
|
||
private void LegendClicked(LegendClicked<Order> data) | ||
{ | ||
currentLegend = data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters