JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.49k stars 47 forks source link

add scale date #678

Open AndreiKingsley opened 1 year ago

AndreiKingsley commented 1 year ago

add scale_x_date()/scale_y_date()

alshan commented 1 year ago

Why scale_x_datetime() is not sufficient?

AndreiKingsley commented 1 year ago

It also concerns https://github.com/JetBrains/lets-plot-kotlin/issues/129. For example, I have LocalDate data source. 1) I should cast it to LocalDateTime and then to Instant to to work with it in the lets-plot. 2) Side and layer tooltips don't recognise it as date and have a problem with default formatting:

image