-
Notifications
You must be signed in to change notification settings - Fork 1
/
grafico.html
91 lines (65 loc) · 3.46 KB
/
grafico.html
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<style>
.lateral{
}
.lateral .point{
border:1px solid;
}
.line{
border:1px dashed #000;
width:100%;
}
.ult_line{
border:1px dashed lightgray;
width:100%;
}
.bar{
background-color:SteelBlue;
-webkit-box-shadow: -1px 0px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 0px 5px 0px rgba(0,0,0,0.75);
box-shadow: -1px 0px 5px 0px rgba(0,0,0,0.75);
text-align:center;
transition-duration: 0.1s;
transition-property: all;
cursor:pointer;
}
.bar:hover{
background-color:Green;
-webkit-box-shadow: -1px 0px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 0px 5px 0px rgba(0,0,0,0.75);
box-shadow: -1px 0px 5px 0px rgba(0,0,0,0.75);
text-align:center;
transition-duration: 0.1s;
transition-property: all;
}
</style>
<div ng-if="pontos.length === 0" style="width:100%;height:100%;text-align: center">
<span style="margin-left:auto;margin-right: auto;margin-top: 50%" class="dashboard-spinner spinner-success spinner-lg "></span>
</div>
<div style="position:relative;width:100%;height:100%;" ng-if="pontos.length>0">
<button class="btn btn-rounded" style="padding:0px;position:absolute;width:26px;height:26px;left:20px;top:calc(50% - 13px);z-index:999;cursor:pointer" ng-mousedown="addScroll()">
<i class="fas fa-arrow-circle-left"></i>
</button>
<button class="btn btn-rounded" style="padding:0px;position:absolute;width:26px;height:26px;left:calc(100% - 31px);top:calc(50% - 13px);z-index:999;cursor:pointer" ng-mousedown="removeScroll()">
<i class="fas fa-arrow-circle-right"></i>
</button>
<div style="position:absolute;left:0;top:50%;width:3%;height:100%;white-space: nowrap;overflow: visible" class="lateral">
<h4 style="transform: rotate(270deg)">{{eixoY}}</h4>
</div>
<div style="position:absolute;left:3%;top:0px;width:7%;height:100%" class="lateral">
<button class="btn btn-primary" style="height:22px;padding:0px;position:absolute;width:100%;top:calc({{((100 - 10) / (ymark.length - 1)) * (ymark.length - m.numero - 1)}}%)" ng-repeat="m in ymark">
<strong>{{m.valor}}</strong>
</button>
</div>
<div class="{{(m.numero===ymark.lengh-1)?'ult_line':'line'}}" style="padding:0px;position:absolute;width:90%;top:calc({{((100 - 10) / (ymark.length - 1)) * (ymark.length - m.numero - 1)}}%);left:10%" ng-repeat="m in ymark">
</div>
<div style="position:absolute;left:10%;top:0px;width:90%;height:100%;overflow: hidden" class="lateral">
<div ng-if="p.valor>0" class="bar" style=";position:absolute;width:{{(100 / np) - spacing}}%;top:{{90 - percent(p)*0.9}}%;left:{{((100 / np) * p.numero + scroll)}}%;height:{{percent(p)*0.9}}%" ng-repeat="p in pontos">
<h3 style="color:#FFFFFF">{{p.valor}}</h3>
</div>
<div ng-if="np<=legenda" style="font-size:12px;text-align:center;padding:0px;position:absolute;width:{{100 / np}}%;top:94%;left:{{((100 / np) * p.numero + scroll)}}%;padding-right:5px;padding-left:5px;border-right:1px solid" ng-repeat="p in pontos" ng-bind-html="p.nome">
</div>
<div style="text-align:center;padding:0px;position:absolute;width:100%;top:90%;left:0">
<h4>{{eixoX}}</h4>
</div>
</div>
</div>