-
Notifications
You must be signed in to change notification settings - Fork 92
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
3 changed files
with
47 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@page "/series-options" | ||
|
||
<h3>Series Options</h3> | ||
|
||
<p class="mb-3"> | ||
|
||
<ul> | ||
<li>Use the Stroke setting on the series to control color, width and dash settings</li> | ||
<li>Use ShowDataLabels to show the datalabels on each value</li> | ||
</ul> | ||
|
||
|
||
Please note that the color must be either hex or rgb/rgba format. Color names are not accepted at the moment in apexchart.js. | ||
</p> | ||
<div style="max-width:500px"> | ||
|
||
|
||
<ApexChart TItem="Order" | ||
Title="Order Net Value" | ||
ChartType="@ChartType.Line"> | ||
|
||
<ApexSeries TItem="Order" | ||
Items="Orders" | ||
Name="Gross Value" | ||
XValue="@(e => e.Country)" | ||
YAggregate="@(e => e.Sum(e => e.GrossValue))" | ||
OrderByDescending="e=>e.Y" | ||
Stroke="@(new ApexCharts.SeriesStroke { Color = "#FF0000", DashSpace = 0, Width = 5 })" | ||
ShowDataLabels /> | ||
|
||
|
||
<ApexSeries TItem="Order" | ||
Items="Orders" | ||
Name="Net Value" | ||
XValue="@(e => e.Country)" | ||
YAggregate="@(e => e.Sum(e => e.NetValue))" | ||
OrderByDescending="e=>e.Y" | ||
Stroke="@(new ApexCharts.SeriesStroke { Color = "#000080", DashSpace = 3, Width = 3 })" /> | ||
|
||
</ApexChart> | ||
</div> | ||
|
||
@code { | ||
private List<Order> Orders { get; set; } = SampleData.GetOrders(); | ||
|
||
|
||
} |
This file was deleted.
Oops, something went wrong.
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