Horizontal scroll with resources management and histogram

I have the Gantt chart working and we’re trying to use the resources management view but we have a small bug when DHTMLX tries to update the resource histogram.

The problem arises when a resource has no affectation on the visible cell range (the timetable has dates but it is out of range) after scrolling.
At this moment the “sizes” variable is undefined when the render capacity element is called and the error is displayed on the console: cannot read property ‘top’ of undefined

Is there any work in progress to solve this?

Hello Giovanni,
I suspect, you encountered a bug when the histogram timeline stops working when the gantt.config.resource_render_empty_cells parameter is disabled:
The dev team will fix that in the future, but I cannot give you any ETA.

As a workaround, you can turn that option on:

If you have a different use case, please add your configuration in the following snippet and make sure that the issue is reproduced there:
Then, click on the Share button and send me the link.
Or send me a ready demo with all the necessary Javascript and CSS files so that I can reproduce the issue locally.

1 Like

Hello Ramil,

The workaround solved my problem.

Thank you very much!

Hello Giovanni,
The dev team fixed the bug with the histogram view and the resource_render_empty_cells parameter. Now, the histogram view should work correctly even when that parameter is disabled:
You can check how it works in the following snippet: