How does datehistogram auto interval value changes on changing the timefilter from top right in Charts

Which file in kibana does changes the auto interval to 12 hours or 3 hours when changing the timefilter accordingly.

That would be src/ui/public/time_buckets/calc_auto_interval.ts

you are right but how the code control flows when we change the timefilter value, how the control goes to calc_auto_interval, how it changes the auto interval before fetching the details,just need to know this much flow.
thanks if anyone can help

Hi @gargPrateek

This is the flow that happens when changing the time filter

  1. Call the onFilterSelect() on the directive
  1. Set the time on theTimeFilter instance
  1. The Angular globalState.time is updated

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.