Created
June 6, 2018 06:27
-
-
Save forki/e8879c7c9f97fbb5ca41b7bdb5b7ed40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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