score:0
you have to set datetimelabelformats.xaxis.list
as a list of options since both the short format (w1) or long format (week 1) maybe used depending on the zoom level.
you also have to defined it twice (for the 2 rows of the headers) by settings xaxis
as an array where the first element is the configuration for the bottom row and the second for the top row:
this.gantt = highchartsgantt.ganttchart('gantt', {
// ...
xaxis: [{
// ...
datetimelabelformats: {
week: {
list: [ 'semaine %w', 's%w' ]
} as highcharts.axisdatetimelabelformatsoptionsobject
}
}, {
datetimelabelformats: {
week: {
list: [ 'semaine %w', 's%w' ]
} as highcharts.axisdatetimelabelformatsoptionsobject
}
}]
// ...
});
and if you use typescript you'll have to cast the week
property to highcharts.axisdatetimelabelformatsoptionsobject
(i didn't find any proper typings for these specific gantt options).
references : https://api.highcharts.com/gantt/xaxis.datetimelabelformats https://www.highcharts.com/forum/viewtopic.php?t=43936#p155436
score:1
you can change the term "week" in datetimelabelformats
:
xaxis: [{
...
}, {
datetimelabelformats: {
week: 'woche %w'
}
}]
live demo: https://jsfiddle.net/blacklabel/vw7hjg64/
api reference: https://api.highcharts.com/gantt/xaxis.datetimelabelformats.week
Source: stackoverflow.com
Related Query
- How can I replace the term "Week" in highcharts Gantt Chart Timeline?
- How can I make milestone lines with a GANTT chart using the highcharts library?
- How can I format the Highcharts gantt chart to be a dashed line instead of a solid line?
- How can I display crosshair labels on top of the chart with Highcharts
- How can i load external json data in highcharts to show the bar chart
- How can I reverse the series order of a pyramid chart in Highcharts
- How can I get HighCharts column chart to scale the yAxis to not have so much whitespace?
- How can I change highcharts events after the chart has been initialized
- Highcharts Chart Bar - How can I display in the chart, only one column from my HTML table?
- How I can stick together the lines on the Highcharts timeline chart?
- how can I use rangeselector and navigation in highcharts in the given code
- How can I contain a label on a Highcharts area chart to the series' area
- The RTL language (Arabic) is not working with HighCharts pie chart correctly, how can I fix this?
- How can I maintain the Highcharts halo effect on pie chart after click and mouseOut?
- How can I get access to a Highcharts chart through a DOM-Container?
- HighCharts - How can I turn off the points?
- How can I change the colors of my highcharts piechart?
- How to display the value instead of percentage in a pie chart using jquery Highcharts
- How can i hide all the Series in highcharts at a time
- How can I remove the white border from HighCharts pie chart?
- How do you increase the performance of highcharts chart creation and rendering
- Highstock: When legend under the chart has many items, the chart height is small. How can I fix the height?
- Highcharts Bar Chart - How to set the minimum bar width/length
- Highcharts - How can I remove starting and ending padding from area chart
- How can I delete all of the points from a highcharts series
- Highcharts, How can I change the datalable distance in a pie chart based on the value
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How can i keep the color the same in highcharts
- Highcharts Bubble Chart - How to move an individual point's data label (dataLabel) to the front/top
- How To Dynamically Truncate The Y-Axis Title On Chart Resize/Reflow In Highcharts
More Query from same tag
- Would it be possible to make sure that when a cursor hovers over a certain area, it would not change to "hand"?
- highcharts: A chart with 1 or 0 in Y axis
- Getting extra series data from hash to show up in tooltip in highstock
- Highcarts function not being recognized
- How to avoid overlapping of dataLabels in highchart pie chart?
- Assign a color to every value in Javascript using HighCharts
- How to customize tooltip in Highchart?
- How to end crosshair line where x meets y on line chart in high charts
- Highcharts loaded via ajax, issue to dynamically create yAxis
- HighCharts Orgcharts make scroll able container
- How to get rangeSelector to work with HighCharts
- I need to show multiple axis, which is having constant values in the x-axis and dynamic values in y-axises
- HighMaps: Using multi-valued mapData identifier in joinBy option
- In Highcharts, in 3D mode, is it posible to make right hand axis not pop out?
- Load highcharts dynamically with dynamic config option
- Add additional data to point using DotNet.Highcharts
- Highchart World map with pie
- Highcharts selection, yaxis is undefined
- In polar chart, connect each series on base with an individual line
- Display multiple time series with rCharts hPlot
- Angularjs - highchairs in directive
- Set highcharts datalabel as dropdown list
- Highstock navigator add drag-end event
- stockChart is not defined(…)
- Highcharts v7.1.2 width scaling issue when using css transform scale
- Bar chart labels
- Highcharts javascript
- How do I reshape my existing JSON to fit Highcharts
- Highcharts/HighcharteR: Stacked Column Bars Get Skinny After 50+ Series in R
- Create Highchart (Column chart) and read data from external json file