-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
573 lines (485 loc) · 27.5 KB
/
index.html
File metadata and controls
573 lines (485 loc) · 27.5 KB
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Hanami: A Visualized Data Exploration Into Japan's Cherry Blossoms</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href='https://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<script src="https://d3js.org/d3.v7.min.js"></script>
<script src="js/blooming-pattern.js"> </script>
<link rel="stylesheet" href="css/style.css" />
<link rel="icon" type="image/x-icon" href="./images/cherry-blossom-icon.png">
<style>
#scrolly {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
padding: 0;
z-index: 100000;
}
#scrolly > * {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
article {
position: relative;
/* padding: 0 1rem; */
width: 100%;
/* max-width: 20rem; */
}
.sticky-thing {
position: -webkit-sticky;
position: sticky;
max-width: 42%;
margin: 0;
z-index: 1000000;
top: 0vh;
height: 100vh;
/* Center everything inside */
/* background-color: #3b3b3b; */
display: flex;
align-items: center;
justify-content: center;
}
.sticky-thing p {
padding: 1rem;
font-size: 8rem;
font-weight: 900;
color: rgb(255, 0, 0);
}
.step {
opacity: 0;
margin: 0 auto 2rem auto;
z-index: 100000;
transition: 1s;
}
.step:last-child {
margin-bottom: 0;
}
.step.is-active {
opacity: 1;
color: #3b3b3b;
transition: 1s;
z-index: 100000
}
/* .step p {
text-align: center;
padding: 1rem;
font-size: 1.5rem;
} */
.tree.is-active{
opacity: 1;
transition: 1000ms;
z-index: 100000;
}
.tree {
opacity: 0;
transition: 1000ms;
z-index: -100;
}
</style>
</head>
<body>
<main>
<section id="intro" style="background-image: url('images/intro.png'); height: 48vw; width: 98.5vw; background-repeat: no-repeat;
background-attachment: fixed; background-size: 100%;">
<!-- <img src="images/intro.png" style="margin:auto; max-height: 98vh; max-width: 98vw;;align-self: center;"> -->
</section>
<section id="scrolly">
<div class="sticky-thing">
<div id="cherry-tree-branches">
<div class="cherry-tree branches">
<img src="images/branches.png" alt=""/>
</div>
</div>
<div id="blooming-pattern" class="tree">
<div class="title">
<span id="h2" style="font-size: 2.5rem; line-height: 5rem;">Japan's Pink Flush<br></span>
<span id="h1">Blooming Pattern</span>
</div>
<div class="cherry-tree buds">
<img src="images/buds.png" alt=""/>
</div>
</div>
<div id="tourism" class="tree">
<div class="title">
<span id="h2" style="font-size: 2.5rem; line-height: 5rem;">Cherry Blossom Season<br></span>
<span id="h1">Tourism in Japan</span>
</div>
<div class="cherry-tree half-bloom">
<img src="images/half-bloom.png" alt=""/>
</div>
</div>
<div id="tripadvisor" class="tree">
<div class="title">
<span id="h1">What They Talk About When They Talk About<br></span>
<span id="h2">Cherry Blossoms</span>
<span id="h3"><br>Hover your cursor over the words below to explore!</span>
</div>
<div class="cherry-tree branches">
<img src="images/branches.png" alt=""/>
</div>
<!-- <div class="sun cherry-tree">
<img src="images/sun.png" alt=""/>
</div> -->
<div class="cherry-tree blossoms">
<img src="images/blossoms.png" alt=""/>
</div>
<div id="real-word">
<div class="real-word tooltip w1" >
花見<span class="tooltiptext">花見 n. <br>cherry blossom viewing<br>frequency:297</span>
</div>
<div class="real-word w2" >
桜<span class="tooltiptext">桜 n. <br>cherry blossom<br>frequency:874</span>
</div>
<div class="real-word w3" >
名所<span class="tooltiptext">名所 n. <br>famous place<br>frequency:201</span>
</div>
<div class="real-word w4" >
満開<span class="tooltiptext">満開 n. <br>full bloom<br>frequency:149</span>
</div>
<div class="real-word w5" >
公園<span class="tooltiptext">公園 n. <br>park<br>frequency:96</span>
</div>
<div class="real-word w6" >
寺<span class="tooltiptext">寺 n. <br>shrine<br>frequency:70</span>
</div>
<div class="real-word w7" >
都会<span class="tooltiptext">都会 n. <br>urban<br>frequency:61</span>
</div>
<div class="real-word w8" >
行く<span class="tooltiptext">行く v. <br>go<br>frequency:44</span>
</div>
<div class="real-word w9" >
見る<span class="tooltiptext">見る v. <br>look<br>frequency:26</span>
</div>
<div class="real-word w10" >
楽しむ<span class="tooltiptext">楽しむ v. <br>enjoy<br>frequency:26</span>
</div>
<div class="real-word w11" >
楽しめる<span class="tooltiptext">楽しめる v. <br>can enjoy<br>frequency:26</span>
</div>
<div class="real-word w12" >
咲く<span class="tooltiptext">咲く v. <br>bloom<br>frequency:17</span>
</div>
<div class="real-word w13" >
並ぶ<span class="tooltiptext">並ぶ v. <br>line up<br>frequency:17</span>
</div>
<div class="real-word w14" >
見れる<span class="tooltiptext">見れる v. <br>can see<br>frequency:17</span>
</div>
<div class="real-word w15" >
広大<span class="tooltiptext">広大 adj. <br>vast<br>frequency:44</span>
</div>
<div class="real-word w16" >
綺麗<span class="tooltiptext">綺麗 adj. <br>pretty<br>frequency:44</span>
</div>
<div class="real-word w17" >
素晴らしい<span class="tooltiptext">素晴らしい adj. <br>amazing<br>frequency:35</span>
</div>
<div class="real-word w18" >
早い<span class="tooltiptext">早い adj. <br>quick<br>frequency:26</span>
</div>
<div class="real-word w19" >
静か<span class="tooltiptext">静か adj. <br>silent<br>frequency:26</span>
</div>
<div class="real-word w20" >
良い<span class="tooltiptext">良い adj. <br>good<br>frequency:26</span>
</div>
<div class="real-word w21" >
美しい<span class="tooltiptext">美しい adj. <br>beautiful<br>frequency:26</span>
</div>
</div>
</div>
<div id="quote" class="tree">
<div class="cherry-tree branches">
<img src="images/branches.png" alt=""/>
</div>
<div class="sun cherry-tree">
<img src="images/sun.png" alt=""/>
</div>
<div class="cherry-tree fixed-blossoms">
<img src="images/blossoms.png" alt=""/>
</div>
<div class="title">
<span id="h4">Reference codes:</span>
<ul>
<li id="h4">The animated line chart animation was made possible with code from <a id="h4" href="https://medium.com/@louisemoxy/create-a-d3-line-chart-animation-336f1cb7dd61">Louise Moxy</a> and <a id="h4" href="https://www.visualcinnamon.com/2016/01/animating-dashed-line-d3/">visualcinnamon</a>.</li>
<li id="h4">The location filter from <a id="h4" href="https://observablehq.com/@ncastaldo/gas-stations-italy">Italy Gas Station Distribution</a>.</li>
<li id="h4">The scrolly-telling feature from <a id="h4" href="https://github.com/jsoma/simplified-scrollama-scrollytelling/">Simplified Scrollama Scrollytelling</a>.</li>
</ul>
</div>
</div>
</div>
<article class="content">
<div class="step" data-step="1">
<div id="chart"></div>
<div class="smallnote content">*According to the Japan Meteorology Agency,
"first bloom" refers to when observation trees have 5 to 6 flowers that have bloomed and
"full bloom" refers to when 80% of the observation tree flowers have bloomed.
</div>
<h3>When do cherry blossoms bloom in Japan?<br><br></h3>
<p>
Most cherry blossom in Japan bloom in March, April, or May.
Over the years, more and more flowers are blooming earlier in the spring season.
For instance, in 2021, 78% of the cherry blossoms observed first bloomed in March.
This is a stark contrast from 1953, where only 30% of the cherry blossoms first bloomed in March.
So if you want to catch the cherry blossoms as they are blooming, you may have to plan an earlier trip.
</p>
<div class="b2"> If you are visiting the main popular cities (Tokyo, Kyoto, Osaka), you should travel in late
March or early April to admire most of the blooming beauties.</div>
<div class='tableauPlaceholder' id='viz1650967207243' style='position: relative'>
<noscript>
<a href='#'>
<img alt='Avg Days to Full Bloom '
src='https://public.tableau.com/static/images/As/Assignment5_EDA/AvgDaystoFullBloom/1_rss.png'
style='border: none' />
</a>
</noscript>
<object class='tableauViz' style='display:none;'>
<param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' />
<param name='embed_code_version' value='3' />
<param name='site_root' value='' />
<param name='name' value='Assignment5_EDA/AvgDaystoFullBloom' />
<param name='tabs' value='no' />
<param name='toolbar' value='yes' />
<param name='static_image'
value='https://public.tableau.com/static/images/As/Assignment5_EDA/AvgDaystoFullBloom/1.png' />
<param name='animate_transition' value='yes' />
<param name='display_static_image' value='yes' />
<param name='display_spinner' value='yes' />
<param name='display_overlay' value='yes' />
<param name='display_count' value='yes' />
<param name='language' value='en-US' />
</object>
</div>
<script type='text/javascript'>
var divElement = document.getElementById('viz1650967207243');
var vizElement = divElement.getElementsByTagName('object')[0];
if (divElement.offsetWidth > 800) { vizElement.style.width = '625px'; vizElement.style.height = '750px'; }
else if (divElement.offsetWidth > 500) { vizElement.style.width = '625px'; vizElement.style.height = '750px'; }
else { vizElement.style.width = '100%'; vizElement.style.height = '727px'; }
var scriptElement = document.createElement('script');
scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js';
vizElement.parentNode.insertBefore(scriptElement, vizElement);
</script>
<h3><br>How long does it take for the flowers to fully bloom?<br>How long to they stay in full bloom?<br><br></h3>
<p>
On average, it takes around a week for the cherry blossoms to go from first bloom to full bloom.
Once reaching full bloom, the cherry blossoms are expected to stay in full bloom for about 1 to 2 weeks before the flowers start falling from the trees.
So be sure to plan for a March trip if you are visiting Southern Japan, an early April trip if you plan to
visit central Japan, and a mid-April trip if you plan to visit Northern Japan.
</p>
<div class="b2"><br>Stay updated with <a href="https://sakura.weathermap.jp/en.php">blooming date forecasts</a>
released by the Japan Meteorological Agency to figure out when is the best time to visit!
</div>
</div>
<div class="step" data-step="2">
<h3>Which countries visit Japan more during the blooming season compared to the non-blooming season?<br><br></h3>
<p>
Below is a plot featuring the top 15 countries from which Japan receives the most visitors (from Japan
tourism data from 1990 - 2022).
The lines indicate the average percentages in visitors to Japan between non-blooming season and blooming season.
Since the blooming season accounts for only 3 months out of the year, and the non-blooming the other 9, the average visitors for
each category are scaled down by 1/3 and 1/9, respectively. Then, a percentage is calculated to account for the difference in
populations between these countries to illustrate the difference in travel tendencies for visitors to Japan from these countries.
</p>
<div class='tableauPlaceholder' id='viz1651906215124' style='position: relative; width: 110%'>
<noscript>
<a href='#'>
<img alt='Countries with Most Visitors to Japan (1990 - 2020)Visitor Average of Non-blooming Season vs Blooming Season '
src='https://public.tableau.com/static/images/NH/NHYXNNBK6/1_rss.png'
style='border: none' />
</a></noscript><object class='tableauViz' style='display:none;'>
<param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' />
<param name='embed_code_version' value='3' />
<param name='path' value='shared/NHYXNNBK6' />
<param name='toolbar' value='yes' />
<param name='static_image' value='https://public.tableau.com/static/images/NH/NHYXNNBK6/1.png' />
<param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' />
<param name='display_spinner' value='yes' />
<param name='display_overlay' value='yes' />
<param name='display_count' value='yes' />
<param name='language' value='en-US' />
<param name='filter' value='publish=yes' />
</object>
</div>
<script type='text/javascript'>
var divElement = document.getElementById('viz1651906215124');
var vizElement = divElement.getElementsByTagName('object')[0];
vizElement.style.width='100%';vizElement.style.height=(divElement.offsetWidth*0.75)+'px';
var scriptElement = document.createElement('script');
scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js';
vizElement.parentNode.insertBefore(scriptElement, vizElement);
</script>
<p><br>We see that the top two countries most likely to send visitors to Japan during the blooming season are Thailand and the
Philippines. Conversely, the two countries most likely to send visitors during the non-blooming season are Hong Kong and South Korea.
</p>
</div>
<div class="step" data-step="3">
<div>
<p>Cherry blossoms, or sakura, have always been in a significant position in Japanese culture, which symbolizes birth and death, beauty and violence.<br><br>
In order to better understand the meaning and significance of the experience of cherry blossom viewing (hanami) in Japanese culture, we collected a tremendous amount of reviews from <img src="images/Tripadvisor_logo.svg" style="border: 0; display:inline; margin: 0; transform: translateY(5px); height: 20px; box-shadow: none">, and found the most frequently used vocabulary, which we believe indicates what they care about the most when it comes to hanami. Here are some of our findings.
<br><br>
</p>
</div>
<div>
<h3>Attention to Location/Environment <br><br></h3>
<p>From the list of the most frequently used words, we can see a lot of words that are used to specify the location, such as “名所 (famous place)”, “寺 (shrine/temple)”, “公園 (park)”, and the names of cities. It’s not hard to infer that the location where the activity takes place is the core of the experience. Even if it means they have to squeeze in with all the other hanami goers in an outrageously crowded place, they would still value the experience of hanami at a popular spot.
<br><br>
</p>
</div>
<div class='tableauPlaceholder' id='viz1651888582430' style='position: relative; height:300px;width:110%'><noscript><a href='#'><img alt='Most Frequent Words in Tripadvisor Reviews by POS ' src='https://public.tableau.com/static/images/Wo/Workbookforcherryblossomwordcount/MostFrequentWordsinTripadvisorReviewsbyPOS/1_rss.png' style='border: none' /></a></noscript><object class='tableauViz' style='display:none;'><param name='host_url' value='https%3A%2F%2Fpublic.tableau.com%2F' /> <param name='embed_code_version' value='3' /> <param name='site_root' value='' /><param name='name' value='Workbookforcherryblossomwordcount/MostFrequentWordsinTripadvisorReviewsbyPOS' /><param name='tabs' value='no' /><param name='toolbar' value='yes' /><param name='static_image' value='https://public.tableau.com/static/images/Wo/Workbookforcherryblossomwordcount/MostFrequentWordsinTripadvisorReviewsbyPOS/1.png' /> <param name='animate_transition' value='yes' /><param name='display_static_image' value='yes' /><param name='display_spinner' value='yes' /><param name='display_overlay' value='yes' /><param name='display_count' value='yes' /><param name='language' value='en-US' /></object></div> <script type='text/javascript'> var divElement = document.getElementById('viz1651888582430'); var vizElement = divElement.getElementsByTagName('object')[0]; vizElement.style.width='100%';vizElement.style.height=(divElement.offsetWidth*0.75)+'px'; var scriptElement = document.createElement('script'); scriptElement.src = 'https://public.tableau.com/javascripts/api/viz_v1.js'; vizElement.parentNode.insertBefore(scriptElement, vizElement); </script>
<div>
<h3><br>Urban over Rural<br>Atrificial over Natural<br><br></h3>
<p>Inspired by the finding, we explored a little further into the locations. We found that, out of the 100 most popular hanami spots on <img src="images/Tripadvisor_logo.svg" style="border: 0; display:inline; margin: 0; transform: translateY(5px); height: 20px; box-shadow: none">, the spots in urban settings significantly outnumbered those in rural settings, while those in controlled/artificial environments, such as parks, shrines, and gardens, also outnumbered those in natural settings.<br><br>
</p>
</div>
<div style="transform: translateY(-150px);">
<div class="dropdown" style="transform: translateY(150px);">
<form class="setting">
<label for="setting">Setting: </label>
<select name="setting" id="setting" onchange="selectChanged()">
<option value="">All</option>
<option value="city">Urban</option>
<option value="country">Rural</option>
</select>
</form>
<form class="attr">
<label for="attr">Attraction: </label>
<select name="attr" id="attr" onchange="selectChanged()">
<option value="">All</option>
<option value="shrine">Shrine</option>
<option value="castle">Castle</option>
<option value="garden">Garden</option>
<option value="park">Park</option>
<option value="water">Water</option>
<option value="mountain">Mountain</option>
</select>
</form>
<!-- <form class="region">
<label for="region">Region: </label>
<select name="region" id="region" onchange="selectChanged()" width="200px">
<option value="">All</option>
<option value="Kanto">Kanto</option>
<option value="Kinki">Kinki</option>
<option value="Kyushu - Okinawa">Kyushu - Okinawa</option>
<option value="Chubo">Chubo</option>
<option value="Hokkaido">Hokkaido</option>
<option value="Tohoku">Tohoku</option>
<option value="Shikoku">Shikoku</option>
<option value="Chugoku">Chugoku</option>
</select>
</form> -->
<p id="selected-number"></p>
</div>
<canvas id="japan-container" width="600px" height="600px" >
</div>
<div class="content">
<h3>Peace of Mind Overcomes Noise of Crowds<br><br></h3>
<p>Even though most of the hanimi goers experience hanami in a crowded spot located in major urban areas such as Kanto and Kinki, they are still able to enjoy (楽しむ) the beauty (綺麗) of sakura and find their peace of mind (or 静か, silence) as written in one of the reviews, “The hustle and bustle of the city is forgotten.”(“都会の喧騒を忘れてまったり。”)
<br><br>
</p>
</div>
</div>
</div>
<div class="step" data-step="4">
<div style="height:0px"></div>
<div class="quote">
<img src="images/quote.png"/>
<span class="quote-tooltiptext" id="quote-tooltiptext">The hustle and bustle of the city is forgotten.</span>
</div>
</div>
</article>
</section>
</main>
<!-- <div class='debug'></div> -->
<script src="https://unpkg.com/intersection-observer@0.5.1/intersection-observer.js"></script>
<script src="https://unpkg.com/scrollama"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js" integrity="sha256-xNjb53/rY+WmG+4L6tTl9m6PpqknWZvRt0rO1SRnJzw=" crossorigin="anonymous"></script>
<script src="https://unpkg.com/topojson@3"></script>
<script src="js/tripadvisor.js"></script>
<script>
//scrollytelling
// using d3 for convenience
var main = document.querySelector("main");
var scrolly = main.querySelector("#scrolly");
var sticky = scrolly.querySelector(".sticky-thing");
var article = scrolly.querySelector("article");
var steps = article.querySelectorAll(".step");
// initialize the scrollama
var scroller = scrollama();
var drawChart_bloomingpattern_done;
// scrollama event handlers
function handleStepEnter(response) {
// response = { element, direction, index }
var el = response.element;
// remove is-active from all steps
// then add is-active to this step
steps.forEach(step => step.classList.remove('is-active'));
el.classList.add('is-active');
// update graphic based on step
var tree_bloomingpattern = document.querySelector("#blooming-pattern");
var tree_tourism = document.querySelector("#tourism");
var tree_tripadvisor = document.querySelector("#tripadvisor");
var tree_quote = document.querySelector("#quote");
if (el.dataset.step == "1"){
tree_bloomingpattern.classList.add('is-active');
if(!drawChart_bloomingpattern_done){
drawChart_bloomingpattern();
drawChart_bloomingpattern_done = true;
}
} else{
tree_bloomingpattern.classList.remove('is-active');
}
if (el.dataset.step == "2"){
tree_tourism.classList.add('is-active');
} else{
tree_tourism.classList.remove('is-active');
}
if (el.dataset.step == "3"){
tree_tripadvisor.classList.add('is-active');
} else{
tree_tripadvisor.classList.remove('is-active');
}
if (el.dataset.step == "4"){
tree_quote.classList.add('is-active');
} else{
tree_quote.classList.remove('is-active');
}
}
// Initialization
function init() {
scroller
.setup({
step: "#scrolly article .step",
offset: 0.33,
debug: false
})
.onStepEnter(handleStepEnter);
// setup resize event
window.addEventListener("resize", scroller.resize);
}
// kick things off
init();
</script>
<script type='text/javascript'>
//tripadvisor
//tripadvisor-japan map;tooltip following cursor
drawChart_tripadvisor();
var tooltipSpan = document.getElementById('quote-tooltiptext');
window.onmousemove = function (e) {
var x = e.clientX,
y = e.clientY;
tooltipSpan.style.top = (y + 20) + 'px';
tooltipSpan.style.left = (x + 20) + 'px';
};
</script>
</body>
</html>