mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-18 19:54:17 +01:00
Support customization of gantt diagram xAxis format using diagram code
This commit is contained in:
@@ -244,7 +244,7 @@ export const draw = function (text, id) {
|
||||
function makeGrid (theSidePad, theTopPad, w, h) {
|
||||
let xAxis = d3.axisBottom(timeScale)
|
||||
.tickSize(-h + theTopPad + conf.gridLineStartPadding)
|
||||
.tickFormat(d3.timeFormat(conf.axisFormat || '%Y-%m-%d'))
|
||||
.tickFormat(d3.timeFormat(parser.yy.getAxisFormat() || conf.axisFormat || '%Y-%m-%d'))
|
||||
|
||||
svg.append('g')
|
||||
.attr('class', 'grid')
|
||||
|
||||
Reference in New Issue
Block a user