Skip to content

Instantly share code, notes, and snippets.

@katogiso
Created August 27, 2016 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save katogiso/e9e597984c31603f40c359969e73b2d0 to your computer and use it in GitHub Desktop.
Save katogiso/e9e597984c31603f40c359969e73b2d0 to your computer and use it in GitHub Desktop.
line option structure
{
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