Skip to content

Commit

Permalink
Datalabels fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joadan committed Sep 1, 2024
1 parent c9bfca1 commit 484a1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blazor-ApexCharts/ApexChart.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ private void SetSeriesStroke()

private void SetDataLabels()
{
if (Options?.Series == null || !Options.Series.Any(e=> e.ApexSeries.ShowDataLabels)) { return; }
if (Options?.Series == null || Options.Series.Count == 0) { return; }

if (Options.DataLabels == null) { Options.DataLabels = new DataLabels(); }

Expand Down

0 comments on commit 484a1ff

Please sign in to comment.