Our state of the art Gantt chart


Post by lanpeng »

Hi bryntum team
When I insert data into Gantt, an error is reported. Can you check the data for me.

Attachments
data.json
(32.5 KiB) Downloaded 22 times
屏幕截图 2022-09-20 143900.png
屏幕截图 2022-09-20 143900.png (95.27 KiB) Viewed 253 times

Post by alex.l »

I used this example https://bryntum.com/examples/gantt/basic/
and set data like this:

gantt.project.inlineData = yourDataObject

The result I've got you can see on the picture in attachments. Console is clear.
Looks like we need more context to reproduce this.
Btw, please use tasksData instead of eventsData. That's correct format for Gantt.
Guide: https://bryntum.com/docs/gantt/guide/Gantt/data/project_data

Attachments
Screenshot 2022-09-20 at 11.06.55.png
Screenshot 2022-09-20 at 11.06.55.png (53.7 KiB) Viewed 249 times

All the best,
Alex


Post by lanpeng »

thanks for your reply, alex. My colleague gave me a data yesterday.But then he found out that this was not the complete data .Please check the new data for me

Attachments
1.json
(925.42 KiB) Downloaded 19 times

Post by alex.l »

The problem in

"durationUnit": null,

It cannot be null. Better to omit fields than return null because it overrides default value.
https://bryntum.com/docs/gantt/api/Gantt/model/TaskModel#field-durationUnit

All the best,
Alex


Post by lanpeng »

thank you very much,alex.


Post Reply