Skip to content

Commit

Permalink
Update table.js
Browse files Browse the repository at this point in the history
  • Loading branch information
blackzlq authored Apr 5, 2017
1 parent 02733a7 commit c639412
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Data_Visualization/Final/js/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@


var x = document.getElementById("myRange").value;
var age_x=parseInt(x, 10);
if(age_x>15)age_x=age_x+(age_x-15);

document.getElementById("slider_var").textContent=years[x];
document.getElementById("AgeRangeOfChart").textContent=String(14+age_x)+" years old - "+String(22+age_x)+" years old";
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn('string', 'Topping');
Expand Down

0 comments on commit c639412

Please sign in to comment.