adius/vectual/6.0.0

Renamed to ad-si/Vectual. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as adius/vectual still install under that name. 3 versions of 7 come from the new location (see their notes).

Vectual.Types

All types that are used in Vectual

= Left
| Center
| Right
type alias LineChartConfig =
BaseConfigAnd
{ labelAngle : Radian
, yStartAtZero : Bool
, alignBars : Alignment
, showAnimations : Bool
}
type alias BarChartConfig =
BaseConfigAnd
{ labelAngle : Radian
, yStartAtZero : Bool
, alignBars : Alignment
}
type alias TagCloudConfig =
BaseConfigAnd {}
type alias BaseConfigAnd extraFields =
{ extraFields
| title : String
, inline : Bool
, width : Int
, height : Int
, borderRadius : ( Int, Int )
, xLabelFormatter : Posix -> String
}
type Chart
= LineChart LineChartConfig Data
| AreaChart LineChartConfig Data
| BarChart BarChartConfig Data
| HorizontalBarChart BarChartConfig Data
| BarChartStacked BarChartConfig Datas
| PieChart PieChartConfig Data
| TagCloud TagCloudConfig Data
type Data
= TimeData (List TimeRecord)
| KeyData (List KeyRecord)
| Values (List Float)
| InvalidData
type alias Datas =
List Data
type alias Entries =
List Entry
type alias Entry =
{ label : String
, value : Float
, offset : Float
}
type alias Key =
String
type alias KeyRecord =
{ key : Key
, value : Float
, offset : Float
}
type alias MetaData units coordinates =
{ graphWidth : Int
, graphHeight : Int
, coordSysWidth : Int
, coordSysHeight : Int
, translation : Vector2d units coordinates
, numberOfEntries : Int
, yMinimum : Float
, yMaximum : Float
, yRange : Float
}
type alias PieChartConfig =
BaseConfigAnd
{ radius : Int
, showAnimations : Bool
, yStartAtZero : Bool
}
type alias Radian =
Float
type alias TimeRecord =
{ utc : Posix
, value : Float
, offset : Float
}
type Value
= Int
| Float