-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbar.htm
More file actions
64 lines (41 loc) · 1.17 KB
/
bar.htm
File metadata and controls
64 lines (41 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html ng-app="d3AngularApp">
<head>
<style>
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 3px;
}
.node text { font: 12px sans-serif; }
.link {
fill: none;
stroke: #ccc;
stroke-width: 2px;
padding-bottom: 10px;
}
</style>
</head>
<body>
<p>This page is for Angular directive for Tree Data </p>
<!-- <div d3-bars bar-height="20" bar-padding="5"></div> -->
<div ng-controller="MainCtrl">
<d3-bars on-click="printNode(item)" data="data"></d3-bars>
<!-- <div ng-bind="variable"></div> -->
<!-- <div ng-repeat="item in data">
Name: <input type="text" ng-model="item.name"/> Score: <input type="number" ng-model="item.score"/>
</div> -->
</div>
<!-- <div>
<table ng-repeat"node in nodes">
<tr>
<td>{{itemDetails.name}}}</td>
<td>{{itemDetails.parent.name}}</td>
<td>{{itemDetails.children.length}}</td>
</tr>
</table>
</div> -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.1/angular.min.js"></script>
<script type="text/javascript" src="d3.js"></script>
<script type="text/javascript" src="d3-example1.js"></script>
</body>
</html>