-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchart.html
53 lines (46 loc) · 1.19 KB
/
chart.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingSoft Demo</title>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<style>
html,
body,
#myChart {
height: 100%;
width: 100%;
}
zing-grid[loading] {
height: 800px;
}
</style>
</head>
<body>
<div id='myChart'></div>
<script>
ZC.LICENSE = ["b55b025e438fa8a98e32482b5f768ff5"];
var myData = [24, 68, 48, 70, 40, 15, 30];
var myConfig = {
"graphset": [{
"type": "bar",
"title": {
"text": "Data Pulled from MySQL Database"
},
"scale-x": {
"labels": ["Webster", "Parnel", "Dena", "Tyrell", "Martha", "Summer", "Linton"]
},
"series": [{
"values": myData
}]
}]
};
zingchart.render({
id: 'myChart',
data: myConfig,
height: "100%",
width: "100%"
});
</script>
</body>
</html>