Skip to content

Commit 363e364

Browse files
committed
Fixed PolarArea
1 parent 5a0f879 commit 363e364

File tree

4 files changed

+34
-23
lines changed

4 files changed

+34
-23
lines changed

docs/BlazorApexCharts.Docs/Components/ChartTypes/ChartTypes.razor

Lines changed: 26 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,70 +8,76 @@
88

99
<RowCol Lg=3 Sm=6 Xs=12>
1010
<ChartCard>
11-
<OrderChart ChartType=ChartType.Bar />
11+
<OrderChart ChartType=ChartType.Bar />
1212
</ChartCard>
1313
</RowCol>
1414

1515
<RowCol Lg=3 Sm=6 Xs=12>
1616
<ChartCard>
17-
<OrderChart ChartType=ChartType.Area />
17+
<OrderChart ChartType=ChartType.Area />
1818
</ChartCard>
1919
</RowCol>
2020

2121
<RowCol Lg=3 Sm=6 Xs=12>
2222
<ChartCard>
23-
<MixedChart />
23+
<MixedChart />
2424
</ChartCard>
2525
</RowCol>
2626

27-
<RowCol Lg=3 Sm=6 Xs=12>
27+
<RowCol Lg=3 Sm=6 Xs=12>
2828
<ChartCard>
29-
<OrderChart ChartType=ChartType.RadialBar />
29+
<OrderChart ChartType=ChartType.Pie />
3030
</ChartCard>
3131
</RowCol>
3232

33-
<RowCol Lg=3 Sm=6 Xs=12>
33+
<RowCol Lg=3 Sm=6 Xs=12>
3434
<ChartCard>
35-
<OrderChart ChartType=ChartType.Scatter />
35+
<OrderChart ChartType=ChartType.Donut />
3636
</ChartCard>
3737
</RowCol>
3838

39-
<RowCol Lg=3 Sm=6 Xs=12>
39+
<RowCol Lg=3 Sm=6 Xs=12>
40+
<GaugeChart />
41+
</RowCol>
42+
43+
<RowCol Lg=3 Sm=6 Xs=12>
4044
<ChartCard>
41-
<OrderChart ChartType=ChartType.Pie />
45+
<OrderChart ChartType=ChartType.RadialBar />
4246
</ChartCard>
4347
</RowCol>
4448

45-
<RowCol Lg=3 Sm=6 Xs=12>
49+
<RowCol Lg=3 Sm=6 Xs=12>
4650
<ChartCard>
47-
<OrderChart ChartType=ChartType.Donut />
51+
<OrderChart ChartType=ChartType.PolarArea />
4852
</ChartCard>
4953
</RowCol>
5054

51-
<RowCol Lg=3 Sm=6 Xs=12>
55+
<RowCol Lg=3 Sm=6 Xs=12>
5256
<ChartCard>
53-
<OrderChart ChartType=ChartType.Treemap />
57+
<OrderChart ChartType=ChartType.Treemap />
5458
</ChartCard>
5559
</RowCol>
5660

61+
5762
<RowCol Lg=3 Sm=6 Xs=12>
58-
63+
<ChartCard>
64+
<OrderChart ChartType=ChartType.Scatter />
65+
</ChartCard>
5966
</RowCol>
6067

61-
<RowCol Lg=3 Sm=6 Xs=12>
62-
63-
</RowCol>
6468

65-
69+
70+
71+
6672

6773
<RowCol Lg=6 Sm=12>
6874
<ChartCard>
69-
<OrderChart ChartType=ChartType.Histogram />
75+
<OrderChart ChartType=ChartType.Histogram />
7076
</ChartCard>
7177
</RowCol>
7278
<RowCol Lg=6 Sm=12>
7379
<ChartCard>
74-
<OrderChart ChartType=ChartType.Radar />
80+
<OrderChart ChartType=ChartType.Radar />
7581
</ChartCard>
7682
</RowCol>
7783

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
<div class="bg-white">
3+
<ApexGauge Precentage=33 Label="Closure" Title="Gauge" />
4+
</div>

docs/BlazorApexCharts.Docs/Components/ChartTypes/OrderChart.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private bool IsXYChart()
1717
{
1818
return ChartType switch
1919
{
20-
ChartType.Pie or ChartType.Donut or ChartType.Treemap => false,
20+
ChartType.Pie or ChartType.Donut or ChartType.Treemap or ChartType.RadialBar or ChartType.PolarArea => false,
2121
_ => true,
2222
};
2323
}

src/Blazor-ApexCharts/ApexChart.razor.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ private void UpdateDataForNoAxisCharts()
147147
{
148148
if (Options.Chart.Type != ChartType.Pie &&
149149
Options.Chart.Type != ChartType.Donut &&
150-
Options.Chart.Type != ChartType.RadialBar)
150+
Options.Chart.Type != ChartType.RadialBar &&
151+
Options.Chart.Type != ChartType.PolarArea)
151152
{
152153
Options.SeriesNonXAxis = null;
153154
Options.Labels = null;
@@ -160,7 +161,7 @@ private void UpdateDataForNoAxisCharts()
160161

161162
var data = noAxisSeries.Data.Cast<DataPoint<TItem>>().ToList();
162163
Options.SeriesNonXAxis = data.Select(e => e.Y).Cast<object>().ToList();
163-
Options.Labels = data.Select(e => e.X.ToString()).ToList();
164+
Options.Labels = data.Select(e => e.X?.ToString()).ToList();
164165
}
165166

166167
public void FixLineDataSelection()

0 commit comments

Comments
 (0)