improveplot
This commit is contained in:
parent
9df303041d
commit
cff22e4474
|
@ -540,12 +540,14 @@ export default {
|
||||||
var token = response['token']
|
var token = response['token']
|
||||||
var future = response['future']
|
var future = response['future']
|
||||||
var past = response['past']
|
var past = response['past']
|
||||||
|
var past_predict = response['past_predict']
|
||||||
|
|
||||||
// if the response from the server indicating that it's running the analysis, then redirect to a loading view
|
// if the response from the server indicating that it's running the analysis, then redirect to a loading view
|
||||||
if (token == 'success') {
|
if (token == 'success') {
|
||||||
// this.$router.push({ name: "plot" })
|
// this.$router.push({ name: "plot" })
|
||||||
this.$router.push({ name: "plotTest", params: {
|
this.$router.push({ name: "plotTest", params: {
|
||||||
past,
|
past,
|
||||||
|
past_predict,
|
||||||
future
|
future
|
||||||
}})
|
}})
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ export default {
|
||||||
data: yAxisData,
|
data: yAxisData,
|
||||||
animationDuration: 2800,
|
animationDuration: 2800,
|
||||||
animationEasing: 'cubicInOut'
|
animationEasing: 'cubicInOut'
|
||||||
}
|
},
|
||||||
// {
|
// {
|
||||||
// name: 'actual',
|
// name: 'actual',
|
||||||
// smooth: true,
|
// smooth: true,
|
||||||
|
|
|
@ -63,6 +63,21 @@ export default {
|
||||||
default: '#999997'
|
default: '#999997'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
past_predict: {
|
||||||
|
xAxisData: {
|
||||||
|
default: [120, 82, 91, 154, 162, 140, 145,230]
|
||||||
|
},
|
||||||
|
yAxisData: {
|
||||||
|
default: ['a', 'x', 'c', 'd', 'e', 'f', 'g', 'h']
|
||||||
|
},
|
||||||
|
label: {
|
||||||
|
default: 'Future'
|
||||||
|
},
|
||||||
|
colorPicked: {
|
||||||
|
default: '#999997'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
future: {
|
future: {
|
||||||
xAxisData: {
|
xAxisData: {
|
||||||
default: [120, 82, 91, 154, 162, 140, 145,230]
|
default: [120, 82, 91, 154, 162, 140, 145,230]
|
||||||
|
|
Loading…
Reference in New Issue