-
Notifications
You must be signed in to change notification settings - Fork 7
/
file.html
66 lines (59 loc) · 1.76 KB
/
file.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
<html>
<head>
<style>
.xAxisezajmkylye .tick text {
text-anchor: middle!important;
transform: rotate(0)!important;
}
#ezajmkylye {
height: 380px!important;
}
#ezajmkylye svg {
height: 380px!important;
}
</style>
</head>
<body>
<div id="ezajmkylye"></div>
<script src="https://requirejs.org/docs/release/2.3.6/minified/require.js"></script>
<script>
require.config({
paths: {
roughViz: "https://unpkg.com/[email protected]/dist/roughviz.min"
}
});
require(["roughViz"], function(roughViz) {
new roughViz.Bar({
element: "#".concat("ezajmkylye"),
data: {
labels: [1, 2, 3, 4, 5],
values: [3.0, 4.0, 10.0, 2.0, 0.9]
},
axisFontSize: "1.5rem",
axisRoughness: 0.5,
axisStrokeWidth: 0.5,
bowing: 0,
color: "skyblue",
fillStyle: "cross-hatch",
fillWeight: 0,
font: 0,
highlight: "green",
innerStrokeWidth: 0,
labelFontSize: "2rem",
padding: 0.1,
roughness: 1,
simplification: 0.2,
stroke: "black",
strokeWidth: 1,
title: "",
titleFontSize: "3rem",
tooltipFontSize: "3rem",
xLabel: "",
yLabel: "",
height: 400,
width: 700
});
});
</script>
</body>
</html>