Skip to content

A library for producing nice intervals for charts.

License

Notifications You must be signed in to change notification settings

mthiems/intervals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intervals

This is a fork of terezka/intervals to fix dependencies. Verion 1.0.0 of this forked package corresponds to terezka/intervals verion 2.0.1.

A library for producing nice intervals for charts. Useful in combination with terezka/charts.

$ elm install mthiems/intervals
import Intervals


integerTicks : List Int
integerTicks =
  Intervals.ints (Intervals.around 10) (Intervals.Range 0 100)
  -- [ 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 ]


floatTicks : List Int
floatTicks =
  Intervals.floats (Intervals.around 5) (Intervals.Range -5 10)
  -- [ -5, -2.5, 0, 2.5, 5, 7.5, 10 ]

About

A library for producing nice intervals for charts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elm 100.0%