You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The neondatabase/neon repository has a long time between the first and the second datapoint (>~ 1 year) so all later datapoints all use that same time scale for their tooltips (N years), but later datapoints only have a small gap (2 days for 900 stars, if you look at the unaligned timeline).
Example: https://star-history.com/#neondatabase/neon&Timeline
The
neondatabase/neon
repository has a long time between the first and the second datapoint (>~ 1 year) so all later datapoints all use that same time scale for their tooltips (N years), but later datapoints only have a small gap (2 days for 900 stars, if you look at the unaligned timeline).I think the issue originates from https://github.com/bytebase/star-history/blob/49f1f439e2dbfcc963901415cb96b0efd938cfa4/packages/xy-chart/index.ts#L325-L336 where the chart is locked-in at the scale of the first datapoint, which doesn't always work well. A better scale might be
Math.min(firstDataPoint, lastDataPoint / nDataPoints)
, orMath.min(...dataPointDeltas)
The text was updated successfully, but these errors were encountered: