1.7.7 Resolution recommendation

How the system decides the best time resolution

Measure the total time range

Pick a base unit

Determine how many points can fit on the chart

Check different step sizes

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.