Created
August 27, 2016 08:37
-
-
Save katogiso/e9e597984c31603f40c359969e73b2d0 to your computer and use it in GitHub Desktop.
line option structure
This file contains 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
{ | |
type: 'line', | |
data: { | |
labels: [ <string> ], | |
datasets: [ | |
{ | |
label: <string>, | |
data: [ <num> ], | |
borderColor: <string> , | |
backgroundColor: <string> | |
}, | |
{ | |
// as same as above "{}" | |
} | |
] | |
}, | |
options: { | |
responsive: <bool>, | |
legend: { | |
position: 'top' or 'bottom' | |
}, | |
title: { | |
display: <bool>, | |
text: <string> | |
}, | |
scales: { | |
yAxes: [ | |
{ | |
ticks: { | |
min: <num> | |
}, | |
scaleLabel: { | |
display: <bool> | |
labelString: <string> | |
} | |
} | |
], | |
xAxes: [ | |
// as same as yAxes | |
], | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment