graph-axis
Esse commit está contido em:
@@ -93,10 +93,10 @@ if __name__ == '__main__':
|
||||
|
||||
log.startLogging(sys.stdout)
|
||||
|
||||
factory = WebSocketClientFactory("ws://127.0.0.1:1912/api/samples")
|
||||
factory = WebSocketClientFactory("ws://tassi.fi:1912/api/samples")
|
||||
factory.protocol = MyClientProtocol
|
||||
|
||||
reactor.connectTCP("127.0.0.1", 1912, factory)
|
||||
reactor.connectTCP("tassi.fi", 1912, factory)
|
||||
reactor.callInThread(read_samples)
|
||||
reactor.run()
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ function createSampleChart(samples, channel) {
|
||||
var x = [];
|
||||
var y = [];
|
||||
$.each(samples, function(index, sample) {
|
||||
x[index] = sample.order_number * 0.004;
|
||||
x[index] = sample.order_number;
|
||||
y[index] = sample.channel_data[channel];
|
||||
});
|
||||
var data = [{
|
||||
@@ -480,7 +480,7 @@ function createSampleChart(samples, channel) {
|
||||
var layout = {
|
||||
title: 'Channel'+(channel+1),
|
||||
xaxis: {
|
||||
title: 'Time (seconds)'
|
||||
title: 'Order number'
|
||||
},
|
||||
yaxis: {
|
||||
title: 'Voltage',
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário