-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (97 loc) · 5.29 KB
/
index.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<!--############################# IMPORT THE NECESSARY LIBRARIES #############################-->
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-beta/css/materialize.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<!-- amCharts3 javascript sources -->
<script type="text/javascript" src="https://www.amcharts.com/lib/3/ammap.js"></script>
<script type="text/javascript" src="https://www.amcharts.com/lib/3/maps/js/australiaLow.js"></script>
<!-- amCharts4 javascript sources -->
<script src="//www.amcharts.com/lib/4/core.js"></script>
<script src="//www.amcharts.com/lib/4/charts.js"></script>
<script src="//www.amcharts.com/lib/4/themes/animated.js"></script>
<script src="//www.amcharts.com/lib/4/themes/kelly.js"></script>
<!-- amCharts javascript code -->
<link rel="stylesheet" href="index.css">
<!--Give your project a title-->
<title>Data Visualisation</title>
<meta name="description" content="Data Visualisation" />
</head>
<!--##################################### Navigation ########################################-->
<!--Use a single page navigation so that visuals can be loaded from beginning for quicker transition speeds-->
<nav class="nav-center">
<ul class="center tabs tabs-transparent">
<li class="tab" onclick="openTab('intro')" ><a href="#intro">Introduction</a></li>
<li class="tab" onclick="openTab('piediv')"><a href="#piediv">Popular Products</a></li>
<li class="tab" onclick="openTab('heatmap')"><a href="#heatmap">Customer Activity</a></li>
<li class="tab" onclick="beginStory('map')"><a href="#map">Customer Locations</a></li>
</ul>
</nav>
<!--When the page loads open the Landing Page-->
<body style="margin:0; background-color:rgba(80,80,80,1); position: relative;" onload="openTab('intro')">
<!--##################################### LANDING PAGE ########################################-->
<div id="intro" class="tabified">
<div class="container">
<h2>Your insights are ready.</h2>
<h4>We analysed over 1700 transactions in the past year to bring you better insights into your customers.
Here is what we found.</h4>
</br>
</br>
<h4 class="center" style="color: #00BFFF;">Are you ready?</h4>
</br>
<div class="center" onclick="openTab('piediv')"><a class="btn-floating btn-large btn-intro blue pulse">
<i class="large material-icons">play_arrow</i></a>
</div>
</div>
</div>
<!--##################################### HEATMAP ########################################-->
<div id="heat-text" class="container tabified" style="display: none;">
<h2>Customer Activity</h2>
<h4>Monday, Tuesday and Wednesday are when customers <span style="color: #00BFFF;">spend the most.</span></h4>
<div id="heatmap" class="tabified" style="display: none;"></div>
</div>
<div id="heat-text1" class="container tabified" style="display: none;">
<h4>However, throughout the whole week <span style="color: #00BFFF;">9pm</span> is when customers spend the most.</h4>
</div>
<div id="storyButton" onclick="beginStory('map')" class="fixed-action-btn" style="display: none;">
<a class="btn-floating btn-large blue pulse">
<i class="large material-icons">play_arrow</i>
</a>
</div>
<!--##################################### PIXEL MAP ########################################-->
<div class="tabified" id="map" style="width: 100%; height: 870px;"></div>
<!--Put this after the map so it is displayed on top of it (using float-text-map-right)-->
<div class="float-text-map-left tabified" style="display: none;">
<h4><span style="color: yellow;">Your customers </span>live in 584 </h4>
<h4>postcodes around</h4>
<h4>Australia.</h4>
</div>
<div class="float-text-map-right tabified" style="display: none;">
<h4>Postcodes near</h4>
<h4>Melbourne and Sydney <span style="color: #00FF00;"></span></h4>
<h4><span style="color: #00FF00;">spend the most.</span></h4>
</div>
<div class="float-text-map-bottom-right tabified" style="display: none;">
<h4>Postcodes with the</h4>
<h4><span style="color: #00BFFF;">highest profit</span></h4>
<h4>potential.</h4>
</div>
<!--##################################### PIE CHART ########################################-->
<div id="pie-text" class="container tabified" style="display: none;">
<h2>Popular products</h2>
<h4>The <span style="color: #00BFFF;">Chloe Dress</span> is the most popular product generating <span style="color: #00BFFF;">$119,820 profit.</span></h4>
<div id="piediv" class="tabified" style="display: none;"></div>
</div>
<div id="piebutton" onclick="openTab('heatmap')" class="fixed-action-btn tabified" style="display: none;">
<a class="btn-floating btn-large blue pulse">
<i class="large material-icons">play_arrow</i>
</a>
</div>
<!--Import Javascript file where visuals are created-->
<script type="text/javascript" src="index.js"></script>
</body>
</html>