Skip to content

start_date and end_date config not working when using scale in month #77

@lebesnec

Description

@lebesnec

I want to change the start and end date of my gantt:

gantt.config.start_date = new Date(2010, 1, 1);
gantt.config.end_date = new Date(2015, 1, 1);

it works fine if I only have a scale with unit 'year':

gantt.config.scales = [
  { unit: 'year', step: 1, format: '%Y' }
];

but as soon as I add a scale with 'month' the date are not set correctly:

gantt.config.scales = [
  { unit: 'year', step: 1, format: '%Y' },
  { unit: 'month', step: 1, format: '%M, %Y' }
];

See demo here: https://snippet.dhtmlx.com/5/733d91f5b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions