| Name | Size | Mode | Actions |
|---|---|---|---|
| lib/ | - | 0755 | rm |
| area-as-line.html | 1025 | 0644 | editdlrm |
| area.html | 1098 | 0644 | editdlrm |
| bar-colors.html | 1253 | 0644 | editdlrm |
| bar-no-axes.html | 1001 | 0644 | editdlrm |
| bar.html | 1042 | 0644 | editdlrm |
| days.html | 1553 | 0644 | editdlrm |
| decimal-custom-hover.html | 1192 | 0644 | editdlrm |
| diagonal-xlabels-bar.html | 1586 | 0644 | editdlrm |
| diagonal-xlabels.html | 1575 | 0644 | editdlrm |
| donut-colors.html | 1117 | 0644 | editdlrm |
| donut-formatter.html | 1064 | 0644 | editdlrm |
| donut.html | 997 | 0644 | editdlrm |
| dst.html | 1033 | 0644 | editdlrm |
| events.html | 2509 | 0644 | editdlrm |
| goals.html | 1006 | 0644 | editdlrm |
| months-no-smooth.html | 1546 | 0644 | editdlrm |
| negative.html | 1186 | 0644 | editdlrm |
| no-grid.html | 1568 | 0644 | editdlrm |
| non-continuous.html | 1778 | 0644 | editdlrm |
| non-date.html | 1216 | 0644 | editdlrm |
| quarters.html | 2531 | 0644 | editdlrm |
| resize.html | 1644 | 0644 | editdlrm |
| stacked_bars.html | 1011 | 0644 | editdlrm |
| timestamps.html | 1625 | 0644 | editdlrm |
| updating.html | 1369 | 0644 | editdlrm |
| weeks.html | 2479 | 0644 | editdlrm |
| years.html | 1489 | 0644 | editdlrm |
| _template.html | 708 | 0644 | editdlrm |
/home/desid573/public_html/family/pdd/app/webroot/admin/plugins/morris/examples/updating.html (1369B)
var nReloads = 0;
function data(offset) {
var ret = [];
for (var x = 0; x <= 360; x += 10) {
var v = (offset + x) % 360;
ret.push({
x: x,
y: Math.sin(Math.PI * v / 180).toFixed(4),
z: Math.cos(Math.PI * v / 180).toFixed(4)
});
}
return ret;
}
var graph = Morris.Line({
element: 'graph',
data: data(0),
xkey: 'x',
ykeys: ['y', 'z'],
labels: ['sin()', 'cos()'],
parseTime: false,
ymin: -1.0,
ymax: 1.0,
hideHover: true
});
function update() {
nReloads++;
graph.setData(data(5 * nReloads));
$('#reloadStatus').text(nReloads + ' reloads');
}
setInterval(update, 100);