prakash.das
Posts: 7
Joined: Wed Nov 30, 2022 7:15 am

increase Width of dates

can you please help me in increasing the width of the the dates
Attachments
width .png
width .png (27.91 KiB) Viewed 702 times
User avatar
dawid.d
Posts: 835
Joined: Thu Oct 06, 2022 11:31 am

Re: increase Width of dates

Hi,

Thanks for contacting us with your question!

Consider using the tickInterval option, which sets the tick interval in milliseconds.
API: https://api.highcharts.com/gantt/xAxis.tickInterval
Demo: https://jsfiddle.net/BlackLabel/m1u87vqc/

You can also try some other tick setting options depending on your needs, for example tickPixelInterval.
API: https://api.highcharts.com/gantt/xAxis. ... elInterval

Let me know if that was what you were looking for!
Best regards
Dawid Draguła
Highcharts Developer
prakash.das
Posts: 7
Joined: Wed Nov 30, 2022 7:15 am

Re: increase Width of dates

I tried your solution but it doesn't work,
my requirement is that I m plotting one-year data on the x-axis as a date only (I need to increase/fixed the width of each date after that I want to scroll on the x-axis to see all the future dates), as you can see the scroll on the y-axis on my screenshot I want to scroll on the x-axis as well but not using the internal property scrollbar set to true in code.


please suggest
User avatar
dawid.d
Posts: 835
Joined: Thu Oct 06, 2022 11:31 am

Re: increase Width of dates

Hi,

If I correctly understand your purpose and necessity of using a fixed daily tick interval, I see only two alternative possible solutions here:
1. Using the Highcharts' navigator with the scroll option, as I've described in this topic: viewtopic.php?f=19&t=49971&p=182267#p182344
2. Setting a fixed chart width and programming your own scrolling mechanism outside the Highcharts functionality.

I hope you will find it useful
Regards!
Dawid Draguła
Highcharts Developer

Return to “Highcharts Gantt”