Blazor-ApexCharts icon indicating copy to clipboard operation
Blazor-ApexCharts copied to clipboard

[Help] Double x-axis labels

Open PaulKristoffersson opened this issue 2 years ago • 3 comments

Hey! I am trying to create a line chart with double annotations on the x-axis. Currently i am printing the weekly summary of scores per day, and in turn the x-axis labels are the week numbers. I would like to either create a second axis of labels that consists of the months or instead of printing the weeks print the corresponsing month. Here is a picture of how it looks right now.

graf

PaulKristoffersson avatar Jul 13 '22 07:07 PaulKristoffersson

Hi,

I'm not a 100% sure what you are after, is it possible for you to provide an image of how you would like it to be.

joadan avatar Jul 14 '22 12:07 joadan

Githubgraf

So i pretty much want it to look like this, having the months span under the week numbers. If this is not possible another way i could do it is by having the week numbers in the ToolTipX, however i can't figure out how to change the format and text of the tooltip.

PaulKristoffersson avatar Jul 15 '22 09:07 PaulKristoffersson

Hi,

My initial idea was to use the XAxis group function https://apexcharts.github.io/Blazor-ApexCharts/features/axis#xaxis%20groups But it will be a problem because the weeks can span multiple months.

If you want to go with the tooltip option you could make your custom tooltip, https://apexcharts.github.io/Blazor-ApexCharts/features/tooltip

joadan avatar Jul 19 '22 10:07 joadan