2.6.3 Resolution recommendation

How the system decides the best time resolution

  1. Measure the total time range

  2. Pick a base unit

  1. Determine how many points can fit on the chart
  1. Check different step sizes
  1. Fallback if needed

Example

Result: Time unit = hours, Step = 1

In short

It converts your chosen date range into milliseconds, calculates how many points can fit on the chart based on a simple 3-pixel-per-point rule, and then selects the most readable time unit and step size automatically.