Skip to content
Board Index
FAQ
Login
Register
Board index
Highcharts - The JavaScript Charting Framework
Highcharts Gantt
Unanswered topics
Active topics
Board Index
FAQ
Search
Login
Register
How to show start of week date instead of week number?
Post Reply
Print view
2 posts • Page
1
of
1
bazzacad
Posts:
20
Joined:
Mon Jun 26, 2017 9:00 pm
How to show start of week date instead of week number?
Quote
Thu Mar 17, 2022 9:54 pm
How can I get my Gantt chart to show the date of each Monday of the week, instead of the week numbers?
So Week 11 would be Mar 14, Week 12 would be Mar 21, etc...
2022-03-17 14_47_14-Team Schedule.png (16.37 KiB) Viewed 1059 times
magdalena
Posts:
517
Joined:
Tue Aug 24, 2021 1:32 pm
Re: How to show start of week date instead of week number?
Quote
Fri Mar 18, 2022 1:06 pm
Hi,
Thanks for contacting us with your question!
Use
xAxis.dateTimeLabelFormats
property for setting the relevant axis label. Please check the API documentation for more details.
API Reference:
https://api.highcharts.com/gantt/xAxis. ... belFormats
Demo:
https://jsfiddle.net/gh/get/library/pur ... el-formats
The other approach is using
labels.format
or
labels.formatter
. More information on a similar thread in this forum and API:
Gantt chart: how to make dates in xAxis jump from months-years to days-months?
API References:
https://api.highcharts.com/gantt/xAxis.labels.format
https://api.highcharts.com/gantt/xAxis.labels.formatter
Demo:
https://jsfiddle.net/BlackLabel/2gk67zrm/
Feel free to ask any further questions,
Regards!
Magdalena Gut
Developer and Highcharts Support Engineer
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Highcharts Gantt”
Jump to
Highcharts - The JavaScript Charting Framework
Highcharts Usage
Highcharts Stock
Highcharts Maps
Highcharts Gantt
Highcharts Dashboards
Highcharts Cloud
Wrappers - The Official Highcharts Wrappers
Highcharts .NET
Highslide JS - The JavaScript Image and Media Viewer
Highslide JS Usage
Highslide Editor
Highslide FAQ
News