ScaleLinear & ScaleTime Timelines differences | fiorins | Observable
Author
fiorins
@fiorins
Just a CS lover
Comments (5)
fiorins
Aug 24, 2022
I split formateDate into formateDateAxis and formateDateTooltip
Reply
fiorins
Aug 24, 2022
The domain here is based on Number type inputs. The range is the effective length of the x axis. The double tilde transforms String into Number.
Reply
fiorins
Aug 24, 2022
The domain here is based on Date type inputs. The range is the effective length of the x axis.
Reply
fiorins
Aug 24, 2022
Here I have to transform milliseconds to date and then to string, a little bit tricky
Reply
fiorins
Sep 11, 2022
I have to convert with Date.parse the formatDateTooltip() argument cause recognizes it as Number instead of a Date object
Reply
Add comment
Subscribe to notifications
© 2026 Observable, Inc.
Terms of service
Privacy policy
Product
About
Pricing
Documentation
Release notes
Contact us
Open source
Notebook Kit
Plot
D3
Community
Public
Forum
Bluesky
YouTube
X
Observable
Sign up
fiorins
0
Reply
Reply
Reply
Reply
Reply
Add comment
Subscribe to notifications
0
ScaleLinear & ScaleTime Timelines differences | fiorins | Observable