question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gantt x-axis display

See original GitHub issue

Hi,

First off many thanks for such useful tool.

I was using the online live editor and I encountered a weird issue. The gantt I was trying to create was as shown below:

gantt 
dateFormat DD/MM/YY
title PostNord Deployment Plan

Section Common
Task 1 :done,10/03/17, 13/03/17
Task 2 :done, 02/12/16, 13/03/17
Task 3 :done, 02/12/16, 13/12/16
Section Section_1
Design :02/12/16, 22/02/17
Design 2 :crit, 02/12/16, 06/03/17
Design 3 :crit, 02/12/16, 18/03/17

Order wave 1 :20/03/17, 14/04/17
Order wave 2 :crit, 27/03/17, 21/04/17
Order wave 3 :crit, 03/04/17, 28/04/17

Deployment Wave 1 :17/04/17, 23/06/17
Deployment Wave 2 :24/04/17, 09/06/17
Deployment Wave 3 :crit,01/05/17, 07/07/17

Section Section_2
Design :crit, 23/02/17, 15/03/17
Order and Deliver : 20/03/17, 28/04/17
Deployment :01/05/17, 16/08/17

When I use this the Week changes to year for first tick of x-axis (Jan) and then changes to mm-yy for March and April, then changes back to W-17 for May and then again to mm-yy for rest of the months.

I also found that changing the duration of last task to June or July changes everything back to W-nn format. I am also trying to find out a way to change the resulting image to show whole of x-axis as just mmm (Jan, Feb, Mar etc.) and reading some of the previous issues but haven’t really understood the axisFormat thing that people have referred to and would really appreciate some guidance on it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
knsvcommented, Apr 13, 2017

That is quite nice! An integration with vis.js for would open new possibilities for diagrams. Good idea!

Get Outlook for iOS

On Wed, Apr 12, 2017 at 3:53 PM +0200, “pubmania” notifications@github.com wrote:

@knsv

actually while I was not getting anywhere with my problem, I came across timeline from vis js library which appears to be doing the same thing and then an R-markdown package based on this js library called timevis which can help create a timeline fairly easily. I was able to create some really nice visuals of gantt using variations of text below on rstudio: {r echo = FALSE} library(timevis)

dataGroups <- read.csv(header = TRUE, text = " id,content,group,start,end,style 1,Task 1,Common,2016-12-02,2017-03-17,NA 2,Task 2,Common,2016-12-02,2017-02-17,background-color: red;color: white 3,Task 3,Common,2016-12-02,2017-03-17,NA 4,Task 4,Section 1,2016-12-02,2017-02-17,background-color: red,NA 5,Task 5,Section 1,2017-03-17,2017-04-07,NA,NA 6,Task 6,Section 2,2017-03-17,2017-04-27,NA,NA 7,Task 7,Section 2,2017-04-07,2017-04-27,NA,NA 8,Task 8,Section 2,2017-05-07,2017-05-17,background-color: red,NA 9,Task 9,Section 2,2017-06-07,2017-06-20,NA,NA 10,Task 10,Section 3,2017-07-07,2017-07-31,background-color: red,NA ")

groups <- read.delim(header = TRUE, sep = “:”, text = " id: content Common:Common Section 1:Section 1 Section 2:Section 2 Section 3:Section 3 ")

timevis( dataGroups, groups, showZoom = TRUE, zoomFactor = 1, fit = TRUE )

Now as it is all being done using javascript library much like mermaid does using phantomjs, I was wondering if someone can look into creating the solution / fork of timevis into mermaid but using vis.js to create the gantt.

My apologies in advance if this is a very naive expectation or makes no sense but I would much rather be able to use mermaid on atom than open R-Studio.

Thanks again!!!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xAxis | gantt API Reference - Highcharts API
The axis labels show the number or category for each tick. Since v8.0.0: Labels are animated in categorized x-axis with updating data if...
Read more >
Highcharts gantt - show multiple xAxis rows, one for year and ...
My goal would be, to have two rows on the xAxis, the first is a year label, the second is the month label....
Read more >
Highcharts gantt - show multiple xAxis rows, one for year and ...
Coding example for the question Highcharts gantt - show multiple xAxis rows, one for year and one for month-Highcharts.
Read more >
Gantt Chart - MicroStrategy
A Gantt chart is essentially a horizontal bar chart. Attributes are displayed along the X-axis and metrics are displayed along the Y-axis. The...
Read more >
How to display X-Axis labels for each day in Gantt Chart
DevExpress Support Team: CLONED FROM T405978: Gantt Visual Appearance Issues] Hello DevEx Team! My task is to create a Gantt-Chart. It is b....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found