Kotlin / Kotlin/kandy

Incorrect implementation of `scaleXTime()`/`scaleYTime()` "time delta" scales

Open
#384 7 comments 0 reactions 0 assignees View on GitHub
enhancement lets-plot
Dominant language
Kotlin
Stars
744
Forks
27
Avg merge
4d 1h
Merged PRs (30d)
1

Description

Let's plot allows an axis to be scaled as a continuous time delta or "duration".
I currently cannot find a way to easily plot a `Duration` like a number of hours/days/minutes etc.

For example:
https://nbviewer.org/github/JetBrains/lets-plot-kotlin/blob/master/docs/examples/jupyter-notebooks/scale_time.ipynb

from: https://github.com/JetBrains/lets-plot-kotlin/blob/master/plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale/DateTime.kt

Contributor guide

Open the contributing guide

Research direction

Start with plot-api/src/commonMain/kotlin/org/jetbrains/letsPlot/scale/DateTime.kt and compare scaleXTime()/scaleYTime() with the scale_time.ipynb example linked in the issue. Determine how duration values are currently handled and verify the corrected behavior by plotting durations expressed as hours, days, or minutes.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.