elm package cache
Packages
Reroutes
About
lamdera.com
georgesboris
/
elm-widgets-charts-alpha
/
1.0.0
NOTE: the latest version is
9.2.2
README
About
Versions
Source
Modules
W.Chart
Setup
globalStyles
:
Svg
msg
fromX
:
List
(
ChartAttribute
msg) -> { x
:
AxisConfigX
x } ->
ConfigX
msg x
fromXY
:
List
(
ChartAttribute
msg)
-> { x
:
AxisConfigX
x
, y
:
AxisConfigYZ
x y
}
->
ConfigXY
msg x y
fromXYZ
:
List
(
ChartAttribute
msg)
-> { x
:
AxisConfigX
x
, y
:
AxisConfigYZ
x y
, z
:
AxisConfigYZ
x z
}
->
ConfigXYZ
msg x y z
type
alias
ConfigX
msg x
=
Config
msg x () () { x
:
Point
x }
type
alias
ConfigXY
msg x y
=
Config
msg
x
y
()
{ x
:
Point
x
, y
:
List
(
Point
y)
}
type
alias
ConfigXYZ
msg x y z
=
Config
msg
x
y
z
{ x
:
Point
x
, y
:
List
(
Point
y)
, z
:
List
(
Point
z)
}
type
alias
Config
msg x y z point
=
Config
msg x y z point
Axis
xAxis
:
List
AxisAttribute
-> { data
:
List
x
, toLabel
:
x ->
String
}
->
AxisConfigX
x
axis
:
List
AxisAttribute
-> { label
:
String
, color
:
String
, toValue
:
x ->
Maybe
Float
}
->
AxisConfigYZ
x
String
axisList
:
List
AxisAttribute
-> { data
:
List
a
, toLabel
:
a ->
String
, toColor
:
a ->
String
, toValue
:
a -> x ->
Maybe
Float
}
->
AxisConfigYZ
x a
Axis Attributes
axisLabel
:
String
->
AxisAttribute
defaultValue
:
Float
->
AxisAttribute
format
:
(
Float
->
String
) ->
AxisAttribute
noAxisLine
:
AxisAttribute
noGridLines
:
AxisAttribute
safety
:
Float
->
AxisAttribute
stacked
:
AxisAttribute
distribution
:
AxisAttribute
ticks
:
Int
->
AxisAttribute
type
alias
AxisAttribute
=
Attr
AxisAttributes
Styles
width
:
Int
->
ChartAttribute
msg
ratio
:
Float
->
ChartAttribute
msg
padding
:
Int
->
ChartAttribute
msg
background
:
String
->
ChartAttribute
msg
htmlAttrs
:
List
(
Attribute
msg) ->
ChartAttribute
msg
type
alias
ChartAttribute
msg
=
Attr
(
Attributes
msg)
Widgets
view
:
List
(
Widget
msg x y z point) ->
Config
msg x y z point ->
Html
msg
type
alias
WidgetX
msg x y z a
=
Widget
msg x y z { a | x
:
Point
x }
type
alias
WidgetXY
msg x y z a
=
Widget
msg x y z { a | x
:
Point
x, y
:
List
(
Point
y) }
type
alias
WidgetXYZ
msg x y z a
=
Widget
msg
x
y
z
{ a | x
:
Point
x, y
:
List
(
Point
y), z
:
List
(
Point
z) }
type
alias
Widget
msg x y z point
=
Widget
msg x y z point
Interaction
withActive
:
Maybe
(
ChartPointData
point)
->
Config
msg x y z point
->
Config
msg x y z point
withHover
:
List
(
HoverAttribute
msg point)
->
Config
msg x y z point
->
Config
msg x y z point
noTooltip
:
HoverAttribute
msg point
groupByXY
:
HoverAttribute
msg point
onClick
:
(
ChartPointData
point -> msg) ->
HoverAttribute
msg point
onMouseEnter
:
(
ChartPointData
point -> msg) ->
HoverAttribute
msg point
onMouseLeave
:
(
ChartPointData
point -> msg) ->
HoverAttribute
msg point
type
alias
PointX
x
=
ChartPointData
{ x
:
Point
x }
type
alias
PointXY
x y
=
ChartPointData
{ x
:
Point
x
, y
:
List
(
Point
y)
}
type
alias
PointXYZ
x y z
=
ChartPointData
{ x
:
Point
x
, y
:
List
(
Point
y)
, z
:
List
(
Point
z)
}
Tmp
type
alias
Point
a
=
DataPoint
a
type
alias
RenderData
point
=
ChartPointData
point
type
alias
RenderDatum
=
RenderDatum
type
alias
PointData
point
=
ChartPointData
point
Debugging
debug
:
ChartAttribute
msg
README
About
41 versions
Source
Modules
W.Chart
W.Chart.Bar
W.Chart.Bubble
W.Chart.Line
W.Chart.Widget