Skip to content

Instantly share code, notes, and snippets.

@forki
Created June 6, 2018 06:27
Show Gist options
  • Save forki/e8879c7c9f97fbb5ca41b7bdb5b7ed40 to your computer and use it in GitHub Desktop.
Save forki/e8879c7c9f97fbb5ca41b7bdb5b7ed40 to your computer and use it in GitHub Desktop.
let dataSales = {
labels = [| "Heutiger Tagesumsatz"; "30-Tage-Durchschnitt" |]
datasets =
[|
{ label = "Sales"
fill = false
backgroundColor = "rgb(214, 138, 16)"
borderColor = "rgb(214, 138, 16)"
borderCapStyle = "butt"
borderDash = [||]
borderWidth = 0
data = [| 15.23; 50.44 |] }
|]
}
// ...
ChartComponent.bar [
BarChartProperties.Options
{ responsive = true
maintainAspectRatio = false
scales =
{ yAxes =
[| { ticks = { beginAtZero = true } } |]
}
legend =
{ display = false
position = "right"
}
}
BarChartProperties.Data dataSales ][]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment