123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              PC 1, 2, 3
<div id="pc123" style="width:80%"></div>
PC 1, 3, 4
<div id="pc134" style="width:80%"></div>

            
          
!
            
              //Timline demo created using vis.js - http://visjs.org/ 

//Configuration options for a timeline - http://visjs.org/docs/timeline.html#Configuration_Options



// DOM element where the Timeline will be attached
var pc123_div = document.getElementById('pc123');
var pc134_div = document.getElementById('pc134');

// Configuration for the Timeline as JSON object
var options = {
    width: '100%',
    editable: true, /* this option means you can add or remove items by clicking on the timeline */
    margin: {
        item: 20
    }
};

// Create a Timeline
var timeline = new vis.Graph3d(pc123_div, pc123(), options);
var timeline = new vis.Graph3d(pc134_div, pc134(), options);

function pc123(){
var data = new vis.DataSet([{"x":2.6659,"y":-1.4265,"z":-0.608,"PC4":-0.9068,"Aircraft":"Airbus A319"},
{"x":6.9032,"y":16.2428,"z":-4.5603,"PC4":-0.0506,"Aircraft":"Airbus A319 VIP"},
{"x":2.4103,"y":-1.5265,"z":-0.7083,"PC4":-0.9482,"Aircraft":"Airbus A320"},
{"x":2.4103,"y":-1.5265,"z":-0.7083,"PC4":-0.9482,"Aircraft":"Airbus A320 32-R"},
{"x":-4.7047,"y":0.9708,"z":0.6199,"PC4":-0.6701,"Aircraft":"Airbus A330-200"},
{"x":-4.6762,"y":0.9983,"z":0.5846,"PC4":1.6746,"Aircraft":"Airbus A330-200 (3L2)"},
{"x":-5.153,"y":0.9558,"z":0.4596,"PC4":-0.7869,"Aircraft":"Airbus A330-200 (3L3)"},
{"x":-4.8537,"y":0.7469,"z":0.3278,"PC4":1.5998,"Aircraft":"Airbus A330-300"},
{"x":2.7615,"y":-1.6387,"z":-0.3242,"PC4":-0.1971,"Aircraft":"Boeing 717"},
{"x":1.8389,"y":-1.4223,"z":-1.5152,"PC4":1.2993,"Aircraft":"Boeing 737-700 (73W)"},
{"x":1.7652,"y":-1.4751,"z":-1.6996,"PC4":1.3111,"Aircraft":"Boeing 737-800 (738)"},
{"x":1.5583,"y":-1.4905,"z":-1.8343,"PC4":1.2722,"Aircraft":"Boeing 737-800 (73H)"},
{"x":1.3196,"y":-1.3466,"z":-1.6577,"PC4":0.2513,"Aircraft":"Boeing 737-900ER (739)"},
{"x":-7.2765,"y":1.3057,"z":-0.4632,"PC4":-3.9734,"Aircraft":"Boeing 747-400 (74S)"},
{"x":1.1197,"y":-1.1254,"z":-1.2934,"PC4":-0.3351,"Aircraft":"Boeing 757-200 (75A)"},
{"x":-2.2295,"y":0.6042,"z":0.8561,"PC4":2.0165,"Aircraft":"Boeing 757-200 (75E)"},
{"x":1.8741,"y":-1.5165,"z":-1.3881,"PC4":-0.9236,"Aircraft":"Boeing 757-200 (75M)"},
{"x":1.8465,"y":-1.5465,"z":-1.376,"PC4":-0.9196,"Aircraft":"Boeing 757-200 (75N)"},
{"x":1.8885,"y":-1.4138,"z":-1.5403,"PC4":-0.3071,"Aircraft":"Boeing 757-200 (757)"},
{"x":1.4408,"y":-1.4126,"z":-1.8213,"PC4":-0.3438,"Aircraft":"Boeing 757-200 (75V)"},
{"x":-1.8919,"y":0.2431,"z":0.4212,"PC4":1.5441,"Aircraft":"Boeing 757-200 (75X)"},
{"x":1.0301,"y":-1.4042,"z":-2.0136,"PC4":-0.3908,"Aircraft":"Boeing 757-300"},
{"x":-3.8445,"y":0.7243,"z":0.9586,"PC4":1.9065,"Aircraft":"Boeing 767-300 (76G)"},
{"x":-4.173,"y":1.0134,"z":1.1592,"PC4":-0.541,"Aircraft":"Boeing 767-300 (76L)"},
{"x":-0.0221,"y":-1.7461,"z":-3.0022,"PC4":1.2887,"Aircraft":"Boeing 767-300 (76P)"},
{"x":-0.0221,"y":-1.7461,"z":-3.0022,"PC4":1.2887,"Aircraft":"Boeing 767-300 (76Q)"},
{"x":-4.1216,"y":1.0349,"z":1.1961,"PC4":-0.5488,"Aircraft":"Boeing 767-300 (76T)"},
{"x":-1.2438,"y":-0.7269,"z":-1.799,"PC4":2.2834,"Aircraft":"Boeing 767-300 (76U)"},
{"x":-4.2285,"y":0.8824,"z":1.0048,"PC4":-0.4944,"Aircraft":"Boeing 767-300 (76Z V.1)"},
{"x":-3.9101,"y":0.8197,"z":0.9994,"PC4":1.8576,"Aircraft":"Boeing 767-300 (76Z V.2)"},
{"x":-4.6414,"y":1.034,"z":0.9467,"PC4":-0.6397,"Aircraft":"Boeing 767-400 (76D)"},
{"x":-5.8512,"y":1.0406,"z":0.2679,"PC4":-0.9847,"Aircraft":"Boeing 777-200ER"},
{"x":-6.0401,"y":1.1167,"z":0.2582,"PC4":-0.9896,"Aircraft":"Boeing 777-200LR"},
{"x":4.2461,"y":1.0823,"z":5.5375,"PC4":-0.0572,"Aircraft":"CRJ 100/200 Pinnacle/SkyWest"},
{"x":4.2461,"y":1.0823,"z":5.5375,"PC4":-0.0572,"Aircraft":"CRJ 100/200 ExpressJet"},
{"x":3.784,"y":-1.4304,"z":0.1879,"PC4":-0.8837,"Aircraft":"CRJ 700"},
{"x":3.5749,"y":-1.4616,"z":-0.0428,"PC4":-0.872,"Aircraft":"CRJ 900"},
{"x":5.111,"y":1.0068,"z":6.7253,"PC4":1.1276,"Aircraft":"E120"},
{"x":3.3361,"y":-1.565,"z":-0.226,"PC4":-1.1256,"Aircraft":"E170"},
{"x":3.3084,"y":-1.5835,"z":-0.3471,"PC4":-1.1139,"Aircraft":"E175"},
{"x":4.0172,"y":1.0907,"z":5.2621,"PC4":-0.326,"Aircraft":"ERJ-145"},
{"x":2.2885,"y":-1.7492,"z":-0.6493,"PC4":-0.183,"Aircraft":"MD-88"},
{"x":2.1389,"y":-1.7152,"z":-0.7296,"PC4":-0.2034,"Aircraft":"MD-90"}]);
return data;
}

