forked from Lyricsis/Lyricsis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1705 lines (1552 loc) · 67.7 KB
/
index.html
File metadata and controls
1705 lines (1552 loc) · 67.7 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
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<!-- bubble chart codes-->
<style>
html,
body {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: Helvetica, Calibri, Roboto, Open Sans, sans-serif -webkit-backface-visibility: hidden;
}
#chart2 * {
box-sizing: inherit;
}
#chart2 h1 {
text-align: center;
font-family: "Noto Sans KR";
}
#chart2 h2 {
font-weight: 'bold';
}
#chart2 svg {
margin: auto;
display: block;
}
#chart2 .circle-overlay {
font-size: 15px;
border-radius: 10%;
position: absolute;
overflow: hidden;
/*it's buggy with the foreignObject background right now*/
/*background-color: rgba(255,255,255,0.5);*/
}
#chart2 .circle-overlay__inner {
text-align: center;
width: 100%;
height: 100%;
}
#chart2 .hidden {
display: none;
}
#chart2 .node-icon--faded {
opacity: 0.2;
}
#chart2 .legend-size circle {
fill: rgb(31, 119, 180);
}
</style>
<!-- bubble chart codes end -->
<!-- gapminder chart codes-->
<meta charset="utf-8">
<link href="dragit.css" rel="stylesheet" />
<!-- <script src="d3.v3.js"></script> -->
<!-- <script src="dragit.js"></script> -->
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
margin-left: 40px;
font-weight: 200;
font-size: 14px;
}
html,
body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</style>
<!-- gapminder ends -->
<meta charset="utf-8">
<title>Idol Dajavu - Lyricsis</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicons -->
<link href="img/favicon.png" rel="icon">
<link href="img/favicon.png" rel="apple-touch-icon">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,500,700|Open+Sans:300,300i,400,400i,700,700i" rel="stylesheet">
<!-- noto sans import -->
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+KR" rel="stylesheet">
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Libraries CSS Files -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href="lib/ionicons/css/ionicons.min.css" rel="stylesheet">
<link href="lib/magnific-popup/magnific-popup.css" rel="stylesheet">
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet">
<!-- linechart javascript Files -->
<!-- <script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.4/d3.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js" type="text/javascript"></script>
<script src="britecharts.min.js" type="text/javascript"></script> -->
<!-- linechart css Files -->
<link rel="stylesheet" href="css/britecharts.min.css" type="text/css" />
<!-- =======================================================
Theme Name: Avilon
Theme URL: https://bootstrapmade.com/avilon-bootstrap-landing-page-template/
Author: BootstrapMade.com
License: https://bootstrapmade.com/license/
======================================================= -->
</head>
<body>
<!--d3 version test-->
<script src="js/d3.min.js"></script>
<script>
d3_bub = d3
window.d3 = null
</script>
<script src="d3.v3.js"></script>
<script>
d3_gap = d3
window.d3 = null
// test it worked
console.log('v3', d3_bub.version)
console.log('v4', d3_gap.version)
d3 = d3_bub
</script>
<script src="dragit.js"></script>
<!--version test ends-->
<!--==========================
Header
============================-->
<header id="header">
<div class="container">
<div id="logo" class="pull-left">
<h1><a href="index.html" class="scrollto">Lyricsis</a></h1>
<!-- Uncomment below if you prefer to use an image logo -->
<!-- <a href="#intro"><img src="img/logo.png" alt="" title=""></a> -->
</div>
<nav id="nav-menu-container">
<ul class="nav-menu">
<li class="menu-has-children"><a href="#">Analysis</a>
<ul>
<li><a href="analysis-lyrics.html">Lyrics</a></li>
<li><a href="analysis-industry.html">Industry</a></li>
</ul>
</li>
<li class="menu-has-children"><a href="#">More</a>
<ul>
<li><a href="search_lyricist.html">Lyricist/Composer Top 100</a></li>
<li><a href="network_lyricist_gen1.html">Lyricist Network</a></li>
<li><a href="network_composer_gen1.html">Composer Network</a></li>
</ul>
<li class="menu-active"><a href="#team2">Team Lyricsis</a></li>
</li>
<!-- <li><a href="#contact">Contact Us</a></li> -->
</ul>
</nav><!-- #nav-menu-container -->
</div>
</header><!-- #header -->
<!--==========================
Intro Section
============================-->
<section id="intro">
<div class="intro-text">
<h2>IDOL! Dejavu</h2>
<h3 id="subtitle">아이돌 음악으로 분석하는 아이돌 시장의 젠더 불균형</h3>
<p>Anaylsis of lyrics about gender inequality in idol groups</p>
<a href="#about" class="btn-get-started scrollto">Get Started</a>
<!-- <div class="icon"><i class="ion-ios-arrow-down"> -->
</div>
<div class="product-screens">
<div class="product-screen-1 wow fadeInUp" data-wow-delay="0.4s" data-wow-duration="0.6s">
<img src="img/product-screen-1.png" alt="">
</div>
<div class="product-screen-2 wow fadeInUp" data-wow-delay="0.2s" data-wow-duration="0.6s">
<img src="img/product-screen-2.png" alt="">
</div>
<div class="product-screen-3 wow fadeInUp" data-wow-duration="0.6s">
<img src="img/product-screen-3.png" alt="">
</div>
</div>
</section><!-- #intro -->
<main id="main">
<!--==========================
About Us Section
============================-->
<section id="about">
<div class="container-fluid">
<div class="section-header">
<h3 class="section-title">IDOL! Dejavu</h3>
<span class="section-divider"></span>
<p class="section-description">
팀 리릭시스는 젊은 여성들의 시각에서, 그리고 누군가의 팬으로서, '아이돌 시장의 젠더 불균형' 이라는 주제로 이야기를 나눠보고자 합니다.<br>
저희는 간혹 유명한 아이돌의 노래를 듣다보면 "또 얼굴이랑 몸매 얘기를 하는 건가?" 하는 기시감이 들곤 합니다.<br>바로 아래의 노래가사들 처럼요. 이런 기시감에 대한 의문에서 프로젝트는 시작합니다.<br>
이를 데이터로 증명하고 설명해나가는 과정을 소개합니다.
</p>
</div>
</div>
</section>
<!--==========================
가사 예시 소개
============================-->
<section id="team" class="section-bg">
<div class="container">
<div class="row wow fadeInUp">
<div class="col-lg-3 col-md-6">
<div class="member">
<div class="pic"><img src="img/intro/방탄소년단.png" alt="" width="80%"></div>
<h4>호르몬 전쟁</h4>
<span>방탄소년단</span><br>
<p>그녀 머리 바디 허리 다리<br>
말 못하는 범위까지<br>
관심 없단 말이<br>
남자로선 많이 어이상실
</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="member">
<div class="pic"><img src="img/intro/블랙핑크.png" alt="" width="80%"></div>
<h4>뚜두뚜두</h4>
<span>블랙핑크</span><br>
<p>착한 얼굴에 그렇지 못한 태도<br>
가녀린 몸매 속 <br>
가려진 volume은 두 배로
</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="member">
<div class="pic"><img src="img/intro/세븐틴.png" alt="" width="80%"></div>
<h4>표정관리</h4>
<span>세븐틴<bR></span><br>
<p>참 단정해 넌<br>
내 눈에만 복장불량<br>
발 무릎 발 조차도 안보이게<br>
치말 내려야 만족이 돼<br>
목까지 단추 꼭꼭 잠궈<br>
쇄골이 숨 못 쉬게
</p>
</div>
</div>
<div class="col-lg-3 col-md-6">
<div class="member">
<div class="pic"><img src="img/intro/트와이스.png" alt="" width="80%"></div>
<h4>Likey</h4>
<span>트와이스</span><br>
<p>BB크림 파파파<br>
립스틱을 맘맘마<br>
카메라에 담아볼까 예쁘게<br>
이거 보면 웃어줘 그리고 꼭 눌러줘<br>
저 밑에 앙증맞고 새빨간 Heart Heart
</p>
</div>
</div>
</div>
</div>
</div>
<div align="center">
<a href="#more-features" class="btn-get-started scrollto">
<img src="img/next.png">
</a>
</div>
</div>
</section>
<!--==========================
More Features Section
============================-->
<section id="more-features">
<div class="container">
<div class="section-header">
<h3 class="section-title">문제 정의</h3>
<span class="section-divider"></span>
<p class="section-description" style="margin-left: 0;">아이돌의 음악 가사 속 성적 대상화와 외향 평가의 빈도가 여성이 남성보다 많을 것 이다.</p>
</div>
<div class="row">
<div class="col-lg-6">
<div class="box wow fadeInLeft">
<div class="icon"><i class="ion-ios-stopwatch-outline"></i></div>
<h4 class="title"><a href="">왜 아이돌의 음악을 분석하는가?</a></h4>
<p class="description">현재 가요 시장은 아이돌이 차지하는 비중이 굉장히 큽니다. 한국을 넘어서 세계 시장의 젊은 세대에게 막강한 영향력을 행사하고 있습니다. 영향력이 지대한 만큼 그들이 음악을 통해 전달하는 젠더와 관련한 메세지에 집중해보고자 합니다.
</p>
</div>
</div>
<div class="col-lg-6">
<div class="box wow fadeInRight">
<div class="icon"><i class="ion-ios-bookmarks-outline"></i></div>
<h4 class="title"><a href="">왜 가사를 분석하는가?</a></h4>
<p class="description">멜로디가 아닌 가사를 데이터로 선정한 것은 가사가 멜로디에 비해 비교적 명확한 분석이 가능하고, 기획사나 아이돌 스스로도 음악에 담는 메세지로 가사가 큰 축을 담당하기 때문입니다.<br><br>
</p>
</div>
</div>
<div class="col-lg-6">
<div class="box wow fadeInLeft">
<div class="icon"><i class="ion-ios-heart-outline"></i></div>
<h4 class="title"><a href="">왜 문제인가?</a></h4>
<p class="description">왜 여성에게 편중된 외양 묘사가 문제가 될까요?
저희는 아이돌과 대중매체의 영향을 가장 크게 받는 청소년에 주목했습니다. 한국은 OECD 국가 중 여성 청소년의 비만율은 최하위 수준입니다. 그러나 정상체중 범위에 있는 여학생 10명 중 3, 4명은 본인의 몸에 문제가 있다고 생각한다는 통계가 있습니다. 전문가들은 이런 외모에 관한 압박이 대중매체와 깊은 연관이 있으며, 그 안에 내포하는 왜곡된 미적 기준 때문이라고도 분석합니다.
</p>
</div>
</div>
<div class="col-lg-6">
<div class="box wow fadeInRight">
<div class="icon"><i class="ion-ios-analytics-outline"></i></div>
<h4 class="title"><a href="">IDOL! Dejavu 프로젝트는</a></h4>
<p class="description">우리는 아이돌의 가사속에서 이러한 문제점들을 꼽아 보면서 작사가에게는 창작자로서의 책임을, 가수에게는 직접적으로 대중에게 가사를 전달하는 책임을 묻고 건강한 비판을 하고자 합니다.<br><br><br><br>
</p>
</div>
</div>
</div>
<div style="width:100%; height:100px"></div>
<div align="center">
<a href="#features" class="btn-get-started scrollto">
<img src="img/next.png">
</a>
</div>
</div>
</section><!-- #more-features -->
<!--==========================
Product Featuress Section
============================-->
<section id="features">
<div class="container">
<div class="row">
<div class="col-12">
<div class="section-header wow fadeIn" data-wow-duration="1s">
<h3 class="section-title">데이터 수집</h3>
<span class="section-divider"></span>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<div class="box wow fadeInRight" data-wow-delay="0.3s">
<div class="icon"><i class="ion-music-note"></i></div>
<h4 class="title"><a href="">Melon 크롤링</a></h4>
<p class="description">2018.09.21 기준 최신</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<div class="box wow fadeInRight" data-wow-delay="0.3s">
<div class="icon"><i class="icon ion-headphone"></i></div>
<h4 class="title"><a href="">9,548곡</a></h4>
<p class="description">중복곡 제거 후</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<div class="box wow fadeInRight" data-wow-delay="0.3s">
<div class="icon"><i class="ion-ios-speedometer-outline"></i></div>
<h4 class="title"><a href="">27년</a></h4>
<p class="description">서태지와 아이들부터 소녀시대 Oh!GG까지</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-12">
<div class="box wow fadeInRight" data-wow-delay="0.3s">
<div class="icon">
<i class="ion-ios-speedometer-outline"></i></div>
<h4 class="title"><a href="">333개의 그룹</a></h4>
<p class="description">그룹과 유닛(솔로 제외)<br>
Why? 솔로의 경우 아이돌인가? 아티스트인가? 에 대한 모호성이 있으며,<br>해당 프로젝트는 아이돌 산업에서의 여성과 남성 아이돌에 부여하는 이미지와 그 편중성을 보고자했기에 솔로는 제외하였습니다.
</p>
</div>
</div>
</div>
</div>
</div>
<div style="width:100%; height:100px"></div>
<div align="center">
<a href="#section-division1" class="btn-get-started scrollto">
<img src="img/next.png">
</a>
</div>
</div>
</section><!-- #features -->
<div style="width:100%; height:100px"></div>
<section id="section-division1">
<div class="container">
<div class="row">
<div class="col-12">
<h3 class="cta-title">데이터 요약</h3>
</div>
</div>
<div align="center">
<a href="#data_sum" class="btn-get-started scrollto">
<img src="img/next.png">
</a>
</div>
</div>
</section>
<!--==========================
예원님 곡 수 그래프
============================-->
<section id="data_sum">
<div class="container">
<div style="width:100%; height:100px"></div>
<div class="row">
<div class="col-12">
<div class="section-header wow fadeIn" data-wow-duration="1s">
<!-- <h2 class="metricName" id="chart1label"></h2> -->
<h3 class="section-title">27년 간의 발매곡 수</h3>
<span class="section-divider"></span>
<p class="section-description">1992년부터 2018년 9월 21일까지 아이돌의 곡 발매 수 비교입니다. <br>해당 년도로 마우스를 가져가시면 상세한 곡 수를 확인할 수 있습니다.<br><br>
<span class="male">•</span> 남자아이돌<br>
<span class="female">•</span> 여자아이돌
</p>
</div>
</div>
</div>
<div id="chart1"></div>
<div class="line" width=95% height=300></div>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.4.4/d3.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.17.10/lodash.min.js" type="text/javascript"></script>
<script src="js/britecharts.min.js" type="text/javascript"></script>
<script>
Song_G_data ={
dataByTopic: [
{
topicName: 'male',
topic: 1,
dates: [
{
date: '1992',
value: 21
},
{
date: '1993',
value: 40
},
{
date: '1994',
value: 27
},
{
date: '1995',
value: 83
},
{
date: '1996',
value: 108
},
{
date: '1997',
value: 111
},
{
date: '1998',
value: 174
},
{
date: '1999',
value: 189
},
{
date: '2000',
value: 173
},
{
date: '2001',
value: 215
},
{
date: '2002',
value: 212
},
{
date: '2003',
value: 178
},
{
date: '2004',
value: 145
},
{
date: '2005',
value: 141
},
{
date: '2006',
value: 159
},
{
date: '2007',
value: 124
},
{
date: '2008',
value: 173
},
{
date: '2009',
value: 180
},
{
date: '2010',
value: 215
},
{
date: '2011',
value: 250
},
{
date: '2012',
value: 311
},
{
date: '2013',
value: 372
},
{
date: '2014',
value: 419
},
{
date: '2015',
value: 459
},
{
date: '2016',
value: 454
},
{
date: '2017',
value: 484
},
{
date: '2018',
value: 406
}
]
},
{
topicName: 'female',
topic: 4,
dates: [
{
date: '1992',
value: 0
},
{
date: '1993',
value: 5
},
{
date: '1994',
value: 0
},
{
date: '1995',
value: 5
},
{
date: '1996',
value: 10
},
{
date: '1997',
value: 17
},
{
date: '1998',
value: 33
},
{
date: '1999',
value: 105
},
{
date: '2000',
value: 122
},
{
date: '2001',
value: 147
},
{
date: '2002',
value: 109
},
{
date: '2003',
value: 74
},
{
date: '2004',
value: 35
},
{
date: '2005',
value: 48
},
{
date: '2006',
value: 44
},
{
date: '2007',
value: 85
},
{
date: '2008',
value: 66
},
{
date: '2009',
value: 104
},
{
date: '2010',
value: 149
},
{
date: '2011',
value: 206
},
{
date: '2012',
value: 250
},
{
date: '2013',
value: 286
},
{
date: '2014',
value: 239
},
{
date: '2015',
value: 294
},
{
date: '2016',
value: 320
},
{
date: '2017',
value: 367
},
{
date: '2018',
value: 216
}
]
}
]
};
function lineChart(metricName, chartID, chartData) {
// Line
var lineChart = new britecharts.line();
var tooltip = new britecharts.tooltip();
var lineData = chartData;
d3.selectAll("#"+chartID+"label").text(metricName);
lineChart
.margin({
top: 60,
bottom: 50,
left: 100,
right: 20
})
.lineCurve('linear')
.grid('full')
.height(350)
.xAxisFormat(britecharts.line().axisTimeCombinations.CUSTOM)
.on('customMouseOver', tooltip.show)
.on('customMouseMove', tooltip.update)
.on('customMouseOut', tooltip.hide);
tooltip
.title(" ")
.shouldShowDateInTitle(false);
d3.select('#'+chartID).datum(chartData).call(lineChart);
d3.select('#'+chartID +' .metadata-group .vertical-marker-container').datum([]).call(tooltip)
const redrawChart = () => {
let container = d3.select('#'+chartID);
let newContainerWidth = container.node() ? container.node().getBoundingClientRect().width : false;
// Setting the new width on the chart
lineChart.width(newContainerWidth);
// Rendering the chart and line again
container.datum(lineData).call(lineChart);
d3.select('#'+chartID+' .metadata-group .vertical-marker-container').datum([]).call(tooltip)
};
const throttledRedraw = _.throttle(redrawChart, 200);
window.addEventListener("resize", throttledRedraw);
}
lineChart(' ', 'chart1', Song_G_data);
</script>
</div>
</section>
<div style="width:100%; height:100px"></div>
<div align="center">
<a href="#data_genre" class="btn-get-started scrollto">
<img src="img/next.png">
</a>
</div>
<!--==========================
장르 분포
============================-->
<section id="data_genre">
<div class="container">
<div style="width:100%; height:100px"></div>
<div class="row">
<div class="col-12">
<div class="section-header wow fadeIn" data-wow-duration="1s">
<h3 class="section-title">장르 비교</h3>
<span class="section-divider"></span>
<p class="section-description">곡 장르 분포 비교입니다.<br>상대적으로 남자아이돌이 여자아이돌보다 다양한 장르의 곡을 많이 발매한 것을 확인할 수 있습니다.<br></p>
<div align="center">
<img src="img/genre_piechart.png" width="100%"></img>
</div>
</div>
</div>
</div>
<div style="width:100%; height:100px"></div>
<div align="center">
<a href="#top30" class="btn-get-started scrollto">
<img src="img/next.png">
</a>
</div>
<div style="width:100%; height:150px"></div>
</section>
<!--==========================
melon top30 bubble chart
============================-->
<section id="top30">
<div class="container">
<div class="row">
<div class="col-12">
<div class="section-header wow fadeIn" data-wow-duration="1s">
<h3 class="section-title">Melon Fan Top30</h3>
<span class="section-divider"></span>
<p class="section-description">멜론 팬 수를 기준으로 한 인기 순위 Top 30 버블 차트입니다. 각 아티스트의 크기는 곡 수를 의미합니다.<br>
버블을 터치하거나 더블 클릭 하시면 해당 그룹의 이름, 멤버, 곡 수, 인기 곡을 확인하실 수 있습니다. </p>
</div>
</div>
</div>
</div>
<div id="chart2">
<svg width="100%" height="800" font-family="Noto Sans KR" font-size="8" text-anchor="middle"></svg>
<script src="js/d3.min.js"></script>
<script src="js/d3-legend.min.js"></script>
<!-- <script src="js/d3.min.js"></script>
<script src="js/d3-legend.min.js"></script> -->
<script>
// Based loosely from this D3 bubble graph https://bl.ocks.org/mbostock/4063269
// And this Forced directed diagram https://bl.ocks.org/mbostock/4062045
let data = [ {
cat: 'male', name: '엑소', value: 69,
icon: 'img/엑소.png',
desc: `
<strong>멤버</strong><br>
카이, 첸, 세훈, 레이, 시우민, <br>백현, 디오, 수호, 찬열<br><br>
<strong>발매곡 수</strong><br>
69<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=b6ycw7p9-bE" style="color:#20A2A2">전야(Eve)</a></strong>
`
}, {
cat: 'male', name: '방탄소년단', value: 113,
icon: 'img/방탄소년단.png',
desc: `
<strong>멤버</strong><br>
RM, 진, SUGA, J-hope, 지민, 뷔, 정국<br><br>
<strong>발매곡 수</strong><br>
113<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=xEeFrLSkMm8" style="color:#20A2A2">봄날(Spring Day)</a></strong>
`
}, {
cat: 'male', name: '빅뱅', value: 88,
icon: 'img/빅뱅.png',
desc: `
<strong>멤버</strong><br>
G-DRAGON, 태양, 대성, T.O.P, 승리<br><br>
<strong>발매곡 수</strong><br>
88<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=2ips2mM7Zqw" style="color:#20A2A2">뱅뱅뱅(BANG BANG BANG)</a></strong>
`
}, {
cat: 'male', name: '워너원', value: 15,
icon: 'img/워너원.png',
desc: `
<strong>멤버</strong><br>
강다니엘, 박지훈, 이대휘, 김재환, 옹성우, 박우진,<br>
라이관린, 윤지성, 황민현, 배진영, 하성운<br><br>
<strong>발매곡 수</strong><br>
15<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=EVaV7AwqBWg" style="color:#20A2A2">에너제틱(Energetic) </a></strong>
`
}, {
cat: 'female', name: '레드벨벳', value: 65,
icon: 'img/레드벨벳.png',
desc: `
<strong>멤버</strong><br>
웬디, 아이린, 슬기, 조이, 예리<br><br>
<strong>발매곡 수</strong><br>
65<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=WyiIGEHQP8o" style="color:#AA37F5">빨간 맛(Red Flavor)</a></strong>
`
}, {
cat: 'female', name: '마마무', value: 62,
icon: 'img/마마무.png',
desc: `
<strong>멤버</strong><br>
솔라, 문별, 휘인, 화사<br><br>
<strong>발매곡 수</strong><br>
62<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=0FB2EoKTK_Q" style="color:#AA37F5">별이 빛나는 밤(Starry Night)</a></strong>
`
}, {
cat: 'male', name: '위너', value: 31,
icon: 'img/위너.png',
desc: `
<strong>멤버</strong><br>
강승윤, 이승훈, MINO, 김진우<br><br>
<strong>발매곡 수</strong><br>
31<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=4tBnF46ybZk" style="color:#20A2A2">REALLY REALLY</a></strong>
`
}, {
cat: 'female', name: '트와이스', value: 51,
icon: 'img/트와이스.png',
desc: `
<strong>멤버</strong><br>
나연, 정연, 모모, 사나, 지효,<br>
미나, 다현, 채영, 쯔위<br><br>
<strong>발매곡 수</strong><br>
51<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=c7rCyll5AeY" style="color:#AA37F5">CHEER UP</a></strong>
`
}, {
cat: 'male', name: '비투비', value: 95,
icon: 'img/비투비.png',
desc: `
<strong>멤버</strong><br>
서은광, 이민혁, 이창섭, 임현식,<br>
프니엘, 정일훈, 육성재<br><br>
<strong>발매곡 수</strong><br>
95<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=4bykFvnRzno" style="color:#20A2A2">그리워하다(Missing You)</a></strong>
`
}, {
cat: 'male', name: '비스트', value: 83,
icon: 'img/비스트.png',
desc: `
<strong>멤버</strong><br>
윤두준, 용준형, 양요섭, 이기광,<br>
손동운, 장현승<br><br>
<strong>발매곡 수</strong><br>
83<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=oCmMbil5wCY" style="color:#20A2A2">12시 30분(12:30)</a></strong>
`
}, {
cat: 'male', name: '첸백시', value: 16,
icon: 'img/첸백시.png',
desc: `
<strong>멤버</strong><br>
첸, 백현, 시우민<br><br>
<strong>발매곡 수</strong><br>
16<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=Ib674A1yMtg" style="color:#20A2A2">花요일(bloomingday)</a></strong>
`
}, {
cat: 'female', name: '에이핑크', value: 51,
icon: 'img/에이핑크.png',
desc: `
<strong>멤버</strong><br>
정은지, 손나은, 박초롱, 오하영,
<br>김남주, 윤보미<br><br>
<strong>발매곡 수</strong><br>
51<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=8dVjSvLzD1I" style="color:#AA37F5">LUV</a></strong>
`
}, {
cat: 'male', name: '세븐틴', value: 60,
icon: 'img/세븐틴.png',
desc: `
<strong>멤버</strong><br>
S.COUPS, 정한, 조슈아, 준, 호시, 원우,<br>
도겸, 민규, 디에잇, 승관,<br>
Vernon, 디노, WOOZI <br><br>
<strong>발매곡 수</strong><br>
60<br><br>
<strong>인기곡</strong><br>
<strong><a href="https://www.youtube.com/watch?v=zEkg4GBQumc" style="color:#20A2A2">울고 싶지 않아(Don't Wanna Cry)</a></strong>
`
}, {
cat: 'male', name: '블락비', value: 44,