GanttChart ProportionZoomStrategy problem
See original GitHub issueHello there,
I have a problem with the ProportionZoomStrategy in the GanttChart.
This configuration works as expected:
return new sap.gantt.axistime.ProportionZoomStrategy({
locale: new sap.ui.core.Locale("de_DE"),
timeLineOptions: this._ZOOM_STRATEGY,
visibleHorizon: new sap.gantt.config.TimeHorizon({
startTime: "20171130000000",
endTime: "20180129000000"
}),
totalHorizon: new sap.gantt.config.TimeHorizon({
startTime: "20171130000000",
endTime: "20181101235959"
})
});
Result:
This not:
This configuration not works as expected:
return new sap.gantt.axistime.ProportionZoomStrategy({
locale: new sap.ui.core.Locale("de_DE"),
timeLineOptions: this._ZOOM_STRATEGY,
visibleHorizon: new sap.gantt.config.TimeHorizon({
startTime: "20181130000000",
endTime: "20190129000000"
}),
totalHorizon: new sap.gantt.config.TimeHorizon({
startTime: "20181130000000",
endTime: "20191101235959"
})
});
Result:
The only different between the above configurations is the year. I expected that the visible horizon in the second configuration is from 30.11.2018-29.01.2019. Here is an example:
https://jsbin.com/bicehunofa/1/edit?html,output
Regards
Jan
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Gantt Chart zoom levels not working correctly - SAP Community
When the Gantt chart loads I am unable to zoom out once I've zoomed in. On top of this issue, the horizontal scroll...
Read more >New Gantt chart zoom and fit to size are terrible - Zoho Cares
So, all the tasks are shown completely in this chart view and Zoom In or Out is not required in this case. If...
Read more >Project Planning and Scheduling with a Gantt Chart. - Ganttic
Are you planning projects and scheduling with a Gantt chart? Learn why Gantt charts are perfect for managing resources and project portfolio!
Read more >Test Gantt Chart Axis Time Zoom Strategy
Proportion Zoom Strategy · Full Screen Zoom Strategy · Stepwise Zoom Strategy (defalut select) · Stepwise Zoom Strategy(custom with select) · Stepwise Zoom...
Read more >Structure.Gantt Concepts Explained - ALM Works Help Center
While the WBS contains your hierarchy of issues, the Gantt chart itself contains Tasks, Groups, Milestones and Dependencies, positioned on a timeline.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @Zionchen ,
it looks like this solved my problem. Thank you very much!
I guess I will not the only person who will run into this mistake. Could you raise an exception when the order is wrong and/or write that into the documentation?
Regards,
jan
Hello @Myge91 ,
Please set totalHorizon first, and then set visibleHorizon. Just because the visible range have a dependency on total range.
Please see https://jsbin.com/nerasogulo/edit?html,output
Best Regards, Zion Chen