If you only want to hide the task bar in the timeline and keep the task row, you need to add the hide_bar parameter when loading tasks: https://snippet.dhtmlx.com/anaaw69z
I cannot set duration in an hour-in-hour scale in my code so how can I do this?
It is not clear to me what you need. When I use the code you shared, I see that the tasks successfully start at the specified dates: https://snippet.dhtmlx.com/i83qz9c8