Our state of the art Gantt chart


Post by additout »

Good morning Bryntum team,

Is there any way to add an initial margin?

Captura de Pantalla 2022-10-21 a las 9.12.10.png
Captura de Pantalla 2022-10-21 a las 9.12.10.png (29.08 KiB) Viewed 426 times

Because we start with 'weekAndDay' zoom it cuts the projectEnd flag and we'd love to see it.

Regards


Post by alex.l »

All the best,
Alex


Post by additout »

Hi Alex, thanks for your quick answer,

Tried to set both start and end date and I got the same result. In other projects where endDate is much further than startDate I can't even reach it with the scroll bar.

Hope we can find a solution,

Regards


Post by alex.l »

I don't see any problems with that here https://bryntum.com/examples/gantt/advanced/
So it might be something else.
Please share you code here, we need to see your full configuration. Best of all if you attach a runnable test case.

All the best,
Alex


Post by additout »

Hello Alex,

Here's the demo:

https://drive.google.com/file/d/1oyqYS4Wn9ZATOMopBUXpEohkRx5bpqpE/view?usp=sharing

Follow this:

npm i 
npm run dev

And you should be able to run it.

Let me know If you can see the project end flag just using the X scrollbar,

Regards


Post by alex.l »

Hi additout,

I just tried to apply startDate/endDate as I suggested and it works like a charm!
I guess you missed that both: Gantt's timeline and ProjectModel do have start/end dates. I see you used for project, but didn't set timeline.

Try add this into your GanttConfig.js

export const ganttConfig = {
  dependencyIdField: "wbsCode",

  //   these 2 lines
  startDate : "2021-12-14",
  endDate   : "2022-10-10",

  project: {
    transport: {

All the best,
Alex


Post by additout »

It works!

Thank you Alex :)


Post by additout »

Hello Alex,

Is there any way to be able to scroll to the left X weeks on load? (I made this example zooming out, scrolling, and zooming in again)

Captura de Pantalla 2022-11-17 a las 16.23.39.png
Captura de Pantalla 2022-11-17 a las 16.23.39.png (22.05 KiB) Viewed 331 times

We tried to do the same way as we did with the project end, but it didn't work for us. Is there any way to do it?

Thank you in advance! :)


Post by alex.l »

Hi additout,

Please create a new thread for your question. Our forums rule is one thread - one question.
Thank you!

All the best,
Alex


Post Reply