ChartJs.Blazor icon indicating copy to clipboard operation
ChartJs.Blazor copied to clipboard

Labels Not Showing Correctly

Open bryanp-ramosoil opened this issue 3 years ago • 0 comments

Describe your question

I'm trying to add labels to a line cart and the labels don't show as intended. As you can see in the image the labels are 1,2,3 ... to 12. In this case it should have months from May to Apr (May, Jun, ... ,Dec , Jan, Feb, Mar, Apr). Is there something I'm missing or is this a bug?

2021-05-12 10_20_00

Which Blazor project type is your question related to?

  • Client-Side

Which charts is this question related to?

Line Chart

Additional context

Add any additional context, screenshots or code about the question here.

I've tried using lineConfig.Data.Labels.AddRange but that looks to be no longer be supported.

This is what I use to build the labels. foreach (var l in labels) { lineConfig.Data.Labels.Add(l);
}

At the end of it all I use _chart.Update();

bryanp-ramosoil avatar May 12 '21 17:05 bryanp-ramosoil