Skip to content

YAxisLabels are sometimes misaligned. #624

@Axium7

Description

@Axium7

Hello Blazor-ApexCharts,

My YAxisLabels are sometimes cut off as depicted in the below screenshot and video. Other times they appear correctly. It appears to be random whether they render properly or not.

Image
Axis.Labels.mp4

I am using Height="450" without a width dimension within a MudGrid / MudItem.

<MudItem xs="12">
				<ApexChart TItem=@ModYearsGenTotals
						   Height="450"
						   Options=@chartOptions>

Below is the code for the YAxis. Thank you for any advice.

chartOptions.Yaxis = new List<YAxis>();

chartOptions.Yaxis.Add(new YAxis
{
	Title = new AxisTitle
	{
		Text = strYAxisTitle,
		Style = new AxisTitleStyle
		{
			FontWeight = "300",
			FontSize = "18px"
		}
	},
	Labels = new YAxisLabels
	{
		Formatter = "function(val) { return val.toLocaleString(); }",
		Style = new AxisLabelStyle
		{
			FontWeight = "700"
		}
	}

});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions