Skip to content

Commit 0ac9383

Browse files
committed
Fixed js debug
1 parent 39b1174 commit 0ac9383

File tree

3 files changed

+47
-46
lines changed

3 files changed

+47
-46
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@page "/series-options"
2+
3+
<h3>Series Options</h3>
4+
5+
<p class="mb-3">
6+
7+
<ul>
8+
<li>Use the Stroke setting on the series to control color, width and dash settings</li>
9+
<li>Use ShowDataLabels to show the datalabels on each value</li>
10+
</ul>
11+
12+
13+
Please note that the color must be either hex or rgb/rgba format. Color names are not accepted at the moment in apexchart.js.
14+
</p>
15+
<div style="max-width:500px">
16+
17+
18+
<ApexChart TItem="Order"
19+
Title="Order Net Value"
20+
ChartType="@ChartType.Line">
21+
22+
<ApexSeries TItem="Order"
23+
Items="Orders"
24+
Name="Gross Value"
25+
XValue="@(e => e.Country)"
26+
YAggregate="@(e => e.Sum(e => e.GrossValue))"
27+
OrderByDescending="e=>e.Y"
28+
Stroke="@(new ApexCharts.SeriesStroke { Color = "#FF0000", DashSpace = 0, Width = 5 })"
29+
ShowDataLabels />
30+
31+
32+
<ApexSeries TItem="Order"
33+
Items="Orders"
34+
Name="Net Value"
35+
XValue="@(e => e.Country)"
36+
YAggregate="@(e => e.Sum(e => e.NetValue))"
37+
OrderByDescending="e=>e.Y"
38+
Stroke="@(new ApexCharts.SeriesStroke { Color = "#000080", DashSpace = 3, Width = 3 })" />
39+
40+
</ApexChart>
41+
</div>
42+
43+
@code {
44+
private List<Order> Orders { get; set; } = SampleData.GetOrders();
45+
46+
47+
}

samples/ChartSamples/Pages/SeriesOptionsSample.razor

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/Blazor-ApexCharts/wwwroot/js/blazor-apex-charts.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
renderChart(dotNetObject, container, options) {
1414
var options = JSON.parse(options);
1515

16-
console.log(options);
1716
if (options.debug == true) {
1817
console.log(options);
1918
}

0 commit comments

Comments
 (0)