Zoom function is not working

Hello!

http://snippet.dhtmlx.com/5/a8f35ffbe
I don’t know why the zoom function doesn’t work when I wrote the source code like the link above.
I don’t want to use extensions, I want to treat them as basic functions.
give me a information plz!

Thank you.

Hello,
When I click on the buttons, the width of the timeline cells is changed:
https://files.dhtmlx.com/30d/e05842eac5a3ad2ef3ce115fadf5f158/vokoscreen-2023-01-20_11-01-18.mp4

But I suspect that you want to decrease the width of the timeline cells, and it is not working as you expect. Right now, there is no way to set a fixed size of the timeline cells. The dev team will add that feature in the future, but I cannot give you any ETA.

Gantt resizes the timeline scales and cells depending on the container size and the displayed date range.
So there are only 2 ways of how to set the fixed size:

  1. Use the min_column_width property and set a wider visible date range.
    Here is an example:
    Screenshot by Lightshot
    DHTMLX Snippets
  2. Use the min_column_width property and set the fixed size for the Gantt container. Here is an example:
    Screenshot by Lightshot
    DHTMLX Snippets