worktile / ngx-gantt

A modern and powerful gantt chart component for Angular

Home Page:http://gantt.ngnice.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Display only 1 year

Bykiev opened this issue · comments

Hi, is it possible to display only one year? I've tried to set start and end properties of viewOptions but it still shows 4 years

Unfortunately it's not described in the docs, but setting addAmount property of viewOptions to 0 solves the issue. You can find the default addAmount value of each view type along with addUnit

Please, restore the issue, it seems it's not working, it always shows starting from current year, but I neen only one

Finally, solved the by specifying start/end properties of app-gantt-flat component instead of viewoptions