diff --git a/examples/graph3d/example01_basis.html b/examples/graph3d/example01_basis.html index 4ccc908a..e70eee07 100644 --- a/examples/graph3d/example01_basis.html +++ b/examples/graph3d/example01_basis.html @@ -20,15 +20,16 @@ // Called when the Visualization API is loaded. function drawVisualization() { // Create and populate a data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some nice looking data with sin/cos + var counter = 0; var steps = 50; // number of datapoints will be steps*steps var axisMax = 314; var axisStep = axisMax / steps; for (var x = 0; x < axisMax; x+=axisStep) { for (var y = 0; y < axisMax; y+=axisStep) { var value = custom(x,y); - data.add({x:x,y:y,z:value,style:value}); + data.add({id:counter++,x:x,y:y,z:value,style:value}); } } diff --git a/examples/graph3d/example02_camera.html b/examples/graph3d/example02_camera.html index 2d560338..07847c81 100644 --- a/examples/graph3d/example02_camera.html +++ b/examples/graph3d/example02_camera.html @@ -45,7 +45,7 @@ // Called when the Visualization API is loaded. function drawVisualization() { // Create and populate a data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some nice looking data with sin/cos var steps = 50; // number of datapoints will be steps*steps var axisMax = 314; diff --git a/examples/graph3d/example03_filter.html b/examples/graph3d/example03_filter.html index ca0b0d3e..03259761 100644 --- a/examples/graph3d/example03_filter.html +++ b/examples/graph3d/example03_filter.html @@ -20,7 +20,7 @@ // Called when the Visualization API is loaded. function drawVisualization() { // Create and populate a data table. - var data = []; + data = []; // create some nice looking data with sin/cos var steps = 50; // number of datapoints will be steps*steps var axisMax = 314; diff --git a/examples/graph3d/example05_line.html b/examples/graph3d/example05_line.html index 3a433c35..a5243907 100644 --- a/examples/graph3d/example05_line.html +++ b/examples/graph3d/example05_line.html @@ -16,7 +16,7 @@ // Called when the Visualization API is loaded. function drawVisualization() { // Create and populate a data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some nice looking data with sin/cos var steps = 500; diff --git a/examples/graph3d/example06_moving_dots.html b/examples/graph3d/example06_moving_dots.html index e6ebc89f..c0f6b475 100644 --- a/examples/graph3d/example06_moving_dots.html +++ b/examples/graph3d/example06_moving_dots.html @@ -16,7 +16,7 @@ // Called when the Visualization API is loaded. function drawVisualization() { // create the data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some shortcuts to math functions var sin = Math.sin; diff --git a/examples/graph3d/example07_dot_cloud_colors.html b/examples/graph3d/example07_dot_cloud_colors.html index 9b90289e..c74fc5c1 100644 --- a/examples/graph3d/example07_dot_cloud_colors.html +++ b/examples/graph3d/example07_dot_cloud_colors.html @@ -17,7 +17,8 @@ // Called when the Visualization API is loaded. function drawVisualization() { // create the data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); + // create some shortcuts to math functions var sqrt = Math.sqrt; var pow = Math.pow; diff --git a/examples/graph3d/example08_dot_cloud_size.html b/examples/graph3d/example08_dot_cloud_size.html index b5b6cfac..219cb33a 100644 --- a/examples/graph3d/example08_dot_cloud_size.html +++ b/examples/graph3d/example08_dot_cloud_size.html @@ -15,7 +15,7 @@ // Called when the Visualization API is loaded. function drawVisualization() { // create the data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some shortcuts to math functions var sqrt = Math.sqrt; diff --git a/examples/graph3d/example09_mobile.html b/examples/graph3d/example09_mobile.html index b93737c1..a74e81ec 100644 --- a/examples/graph3d/example09_mobile.html +++ b/examples/graph3d/example09_mobile.html @@ -35,7 +35,7 @@ // Called when the Visualization API is loaded. function drawVisualization() { // Create and populate a data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some nice looking data with sin/cos var steps = 10; // number of datapoints will be steps*steps diff --git a/examples/graph3d/example10_styles.html b/examples/graph3d/example10_styles.html index b5cab109..37178077 100644 --- a/examples/graph3d/example10_styles.html +++ b/examples/graph3d/example10_styles.html @@ -26,7 +26,7 @@ var withValue = ['bar-color', 'bar-size', 'dot-size', 'dot-color'].indexOf(style) != -1; // Create and populate a data table. - var data = []; + data = []; // create some nice looking data with sin/cos var steps = 5; // number of datapoints will be steps*steps diff --git a/examples/graph3d/example11_tooltips.html b/examples/graph3d/example11_tooltips.html index c1af9852..9cd07766 100644 --- a/examples/graph3d/example11_tooltips.html +++ b/examples/graph3d/example11_tooltips.html @@ -23,7 +23,7 @@ var withValue = ['bar-color', 'bar-size', 'dot-size', 'dot-color'].indexOf(style) != -1; // Create and populate a data table. - var data = new vis.DataSet(); + data = new vis.DataSet(); // create some nice looking data with sin/cos var steps = 5; // number of datapoints will be steps*steps