Skip to content

Commit

Permalink
Further updates, still getting 405 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
rashmisankepally committed Nov 28, 2019
1 parent 7ee328e commit 6b4b872
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ def compare(experiment_one, experiment_two):
return ujson.dumps(aggregator)


@app.route("/data")
def data():
return jsonify("abc")


@app.route('/experiment/<experiment_id>')
def experiment(experiment_id):
return r.get(experiment_id+'_statistics').decode('utf-8')
Expand Down
7 changes: 6 additions & 1 deletion src/static/IRViz.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ layout = {};

Plotly.newPlot(graphDiv, data, layout);

/*
$.get("/data", function(data){
console.log(data)
myfunction(data);
})
function myfunction(data){
var xaxis = []
var yaxis = []
Expand All @@ -41,7 +43,9 @@ yaxis: {title : {text: 'Trade in USD'}, range: [0,160000000000]}
Plotly.react(graphDiv, graphDiv.data, graphDiv.layout);
}
*/

/*
$(document).ready(function() {
$("select").on('change', function(event){
Expand All @@ -64,4 +68,5 @@ console.log(error);
}
});
});
});
});
*/
2 changes: 2 additions & 0 deletions src/templates/viz.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
<option>MAP</option>
<option>nDCG</option>
</select>
</div>

<div id="tester"></div>

<div id="topslider"></div>

<script type="text/javascript" src="{{ url_for('static', filename='IRViz.js') }}"></script>

</html>

0 comments on commit 6b4b872

Please sign in to comment.