-
Notifications
You must be signed in to change notification settings - Fork 0
/
pivot.html
63 lines (62 loc) · 3.38 KB
/
pivot.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
<html>
<head>
<meta charset="UTF-8">
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<script src="https://cdn.plot.ly/plotly-latest.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.23.0/pivot.min.js" integrity="sha512-XgJh9jgd6gAHu9PcRBBAp0Hda8Tg87zi09Q2639t0tQpFFQhGpeCgaiEFji36Ozijjx9agZxB0w53edOFGCQ0g==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pivottable/2.23.0/plotly_renderers.min.js" integrity="sha512-nGY6wbyP3gWxAjsZwsjWahe9nKLCTTyTLn1dpwuNHb9CKLjogHAMVIbbr4wNYL0dKOsWTCrlpx9RDY+bB1MFrQ==" crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="pivot.css">
<script>
$(function() {
$.getJSON("https://balance-simc.github.io/Balance-SimC/combo_h_1.json", function(json) {
$("#pivot").pivotUI(json, {
renderers: $.extend($.pivotUtilities.renderers, $.pivotUtilities.plotly_renderers),
hiddenFromDragDrop: ["dps"],
hiddenFromAggregators: ["cov", "soul", "cond1", "cond2", "leg", "tal"],
rows: ["cov", "soul", "cond1"],
cols: ["leg"],
aggregatorName: "Maximum",
vals: ["dps"],
rendererName: "Heatmap",
rendererOptions: {
heatmap: {
colorScaleGenerator: function(val) {
let min = Math.min(...val);
let max = Math.max(...val);
return Plotly.d3.scale.linear()
.domain([min, max])
.range(["#FFFFFF", "#FF7D0A"])
}
}
}
});
});
});
</script>
</head>
<body>
<div class="title">
Balance Druid Shadowlands DPS Tables
<select id="fightstyle">
<option value="combo_h_1.json">Heroic 1 Target</option>
<option value="combo_h_2.json">Heroic 2 Targets</option>
<option value="combo_h_3.json">Heroic 3 Targets</option>
<option value="combo_h_4.json">Heroic 4 Targets</option>
<option value="combo_h_5.json">Heroic 5 Targets</option>
<option value="combo_h_1m.json">Heroic 1T Move</option>
<option value="combo_h_s.json">Heroic 2T Spread</option>
<option value="combo_h_d.json">Heroic Dungeon</option>
<option value="combo_1.json">Mythic 1 Target</option>
<option value="combo_2.json">Mythic 2 Targets</option>
<option value="combo_3.json">Mythic 3 Targets</option>
<option value="combo_4.json">Mythic 4 Targets</option>
<option value="combo_5.json">Mythic 5 Targets</option>
<option value="combo_1m.json">Mythic 1T Move</option>
<option value="combo_s.json">Mythic 2T Spread</option>
<option value="combo_d.json">Mythic Dungeon</option>
</select>
</div>
<div id="pivot"></div>
</body>
</html>