function pc134(){
var data = new vis.DataSet([{"x":2.6659,"PC2":-1.4265,"y":-0.608,"z":-0.9068,"Aircraft":"Airbus A319"},
{"x":6.9032,"PC2":16.2428,"y":-4.5603,"z":-0.0506,"Aircraft":"Airbus A319 VIP"},
{"x":2.4103,"PC2":-1.5265,"y":-0.7083,"z":-0.9482,"Aircraft":"Airbus A320"},
{"x":2.4103,"PC2":-1.5265,"y":-0.7083,"z":-0.9482,"Aircraft":"Airbus A320 32-R"},
{"x":-4.7047,"PC2":0.9708,"y":0.6199,"z":-0.6701,"Aircraft":"Airbus A330-200"},
{"x":-4.6762,"PC2":0.9983,"y":0.5846,"z":1.6746,"Aircraft":"Airbus A330-200 (3L2)"},
{"x":-5.153,"PC2":0.9558,"y":0.4596,"z":-0.7869,"Aircraft":"Airbus A330-200 (3L3)"},
{"x":-4.8537,"PC2":0.7469,"y":0.3278,"z":1.5998,"Aircraft":"Airbus A330-300"},
{"x":2.7615,"PC2":-1.6387,"y":-0.3242,"z":-0.1971,"Aircraft":"Boeing 717"},
{"x":1.8389,"PC2":-1.4223,"y":-1.5152,"z":1.2993,"Aircraft":"Boeing 737-700 (73W)"},
{"x":1.7652,"PC2":-1.4751,"y":-1.6996,"z":1.3111,"Aircraft":"Boeing 737-800 (738)"},
{"x":1.5583,"PC2":-1.4905,"y":-1.8343,"z":1.2722,"Aircraft":"Boeing 737-800 (73H)"},
{"x":1.3196,"PC2":-1.3466,"y":-1.6577,"z":0.2513,"Aircraft":"Boeing 737-900ER (739)"},
{"x":-7.2765,"PC2":1.3057,"y":-0.4632,"z":-3.9734,"Aircraft":"Boeing 747-400 (74S)"},
{"x":1.1197,"PC2":-1.1254,"y":-1.2934,"z":-0.3351,"Aircraft":"Boeing 757-200 (75A)"},
{"x":-2.2295,"PC2":0.6042,"y":0.8561,"z":2.0165,"Aircraft":"Boeing 757-200 (75E)"},
{"x":1.8741,"PC2":-1.5165,"y":-1.3881,"z":-0.9236,"Aircraft":"Boeing 757-200 (75M)"},
{"x":1.8465,"PC2":-1.5465,"y":-1.376,"z":-0.9196,"Aircraft":"Boeing 757-200 (75N)"},
{"x":1.8885,"PC2":-1.4138,"y":-1.5403,"z":-0.3071,"Aircraft":"Boeing 757-200 (757)"},
{"x":1.4408,"PC2":-1.4126,"y":-1.8213,"z":-0.3438,"Aircraft":"Boeing 757-200 (75V)"},
{"x":-1.8919,"PC2":0.2431,"y":0.4212,"z":1.5441,"Aircraft":"Boeing 757-200 (75X)"},
{"x":1.0301,"PC2":-1.4042,"y":-2.0136,"z":-0.3908,"Aircraft":"Boeing 757-300"},
{"x":-3.8445,"PC2":0.7243,"y":0.9586,"z":1.9065,"Aircraft":"Boeing 767-300 (76G)"},
{"x":-4.173,"PC2":1.0134,"y":1.1592,"z":-0.541,"Aircraft":"Boeing 767-300 (76L)"},
{"x":-0.0221,"PC2":-1.7461,"y":-3.0022,"z":1.2887,"Aircraft":"Boeing 767-300 (76P)"},
{"x":-0.0221,"PC2":-1.7461,"y":-3.0022,"z":1.2887,"Aircraft":"Boeing 767-300 (76Q)"},
{"x":-4.1216,"PC2":1.0349,"y":1.1961,"z":-0.5488,"Aircraft":"Boeing 767-300 (76T)"},
{"x":-1.2438,"PC2":-0.7269,"y":-1.799,"z":2.2834,"Aircraft":"Boeing 767-300 (76U)"},
{"x":-4.2285,"PC2":0.8824,"y":1.0048,"z":-0.4944,"Aircraft":"Boeing 767-300 (76Z V.1)"},
{"x":-3.9101,"PC2":0.8197,"y":0.9994,"z":1.8576,"Aircraft":"Boeing 767-300 (76Z V.2)"},
{"x":-4.6414,"PC2":1.034,"y":0.9467,"z":-0.6397,"Aircraft":"Boeing 767-400 (76D)"},
{"x":-5.8512,"PC2":1.0406,"y":0.2679,"z":-0.9847,"Aircraft":"Boeing 777-200ER"},
{"x":-6.0401,"PC2":1.1167,"y":0.2582,"z":-0.9896,"Aircraft":"Boeing 777-200LR"},
{"x":4.2461,"PC2":1.0823,"y":5.5375,"z":-0.0572,"Aircraft":"CRJ 100/200 Pinnacle/SkyWest"},
{"x":4.2461,"PC2":1.0823,"y":5.5375,"z":-0.0572,"Aircraft":"CRJ 100/200 ExpressJet"},
{"x":3.784,"PC2":-1.4304,"y":0.1879,"z":-0.8837,"Aircraft":"CRJ 700"},
{"x":3.5749,"PC2":-1.4616,"y":-0.0428,"z":-0.872,"Aircraft":"CRJ 900"},
{"x":5.111,"PC2":1.0068,"y":6.7253,"z":1.1276,"Aircraft":"E120"},
{"x":3.3361,"PC2":-1.565,"y":-0.226,"z":-1.1256,"Aircraft":"E170"},
{"x":3.3084,"PC2":-1.5835,"y":-0.3471,"z":-1.1139,"Aircraft":"E175"},
{"x":4.0172,"PC2":1.0907,"y":5.2621,"z":-0.326,"Aircraft":"ERJ-145"},
{"x":2.2885,"PC2":-1.7492,"y":-0.6493,"z":-0.183,"Aircraft":"MD-88"},
{"x":2.1389,"PC2":-1.7152,"y":-0.7296,"z":-0.2034,"Aircraft":"MD-90"}]);
return data;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console