Commit 5b76568b authored by Stu Fisher's avatar Stu Fisher

keep tick order correct while inverting data

parent aa741b9f
......@@ -95,7 +95,7 @@ class Video extends React.Component {
var data2 = [];
for(let i=0; i < this.props.profileY.length; i++){
data2.push([this.props.profileY[this.props.profileY.length-(i+1)],i*this.props.calib_y])
data2.push([this.props.profileY[i], i*this.props.calib_y])
}
this.graph_profilY = new Dygraph(this.graph2.current, data2, {
drawPoints: false,
......@@ -133,7 +133,7 @@ class Video extends React.Component {
var data2 = [];
for(let i=0; i < this.props.profileY.length; i++){
data2.push([this.props.profileY[this.props.profileY.length-(i+1)],i*this.props.calib_y])
data2.push([this.props.profileY[i],i*this.props.calib_y])
}
this.graph_profilY.updateOptions({
file: data2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment