Skip to content

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

@IgMRe

Description

@IgMRe

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; }
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions