Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way make the width change of a gant chart lanes based on the time given. #23

Open
Akayeshmantha opened this issue May 28, 2019 · 0 comments

Comments

@Akayeshmantha
Copy link

Hi when I draw the gannt chart with the time that I have It's basically creating a chart like below

Screenshot from 2019-05-28 10-58-32

but I want the lanes of it to be more wider.And to be change the width based on the least starting time and most ending time.Any idea this is my configuration

   this.chart = d3timelines.timelines()
        .stack() // toggles graph stacking
        .tickFormat({
            format: d3timeformat.timeFormat("%Y-%m-%d, %H:%M:%S")
        })
        .showTimeAxisTick()
        .margin({left:70, right:30, top:0, bottom:0})
       ;
        var idDiv = ".cls"+data.id;
        d3.select(idDiv).append('svg').attr('width', 1000)
        .datum(this.data).call(this.chart);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant