Browse Source

Updated playground example

css_transitions
jos 10 years ago
parent
commit
7cd4ba5c0b
1 changed files with 8 additions and 23 deletions
  1. +8
    -23
      examples/graph3d/playground/playground.js

+ 8
- 23
examples/graph3d/playground/playground.js View File

@ -449,39 +449,30 @@ function draw() {
function drawCsv() { function drawCsv() {
// Instantiate our graph object.
var graph = new vis.Graph3d(document.getElementById('graph'));
// retrieve data and options // retrieve data and options
var data = getDataCsv(); var data = getDataCsv();
var options = getOptions(); var options = getOptions();
// Draw our graph with the created data and options
graph.draw(data, options);
// Creat a graph
var graph = new vis.Graph3d(document.getElementById('graph'), data, options);
} }
function drawJson() { function drawJson() {
// Instantiate our graph object.
var graph = new vis.Graph3d(document.getElementById('graph'));
// retrieve data and options // retrieve data and options
var data = getDataJson(); var data = getDataJson();
var options = getOptions(); var options = getOptions();
// Draw our graph with the created data and options
graph.draw(data, options);
// Creat a graph
var graph = new vis.Graph3d(document.getElementById('graph'), data, options);
} }
function drawJavascript() { function drawJavascript() {
// Instantiate our graph object.
var graph = new vis.Graph3d(document.getElementById('graph'));
// retrieve data and options // retrieve data and options
var data = getDataJavascript(); var data = getDataJavascript();
var options = getOptions(); var options = getOptions();
// Draw our graph with the created data and options
graph.draw(data, options);
// Creat a graph
var graph = new vis.Graph3d(document.getElementById('graph'), data, options);
} }
@ -503,10 +494,7 @@ function drawGooglespreadsheet() {
options = getOptions(); options = getOptions();
// Instantiate our graph object. // Instantiate our graph object.
var graph = new vis.Graph3d(document.getElementById('graph'));
// Draw our graph with the created data and options
graph.draw(data, options);
var graph = new vis.Graph3d(document.getElementById('graph'), data, options);
} }
url = document.getElementById("googlespreadsheetText").value; url = document.getElementById("googlespreadsheetText").value;
@ -537,10 +525,7 @@ function drawDatasource() {
options = getOptions(); options = getOptions();
// Instantiate our graph object. // Instantiate our graph object.
var graph = new vis.Graph3d(document.getElementById('graph'));
// Draw our graph with the created data and options
graph.draw(data, options);
var graph = new vis.Graph3d(document.getElementById('graph'), data, options);
}; };
url = document.getElementById("datasourceText").value; url = document.getElementById("datasourceText").value;

Loading…
Cancel
Save