Guys, is it possible to custom scales as below?
Need a marker as SLA bar.
-2.5 h |, -2hr | -1.5hr | -1hr | -0.5hr | 0 | 0.5hr | 1hr | 1.5hr | 2hr | 2.5hr
Guys, is it possible to custom scales as below?
Need a marker as SLA bar.
-2.5 h |, -2hr | -1.5hr | -1hr | -0.5hr | 0 | 0.5hr | 1hr | 1.5hr | 2hr | 2.5hr
Hello Balaji,
There is no built-in way to do that. But it can be implemented with the Gantt API and Javascript.
You can return any text or HTML elements in the scale cells. To do that, you need to use the format function of the scale configuration:
https://docs.dhtmlx.com/gantt/desktop__configuring_time_scale.html#dateformat
To add styles to the scale cells, you need to use the css property:
https://docs.dhtmlx.com/gantt/desktop__configuring_time_scale.html#styling
Here is an example of how it can be implemented: