elm package cache
Packages
Reroutes
About
lamdera.com
terezka
/
charts
/
6.3.0
NOTE: the latest version is
20.0.1
README
About
Versions
Source
Modules
Chart
Make a chart! Documentation is still unfinished!
Elements
chart
:
List
(
Container
msg ->
Container
msg)
->
List
(
Element
msg)
->
Html
msg
type
Element
msg
scatter
:
(data ->
Float
)
-> (data ->
Float
)
->
List
(
Scatter
data msg ->
Scatter
data msg)
->
List
data
->
Element
msg
linear
:
(data ->
Float
)
-> (data ->
Float
)
->
List
(
Interpolation
data msg ->
Interpolation
data msg)
->
List
data
->
Element
msg
monotone
:
(data ->
Float
)
-> (data ->
Float
)
->
List
(
Interpolation
data msg ->
Interpolation
data msg)
->
List
data
->
Element
msg
type
alias
Metric
data
=
{ color
:
String
, value
:
data ->
Float
}
bars
:
List
(
Metric
data)
->
List
(
Bars
msg ->
Bars
msg)
->
List
data
->
Element
msg
histogram
:
(data ->
Float
)
->
List
(
Metric
data)
->
List
(
Histogram
msg ->
Histogram
msg)
->
List
data
->
Element
msg
Work with bounds
type
alias
Bounds
=
{ min
:
Float
, max
:
Float
}
fromData
:
List
(data ->
Float
) ->
List
data ->
Bounds
startMin
:
Float
->
Bounds
->
Bounds
startMax
:
Float
->
Bounds
->
Bounds
endMin
:
Float
->
Bounds
->
Bounds
endMax
:
Float
->
Bounds
->
Bounds
startPad
:
Float
->
Bounds
->
Bounds
endPad
:
Float
->
Bounds
->
Bounds
zero
:
Bounds
->
Float
middle
:
Bounds
->
Float
Axis
xAxis
:
List
(
Axis
msg ->
Axis
msg) ->
Element
msg
yAxis
:
List
(
Axis
msg ->
Axis
msg) ->
Element
msg
xTicks
:
List
(
Tick
msg ->
Tick
msg)
-> (
Bounds
->
List
{ a | value
:
Float
})
->
Element
msg
yTicks
:
List
(
Tick
msg ->
Tick
msg)
-> (
Bounds
->
List
{ a | value
:
Float
})
->
Element
msg
xLabels
:
List
(
Label
msg ->
Label
msg)
-> (
Bounds
->
List
{ a | value
:
Float
, label
:
String
})
->
Element
msg
yLabels
:
List
(
Label
msg ->
Label
msg)
-> (
Bounds
->
List
{ a | value
:
Float
, label
:
String
})
->
Element
msg
grid
:
List
(
Grid
msg ->
Grid
msg)
-> (
Bounds
->
List
{ a | value
:
Float
})
-> (
Bounds
->
List
{ a | value
:
Float
})
->
Element
msg
Generate Acis values
ints
:
Int
-> (
Int
->
String
)
->
Bounds
->
List
{ value
:
Float
, label
:
String
}
floats
:
Int
-> (
Float
->
String
)
->
Bounds
->
List
{ value
:
Float
, label
:
String
}
times
:
Zone
->
Int
-> (
Time
->
String
)
->
Bounds
->
List
{ value
:
Float
, label
:
String
}
Events
type
alias
Event
msg
=
{ name
:
String
, msg
:
Plane
->
Point
-> msg
}
event
:
String
-> (
Plane
->
Point
-> msg) ->
Event
msg
getNearest
:
(
Maybe
data -> msg)
-> (data ->
Float
)
->
List
(data ->
Float
)
->
List
data
->
Plane
->
Point
-> msg
getNearestX
:
(
List
data -> msg)
-> (data ->
Float
)
->
List
(data ->
Float
)
->
List
data
->
Plane
->
Point
-> msg
getWithin
:
(
Maybe
data -> msg)
->
Float
-> (data ->
Float
)
->
List
(data ->
Float
)
->
List
data
->
Plane
->
Point
-> msg
getWithinX
:
(
List
data -> msg)
->
Float
-> (data ->
Float
)
->
List
(data ->
Float
)
->
List
data
->
Plane
->
Point
-> msg
tooltip
:
(
Bounds
->
Float
)
-> (
Bounds
->
Float
)
->
List
(
Attribute
msg)
->
List
(
Html
msg)
->
Element
msg
Attributes
width
:
Float
-> { a | width
:
Float
} -> { a | width
:
Float
}
height
:
Float
-> { a | height
:
Float
} -> { a | height
:
Float
}
marginTop
:
Float
-> { a | marginTop
:
Float
} -> { a | marginTop
:
Float
}
marginBottom
:
Float
-> { a | marginBottom
:
Float
}
-> { a | marginBottom
:
Float
}
marginLeft
:
Float
-> { a | marginLeft
:
Float
} -> { a | marginLeft
:
Float
}
marginRight
:
Float
-> { a | marginRight
:
Float
} -> { a | marginRight
:
Float
}
responsive
:
{ a | responsive
:
Bool
} -> { a | responsive
:
Bool
}
id
:
String
-> { a | id
:
String
} -> { a | id
:
String
}
range
:
Bounds
-> { a | range
:
Bounds
} -> { a | range
:
Bounds
}
domain
:
Bounds
-> { a | domain
:
Bounds
} -> { a | domain
:
Bounds
}
events
:
List
(
Event
msg)
-> { a | events
:
List
(
Event
msg) }
-> { a | events
:
List
(
Event
msg) }
htmlAttrs
:
List
(
Attribute
msg)
-> { a | htmlAttrs
:
List
(
Attribute
msg) }
-> { a | htmlAttrs
:
List
(
Attribute
msg) }
start
:
(
Bounds
->
Float
)
-> { a | start
:
Bounds
->
Float
}
-> { a | start
:
Bounds
->
Float
}
end
:
(
Bounds
->
Float
)
-> { a | end
:
Bounds
->
Float
}
-> { a | end
:
Bounds
->
Float
}
pinned
:
(
Bounds
->
Float
)
-> { a | pinned
:
Bounds
->
Float
}
-> { a | pinned
:
Bounds
->
Float
}
color
:
String
-> { a | color
:
String
} -> { a | color
:
String
}
margin
:
Float
-> { a | margin
:
Float
} -> { a | margin
:
Float
}
dot
:
(data ->
Dot
msg)
-> { a | dot
:
Tracked
(data ->
Dot
msg) }
-> { a | dot
:
Tracked
(data ->
Dot
msg) }
dotted
:
{ a | dotted
:
Bool
} -> { a | dotted
:
Bool
}
area
:
String
-> { a | area
:
Maybe
String
}
-> { a | area
:
Maybe
String
}
noArrow
:
{ a | arrow
:
Bool
} -> { a | arrow
:
Bool
}
filterX
:
(
Bounds
->
List
Float
)
-> { a | filterX
:
Bounds
->
List
Float
}
-> { a | filterX
:
Bounds
->
List
Float
}
filterY
:
(
Bounds
->
List
Float
)
-> { a | filterY
:
Bounds
->
List
Float
}
-> { a | filterY
:
Bounds
->
List
Float
}
attrs
:
List
(
Attribute
msg)
-> { a | attrs
:
List
(
Attribute
msg) }
-> { a | attrs
:
List
(
Attribute
msg) }
Interop
svgAt
:
(
Bounds
->
Float
)
-> (
Bounds
->
Float
)
->
Float
->
Float
->
List
(
Svg
msg)
->
Element
msg
htmlAt
:
(
Bounds
->
Float
)
-> (
Bounds
->
Float
)
->
Float
->
Float
->
List
(
Attribute
msg)
->
List
(
Html
msg)
->
Element
msg
svg
:
(
Plane
->
Svg
msg) ->
Element
msg
html
:
(
Plane
->
Html
msg) ->
Element
msg
none
:
Element
msg
Colors
blue
:
String
orange
:
String
pink
:
String
green
:
String
red
:
String
README
About
42 versions
Source
Modules
Svg.Coordinates
Svg.Tiles
Svg.Chart
Chart