Browse Source

Minor improvements in the examples

css_transitions
jos 10 years ago
parent
commit
811324e302
10 changed files with 13 additions and 11 deletions
  1. +3
    -2
      examples/graph3d/example01_basis.html
  2. +1
    -1
      examples/graph3d/example02_camera.html
  3. +1
    -1
      examples/graph3d/example03_filter.html
  4. +1
    -1
      examples/graph3d/example05_line.html
  5. +1
    -1
      examples/graph3d/example06_moving_dots.html
  6. +2
    -1
      examples/graph3d/example07_dot_cloud_colors.html
  7. +1
    -1
      examples/graph3d/example08_dot_cloud_size.html
  8. +1
    -1
      examples/graph3d/example09_mobile.html
  9. +1
    -1
      examples/graph3d/example10_styles.html
  10. +1
    -1
      examples/graph3d/example11_tooltips.html

+ 3
- 2
examples/graph3d/example01_basis.html View File

@ -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});
}
}

+ 1
- 1
examples/graph3d/example02_camera.html View File

@ -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;

+ 1
- 1
examples/graph3d/example03_filter.html View File

@ -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;

+ 1
- 1
examples/graph3d/example05_line.html View File

@ -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;

+ 1
- 1
examples/graph3d/example06_moving_dots.html View File

@ -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;

+ 2
- 1
examples/graph3d/example07_dot_cloud_colors.html View File

@ -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;

+ 1
- 1
examples/graph3d/example08_dot_cloud_size.html View File

@ -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;

+ 1
- 1
examples/graph3d/example09_mobile.html View File

@ -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

+ 1
- 1
examples/graph3d/example10_styles.html View File

@ -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

+ 1
- 1
examples/graph3d/example11_tooltips.html View File

@ -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

Loading…
Cancel
Save