question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GanttChart ProportionZoomStrategy problem

See original GitHub issue

Hello 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:

image

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: image

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:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Myge91commented, Nov 22, 2017

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

0reactions
Zionchencommented, Nov 22, 2017

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found