Zoom in is not working based on last record found date #325
-
Hi @deejay-hub , Please view the attached screenshot where we set zoom based on last activity. But still records appear in one corner and we need to manually adjust scale . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Ho @Nithisha123 . Just want to confirm your expectation here. In the app builder. The properties for Historical Time Range and Future Time Range dictate the scale of Time Warp. This is the x axis start date and end date. So in your case the scale will be 20 years prior to today's date and stretch until 6 months from todays date. Zoom Based on will position where on the above scale the canvas is zoomed to. So if you only have one record 3 months from today that record will show all the way to the right in Time Warp with a big gap since your asked to plot 20 years worth of history. For Last Activity Time Warp should find the last record plotted and then use the Zoom Range setting - let's call it x - to say zoom from the last activity found and start x/2 days prior and x/2 days into the future. It looks like you have customized from the code base and not using the packaged component - but this is what I see.
![]() This asks for the x scale to be 10 years prior to today and 6 months into the future. This is regardless of any records to plot. ![]()
![]() This zooms using the last activity found (the Task) and then looks at the Zoom Range settings (which was 365) then asks to centre the task by starting to zoom 182 days prior to the Task and end 182 days into the future. Changing to First Activity does the same but for the first activity found and current date does the same using today's date. If working correctly then simply Zoom to 'Last Activity' should position the last record in the middle of the Time Warp Canvas. The zoom slider at the bottom will cover an area dictated by the Zoom Range number of days. Remember that it doesn't look like you are using the packaged version so there is a chance your code base is different to this one since you have changed a couple of things. We can only try and replicate the issue you're facing but there may be a chance someone in your team has modified the code base you are using and that it may be causing the issue you see So, in this code base, it seems to be working as designed but I suspect you are hoping it works differently? |
Beta Was this translation helpful? Give feedback.
-
@Nithisha123 is there any other help we can provide? |
Beta Was this translation helpful? Give feedback.
Ho @Nithisha123 . Just want to confirm your expectation here.
In the app builder. The properties for Historical Time Range and Future Time Range dictate the scale of Time Warp. This is the x axis start date and end date. So in your case the scale will be 20 years prior to today's date and stretch until 6 months from todays date.
Zoom Based on will position where on the above scale the canvas is zoomed to. So if you only have one record 3 months from today that record will show all the way to the right in Time Warp with a big gap since your asked to plot 20 years worth of history. For Last Activity Time Warp should find the last record plotted and then use the Zoom Range setting - let's ca…