anychart-jquery
Version:
JQuery plugin for AnyChart JavaScript charting library
40 lines (38 loc) • 1.52 kB
HTML
<html>
<head>
<script src="../node_modules/anychart/dist/js/anychart-base.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-gantt.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-ui.min.js"></script>
<script src="../node_modules/anychart/dist/js/anychart-exports.min.js"></script>
<script src="assets/hierarchical-data.js"></script>
<script src="../node_modules/jquery/dist/jquery.min.js"></script>
<script src="../dist/anychart-jquery.min.js"></script>
<link rel="stylesheet" href="../node_modules/anychart/dist/css/anychart-ui.min.css"/>
<link rel="stylesheet" href="../node_modules/anychart/dist/fonts/css/anychart-font.min.css"/>
<style>
html, body {
margin: 0;
padding: 0;
}
#container {
width: 100%;
height: 537px;
}
</style>
</head>
<body>
<div id="container"></div>
<script>
var data = anychart.data.tree(getData(), 'as-tree');
var cnt = $('#container');
cnt.anychart('ganttProject', data);
var chart = cnt.anychart();
chart.splitterPosition(223);
chart.fitAll();
</script>
<!-- This library enables the automatic resizing of the height and width of
both same and cross domain iFrames to fit their contained content. -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/3.5.8/iframeResizer.contentWindow.min.js"></script>
</body>
</html>