timbod7 / haskell-chart

A 2D charting library for haskell
429 stars 85 forks source link

Proposal: add scaled TimeValue axes #213

Open mpilgrem opened 5 years ago

mpilgrem commented 5 years ago

Module Graphics.Rendering.Chart.Axis.Floating exports scaledAxis but there is no corresponding function exported by module Graphics.Rendering.Chart.Axis.Time.

I found myself needing to specify bounds when creating area spots charts, including charts with TimeValue axes. I have done that in a fork, with additions to the API. Would that be of interest? If yes, I'll make a pull request.

I export scaledTimeValueAxis and autoScaledTimeValueAxis, each like their corresponding unscaled version but with an additional argument of type (t, t).