Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XAxis text cannot be displayed for e.g.: "InvalidFile", "InvalidFileName", "Invalid", "InvalidMessageLength", ... #4242

Labels
bug Something isn't working

Comments

@IgMRe
Copy link

IgMRe commented Feb 15, 2024

Description

XAxis text cannot be displayed for e.g.: "InvalidFile", "Invalid", ...

apexcharts/Blazor-ApexCharts#406 (comment)

Steps to Reproduce

Blazor:

<ApexPointSeries TItem="MyData"
                 Items="Data"
                 Name="Net Profit"
                 SeriesType="SeriesType.Bar"
                 XValue="e => e.Category"
                 YValue="e=> e.NetProfit" />

<ApexPointSeries TItem="MyData"
                 Items="Data"
                 Name="Revenue"
                 SeriesType="SeriesType.Bar"
                 XValue="e => e.Category"
                 YValue="e=> e.Revenue" />

@code {
private List Data { get; set; } = new();

protected override void OnInitialized()
{
Data.Add(new MyData { Category = "TEST", NetProfit = 12, Revenue = 33 }); // Text is Ok
Data.Add(new MyData { Category = "Invalid", NetProfit = 43, Revenue = 42 }); // Text is not displayed
Data.Add(new MyData { Category = "InvalidFile", NetProfit = 112, Revenue = 23 }); // Text is not displayed
}

public class MyData
{
public string Category { get; set; }
public int NetProfit { get; set; }
public int Revenue { get; set; }
}
}

@IgMRe IgMRe added the bug Something isn't working label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment