Update sample files

This commit is contained in:
Evert Timberg 2015-09-20 19:25:17 -04:00
parent f4cdd20a38
commit 6ba0fc3e08
5 changed files with 50 additions and 7 deletions

View File

@ -58,11 +58,19 @@
responsive: true,
scales: {
xAxes: [{
display: true
display: true,
scaleLabel: {
show: true,
labelString: 'x axis'
}
}],
yAxes: [{
display: true,
type: 'logarithmic'
type: 'logarithmic',
scaleLabel: {
show: true,
labelString: 'y axis'
}
}]
}
}

View File

@ -73,10 +73,18 @@
tick: {
format: 'MM/DD/YYYY HH:mm',
// round: 'day'
},
scaleLabel: {
show: true,
labelString: 'Date'
}
}, ],
yAxes: [{
display: true
display: true,
scaleLabel: {
show: true,
labelString: 'value'
}
}]
},
elements: {

View File

@ -58,10 +58,18 @@
responsive: true,
scales: {
xAxes: [{
display: true
display: true,
scaleLabel: {
show: true,
labelString: 'Month'
}
}],
yAxes: [{
display: true
display: true,
scaleLabel: {
show: true,
labelString: 'Value'
}
}]
}
}

View File

@ -10,7 +10,7 @@
<body>
<div style="width:50%">
<div>
<canvas id="canvas" height="450" width="600"></canvas>
<canvas id="canvas" height="450" width="600" style="border: 1px solid red;"></canvas>
</div>
</div>
<script>
@ -145,7 +145,11 @@
return tick.toString() + "Hz";
}
return '';
}
},
},
scaleLabel: {
labelString: 'Frequency',
show: true,
}
}],
yAxes: [{
@ -154,6 +158,10 @@
userCallback: function(tick) {
return tick.toString() + "dB";
}
},
scaleLabel: {
labelString: 'Voltage',
show: true
}
}]
}

View File

@ -94,6 +94,17 @@
position: 'top',
gridLines: {
zeroLineColor: "rgba(0,255,0,1)"
},
scaleLabel: {
show: true,
labelString: 'x axis'
}
}],
yAxes: [{
position: 'right',
scaleLabel: {
show: true,
labelString: 'y axis'
}
}]
}