chg: [devayingTool] UI improvement - WiP

pull/5032/head
mokaddem 2019-03-28 15:01:38 +01:00
parent 3e5e05994b
commit 58092222dc
2 changed files with 16 additions and 1 deletions

View File

@ -2272,6 +2272,12 @@ table tr:hover .down-expand-button {
}
.decayingGraphDot{
stroke: #ffffff;
fill: #da4f49;
stroke-width: 2px;
}
.decayingGraphHandleDot{
stroke: #ffffff;
fill: steelblue;
stroke-width: 2px;

View File

@ -359,11 +359,20 @@ $(document).ready(function() {
.data([data])
.enter()
.append('g')
.attr('class', 'yolo')
.append('circle')
.attr('class', 'decayingGraphDot')
.attr("cx", function(d) { return x(getReverseScore(parseInt($('#input_Threshold').val()))); })
.attr("cy", function(d, i) { return y(parseInt($('#input_Threshold').val())); })
.attr("r", 5);
svg.selectAll('.decayingGraphHandleDot')
.data([data])
.enter()
.append('g')
.append('circle')
.attr('class', 'decayingGraphHandleDot')
.attr("cx", function(d) { return x(parseInt($('#input_Tau').val()/2*24)); })
.attr("cy", function(d) { return y(getScore(parseInt($('#input_Tau').val()/2*24))); })
.attr("r", 5)
.call(drag);
// .on("mouseover", function(datum, b, c) {