| <!doctype html>
|
| <html lang="en">
|
| <head>
|
| <meta charset="UTF-8">
|
| <meta content="IE=edge" http-equiv="X-UA-Compatible">
|
| <meta content="width=device-width, initial-scale=1" name="viewport">
|
| <title>Pert Data 02</title>
|
| <link href="https://playground.anychart.com/docs/samples/Pert_Data_02/iframe" rel="canonical">
|
| <meta content="PERT Chart,Project Management" name="keywords">
|
| <meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description">
|
| |
| |
| |
|
|
| <link href="_deps/cdn.anychart.com/releases/8.14.1/css/anychart-ui.min_qe95e7e741b.css" rel="stylesheet" type="text/css">
|
| <style>html, body, #container {
|
| width: 100%;
|
| height: 100%;
|
| margin: 0;
|
| padding: 0;
|
| }</style>
|
| </head>
|
| <body>
|
| <div id="container"></div>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-base.min_qe95e7e741b.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-pert.min_qe95e7e741b.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min_qe95e7e741b.js"></script>
|
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js"></script>
|
| <script type="text/javascript">anychart.onDocumentReady(function () {
|
|
|
| var data = [
|
| {id: "1", name: "A"},
|
| {id: "2", name: "B"},
|
| {id: "3", name: "D"},
|
| {id: "4", name: "AD"},
|
| {id: "5", name: "BC"}
|
| ];
|
|
|
| var dependencies = [
|
| {from: '1', to: '4'},
|
| {from: '3', to: '4'},
|
| {from: '2', to: '5'},
|
| {from: '3', to: '5'}
|
| ];
|
|
|
| var chart = anychart.pert();
|
|
|
| chart.data(data, "as-tree", dependencies);
|
|
|
| chart.title("Nodes and Connections Set Separately");
|
|
|
| chart.container("container");
|
| chart.draw();
|
| });</script>
|
| </body>
|
| </html> |