Manit
Posts: 4
Joined: Mon Jan 10, 2022 2:26 pm

xAxs timeInterval shows Month/Month

I am using gantt chart in vue. The options object is as follows

The chart config is this: https://jsfiddle.net/h6jm90Lt/ (Apologies for improper format, i have dumped data from vue console )

I am unable to reproduce actual issue on fiddle but i have the image
Image

Appreciate the help here :)
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: xAxs timeInterval shows Month/Month

Hi,

Welcome to our forum and thanks for contacting us with your question! I appreciate for providing the example demo!

This is a default label for the currentDateIndicator. You can easily disable it by leaving an empty string or setting it to false, or by removing currentDateIndicator if you don't need it anymore.

Code: Select all

 xAxis: {
    currentDateIndicator: {
      label: false
    }
}
Demo:
https://jsfiddle.net/BlackLabel/hr0276e1/

API Reference:
https://api.highcharts.com/gantt/xAxis. ... ator.label

Feel free to ask any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
Manit
Posts: 4
Joined: Mon Jan 10, 2022 2:26 pm

Re: xAxs timeInterval shows Month/Month

Hi I tried that with little luck. It still shows month/month format. However what i did forget to mention earlier is when i zoom in and zoom back out again, i shows correct format for that level of zoom i.e year/month format


Image


Image
Manit
Posts: 4
Joined: Mon Jan 10, 2022 2:26 pm

Re: xAxs timeInterval shows Month/Month

npm version:
"highcharts": "8.1.0",
"highcharts-vue": "1.3.5",
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: xAxs timeInterval shows Month/Month

Hi,

Sorry, for my previous misunderstood.

This is the bug that was fixed in 9.1.1 version. I would recommend using this version or the latest one, in order to be always up to date.

Demo
https://codesandbox.io/s/highcharts-vue ... rked-5cyev

Let me know if you have any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
Manit
Posts: 4
Joined: Mon Jan 10, 2022 2:26 pm

Re: xAxs timeInterval shows Month/Month

Hi, that was indeed the issue. Thanks a ton! :D
magdalena
Posts: 517
Joined: Tue Aug 24, 2021 1:32 pm

Re: xAxs timeInterval shows Month/Month

You're welcome! In case of any further questions, feel free to contact us again.
Magdalena Gut
Developer and Highcharts Support Engineer

Return to “Highcharts Gantt”