-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathanalysis.html
More file actions
910 lines (835 loc) · 45.6 KB
/
analysis.html
File metadata and controls
910 lines (835 loc) · 45.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>다데기 - 데잇걸즈 데이터 분석기</title>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+KR:100,300,400,500,700,900&subset=korean" rel="stylesheet">
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom fonts for this template -->
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Merriweather:400,300,300italic,400italic,700,700italic,900,900italic' rel='stylesheet' type='text/css'>
<!-- Plugin CSS -->
<link href="vendor/magnific-popup/magnific-popup.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/analysis.css" rel="stylesheet">
<!-- styles for radar and nw charts -->
<link rel="stylesheet" href="./css/radar_style.css"></link>
<link rel="stylesheet" href="./css/network_style.css"></link>
<style>
svg {
}
#bubble {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 100px;
margin-bottom: 120px;
}
#bubble1 {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 120px;
}
#chart-give {
width: 400px;
height: 500px;
background-color : #fff;
margin:0 auto;
overflow: hidden;
}
#chart-take {
width: 400px;
height: 500px;
background-color : #fff;
margin:0 auto;
overflow: hidden;
}
</style>
<script src="https://d3js.org/d3.v5.min.js"></script>
</head>
<body id="page-top" style = "background-color: #ffe1dd;">
<!-- Navigation -->
<nav class="navbar navbar-expand-lg navbar-light fixed-top" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="index.html">다데기 \(♥♥)/</a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="./index.html">PROJECT</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="./analysis.html">ANALYSIS</a>
</li>
<li class="nav-item">
<a class="nav-link js-scroll-trigger" href="./team.html">TEAM</a>
</li>
</ul>
</div>
</div>
</nav>
<header class="masthead text-center d-flex">
<div class="container my-auto">
<div class="row">
<div class="col-lg-10 mx-auto">
<h2 class="text-uppercase">
<span class="text-primary"><strong>데잇걸즈 2기 데이터 분석</strong></span>
</h2>
<hr style="color: #003792;">
<div style="display: inline-block; margin-top:10px;">
<div class="detail-box" style="margin: 25px; color: #fff;">
슬랙 분석 인원 <br/> <strong>43</strong>명 <br />
</div>
<div class="detail-box" style="margin: 25px; color: #fff;">
분석한 슬랙 채널 수 <br /><strong>10</strong>개
</div>
<div class="detail-box" style="margin: 25px; color: #fff;">
총 슬랙 글 수<br /><strong>3,829</strong>개
</div>
<div class="detail-box" style="margin: 25px; color: #fff;">
총 슬랙 댓글 수 <br /><strong>3,060</strong>개
</div>
<div class="detail-box" style="margin: 25px; color: #fff;">
총 슬랙 이모지 수 <br /><strong>16,925</strong>개
</div>
<div class="detail-box" style="margin: 25px; color: #fff;">
분석 대상 기간 <br /><strong>2018.6.28. ~ 2018.9.28.</strong>
</div>
</div>
<div style="padding-top: 30px;">
<a class="btn btn-light btn-xl js-scroll-trigger" href="#communication" style="margin: 20px">#Communication</a>
<a class="btn btn-light btn-xl js-scroll-trigger" href="#learning" style="margin: 20px">#Learning</a>
<a class="btn btn-light btn-xl js-scroll-trigger" href="#fun" style="margin: 20px">#Fun</a>
</div>
</div>
</div>
</div>
</header>
<section class="bg-white" id="communication">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#COMMUNICATION</h6>
<h2 class="section-heading"><strong>TOP 10 Emojis</strong></h2>
<h5>데잇걸즈의 TOP10 이모지</h5>
<hr class="my-4">
</div>
</div>
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">슬랙은 이모지를 통해 텍스트에 반응을 보일 수 있는 Add Reaction 기능을 제공합니다.<br>
이모지는 데잇걸즈 내에서 메시지에 응답하는 데 가장 많이 사용되는 매체로,<br>
자신의 감정을 전달할 수 있게 해줍니다.<br>
데잇걸즈 슬랙에서 3개월간 가장 많이 사용된 이모지 10개를 추출하여<br>
서로간에 어떤 감정을 가장 많이 주고받았는지 상징적으로 알아봅니다.</p>
</div>
<div class="emoji-array-1 center container" style="margin-top: 100px;">
<div id="thumbsup" style="margin-right: 40px; margin-left: 60px;">
<img class="shakable" src="img/emoji/thumbsup.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">1위<br />thumbs up</p>
<p color="blue" style="font-weight: bolder;">3,945</p>
</div>
<div id="blue_heart" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/blue_heart.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">2위<br />blue heart</p>
<p color="blue" style="font-weight: bolder;">1,130</p>
</div>
<div id="thumbsup_all" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/thumbsup_all.gif" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">3위<br />thumbs up all</p>
<p color="blue" style="font-weight: bolder;">638</p>
</div>
<div id="heart_eyes" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/heart_eyes.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">4위<br />heart eyes</p>
<p color="blue" style="font-weight: bolder;">538</p>
</div>
<div id="heart" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/heart.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">5위<br />heart</p>
<p color="blue" style="font-weight: bolder;">364</p>
</div>
</div>
<div class="emoji-array-2 container" style="margin-top: 70px;">
<div id="hahahaha" style="margin-right: 40px; margin-left: 60px;">
<img class="shakable" src="img/emoji/clapping.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">6위<br />clapping</p>
<p color="blue" style="font-weight: bolder;">330</p>
</div>
<div id="clapping" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/hahahaha.png" style="width: 100%" >
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">7위<br />hahahaha</p>
<p color="blue" style="font-weight: bolder;">314</p>
</div>
<div id="one_hundred" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/laughing.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">8위<br />laughing</p>
<p color="blue" style="font-weight: bolder;">282</p>
</div>
<div id="laughing" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/i_love_you_hand_sign.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">9위<br />handsign</p>
<p color="blue" style="font-weight: bolder;">278</p>
</div>
<div id="i_love_you_hand_sign" style="margin-right: 40px; margin-left: 40px;">
<img class="shakable" src="img/emoji/one_hundred.png" style="width: 100%">
<p color="blue" style="margin-top: 30px; margin-bottom: 5px;">10위<br />one hundred</p>
<p color="blue" style="font-weight: bolder;">258</p>
</div>
</div>
</section>
<!-- 월별 가장 인기있었던 TOP 10-->
<section class="bg-white" id="emoji-monthly">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#COMMUNICATION</h6>
<h2 class="section-heading"><strong>Monthly Top Emojis</strong></h2>
<h5>월별 가장 인기있었던 TOP 10 이모지</h5>
<hr class="my-4">
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">6월 말에서 9월 말까지 마일스톤과 중간 프로젝트,<br>
그리고 최종 프로젝트를 준비하며 우리는 참 많은 감정 변화를 겪었습니다.<br>
월별로 등장한 이모지 빈도 분석을 통해<br>
기간별로 데잇걸즈 구성원들의 주된 감정 변화를 알아봅시다.</p>
</div>
</div>
</div>
<!--버블차트 -->
<div id="bubble-chart" style="margin-top: 100px;">
<svg id="bubble">
/*July*/
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/ddongule2.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/grinning.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/slightly_smiling_face.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/clapping.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/i_love_you_hand_sign.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/one_hundred.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart_eyes.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/blue_heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup.png"></image>
/*Aug*/
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/ddongule2.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/dait_happy.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/hero.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/rolling.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart_eyes.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/hahahaha.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/blue_heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup_all.gif"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup.png"></image>
/*Sep*/
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/laughing.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/rolling.png"></image>
<image x="0" y="0" height="25" width="25"
xlink:href="./img/emoji/sob.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/scream.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/hahahaha.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart_eyes.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/clapping.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/blue_heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup_all.gif"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup.png"></image>
</svg>
<!-- d3 버블차트 js -->
<script>
let WIDTH = 1000;
let HEIGHT = 600;
var MARGINS = {T: 30, L: 50, R: 10, B: 30}
var T = 30;
var L = 50;
var R = 10;
var B = 300;
var bubble = [
{"month": 10, "count": 108},
{"month": 15, "count": 109},
{"month": 20, "count": 110},
{"month": 25, "count": 121},
{"month": 30, "count": 132},
{"month": 35, "count": 144},
{"month": 40, "count": 153},
{"month": 45, "count": 231},
{"month": 50, "count": 566},
{"month": 55, "count": 1872},
{"month": 65, "count": 145},
{"month": 70, "count": 158},
{"month": 75, "count": 164},
{"month": 80, "count": 169},
{"month": 85, "count": 196},
{"month": 90, "count": 264},
{"month": 95, "count": 279},
{"month": 100, "count": 476},
{"month": 105, "count": 509},
{"month": 105, "count": 1601},
{"month": 115, "count": 72},
{"month": 120, "count": 74},
{"month": 125, "count": 77},
{"month": 130, "count": 101},
{"month": 135, "count": 102},
{"month": 140, "count": 113},
{"month": 145, "count": 121},
{"month": 150, "count": 305},
{"month": 155, "count": 526},
{"month": 155, "count": 802}
];
var x = d3.scaleLinear()
.domain([0, 160])
.range([0, WIDTH - MARGINS.L - MARGINS.R])
var y = d3.scaleLinear()
.domain([0, 2000])
.range([HEIGHT - MARGINS.B - MARGINS.T, 0]);
// x Axis, y Axis
var xAxis = d3.axisBottom()
.scale(x)
.ticks(5);
var yAxis = d3.axisLeft()
.scale(y)
.ticks(5);
var MONTHS = ['Jul', 'Aug', 'Sep', 'Oct'];
var monthScale = d3.scalePoint()
.rangeRound([0, WIDTH - MARGINS.L - MARGINS.R - 20])
// .paddingInner(0)
// .paddingOuter(0)
.domain(MONTHS)
var xmonthAxis = d3.axisBottom()
.scale(monthScale)
// .ticks(4)
var grids = d3.select('#bubble')
.append('g')
.attr("transform", "translate(" + MARGINS.L + "," + MARGINS.T + ")")
.selectAll("grids")
.data(MONTHS)
.enter()
.append('rect')
.attr('height', HEIGHT-MARGINS.B-MARGINS.T)
.attr('width', 0.5)
.attr('x', function(d, i) {
return monthScale(d)
})
.attr('y', 0)
.style('opacity', '0.3')
d3.select("#bubble")
.attr('width', WIDTH)
.attr('height', HEIGHT)
.append("g")
.attr("transform", "translate("+ MARGINS.L +"," + (HEIGHT - MARGINS.B) + ")")
.call(xmonthAxis)
//.call(xAxis);
d3.select("#bubble")
.append("g")
.attr("transform", "translate(" + MARGINS.L + "," + MARGINS.B + ")")
.call(yAxis);
d3.select('#bubble')
.selectAll("image")
.data(bubble)
.transition()
.duration(3000)
.ease(d3.easeElastic)
.attr("x", function(d) {return x(d["month"]) + 10;})
.attr("y", function(d) {return y(d["count"]);})
</script>
</div>
<!-- d3 디폴트 이모지 뺀 버블차트 -->
<div id="bubble-chart" style="margin-top: 100px;">
<svg id="bubble1">
/*July*/
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/ddongule2.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/grinning.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/slightly_smiling_face.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/clapping.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/i_love_you_hand_sign.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/one_hundred.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart_eyes.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/blue_heart.png"></image>
/*Aug*/
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/ddongule2.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/dait_happy.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/hero.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/rolling.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart_eyes.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/hahahaha.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/blue_heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup_all.gif"></image>
/*Sep*/
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/laughing.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/rolling.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/sob.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/scream.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/hahahaha.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/heart_eyes.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/clapping.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/blue_heart.png"></image>
<image x="0" y="0" height="25" width="25" xlink:href="./img/emoji/thumbsup_all.gif"></image>
</svg>
<!--d3 디폴트 이모지 뺀 버블차트 js-->
<script>
var MARGINS = {T: 30, L: 50, R: 10, B: 30}
var T = 30;
var L = 50;
var R = 10;
var B = 300;
var bubble1 = [
{"month": 10, "count": 108},
{"month": 15, "count": 109},
{"month": 20, "count": 110},
{"month": 25, "count": 121},
{"month": 30, "count": 132},
{"month": 35, "count": 144},
{"month": 40, "count": 153},
{"month": 45, "count": 231},
{"month": 50, "count": 566},
{"month": 65, "count": 145},
{"month": 70, "count": 158},
{"month": 75, "count": 164},
{"month": 80, "count": 169},
{"month": 85, "count": 196},
{"month": 90, "count": 264},
{"month": 95, "count": 279},
{"month": 100, "count": 476},
{"month": 105, "count": 509},
{"month": 115, "count": 72},
{"month": 120, "count": 74},
{"month": 125, "count": 77},
{"month": 130, "count": 101},
{"month": 135, "count": 102},
{"month": 140, "count": 113},
{"month": 145, "count": 121},
{"month": 150, "count": 305},
{"month": 155, "count": 526},
];
var x = d3.scaleLinear()
.domain([0, 160])
.range([0, WIDTH - MARGINS.L - MARGINS.R])
var y = d3.scaleLinear()
.domain([0, 600])
.range([HEIGHT - MARGINS.B - MARGINS.T, 0]);
// x Axis, y Axis
var xAxis = d3.axisBottom()
.scale(x)
.ticks(5);
var yAxis = d3.axisLeft()
.scale(y)
.ticks(5);
var MONTHS = ['Jul', 'Aug', 'Sep', 'Oct'];
var monthScale = d3.scalePoint()
.rangeRound([0, WIDTH - MARGINS.L - MARGINS.R - 20])
// .paddingInner(0)
// .paddingOuter(0)
.domain(MONTHS)
var xmonthAxis = d3.axisBottom()
.scale(monthScale)
// .ticks(4)
var grids = d3.select('#bubble1')
.append('g')
.attr("transform", "translate(" + MARGINS.L + "," + MARGINS.T + ")")
.selectAll("grids")
.data(MONTHS)
.enter()
.append('rect')
.attr('height', HEIGHT-MARGINS.B-MARGINS.T)
.attr('width', 0.5)
.attr('x', function(d, i) {
return monthScale(d)
})
.attr('y', 0)
.style('opacity', '0.3')
d3.select("#bubble1")
.attr('width', WIDTH)
.attr('height', HEIGHT)
.append("g")
.attr("transform", "translate("+ MARGINS.L +"," + (HEIGHT - MARGINS.B) + ")")
.call(xmonthAxis)
//.call(xAxis);
d3.select("#bubble1")
.append("g")
.attr("transform", "translate(" + MARGINS.L + "," + MARGINS.B + ")")
.call(yAxis);
d3.select('#bubble1')
.selectAll("image")
.data(bubble1)
.transition()
.duration(3000)
.ease(d3.easeElastic)
.attr("x", function(d) {return x(d["month"]) + 10;})
.attr("y", function(d) {return y(d["count"]);})
</script>
</div>
</div>
</section>
<section class="bg-white" id="emoji-give&take">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#COMMUNICATION</h6>
<h2 class="section-heading"><strong>The Best Emoji Giver & Taker</strong></h2>
<h5>가장 많이 준 사람 & 가장 많이 받은 사람</h5>
<hr class="my-4">
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">사람들에게 가장 많은 이모지를 준 데잇걸즈 구성원은 누구일까요?
<br>그리고 사람들에게 가장 많은 이모지를 준 데잇걸즈 구성원은 누구일까요?
</p>
</div>
</div>
</div>
<div class="chart-wrapper">
<div id="chart-give">
<h6>가장 많이 준 사람</h6>
<svg></svg>
<script>
var T = 20;
var L = 70;
var R = 20;
var B = 60;
var scores = [479, 523, 534, 536, 581, 713, 796, 846, 1523, 1840];
var chart = document.querySelector("#chart-give");
var x = d3.scaleLinear()
.domain([0, 2200]);
var giveNames = ['영웅', '지영', '세영', '문희', '(정)지은', '망고', '지현', '소령', '배로', '애란'];
// var y = d3.scaleBand()
// .domain(d3.range(scores.length)).padding(0.2);
var y = d3.scaleBand()
.domain(giveNames).padding(0.2);
var svg = d3.select("#chart-give svg");
var gData = svg.append("g")
.attr("class", "data");
var gxAxis = svg.append("g")
.attr("class", "x-axis axis");
var gyAxis = svg.append("g")
.attr("class", "y-axis axis")
window.addEventListener("resize", onResize);
onResize();
function onResize() {
x.range([0, chart.clientWidth - L - R]);
y.range([chart.clientHeight - T - B, 1]);
var update = gData
// var update = give></give>
.attr("transform", "translate(" + L + ", " + T + ")")
.selectAll("rect").data(scores);
var enter = update.enter()
.append("rect");
update.merge(enter)
.attr("height", y.bandwidth())
.attr("width", function(d, i) {
// return chart.clientWidth - L - R - (chart.clientWidth - L - R - x(d));
return x(d);
})
.attr("style", "fill:#537fc0")
.attr("x", 0)
.attr("y", function(d, i) {
return y(giveNames[i]);
});
gxAxis
.attr("transform", "translate(" + L + ", " + (chart.clientHeight - B) + ")")
.call(d3.axisBottom().scale(x));
gyAxis
.attr("transform", "translate(" + L + ", " + T + ")")
.call(d3.axisLeft().scale(y));
svg
.attr("width", chart.clientWidth)
.attr("height", chart.clientHeight);
}
</script>
</div>
<div id="chart-take">
<h6>가장 많이 받은 사람</h6>
<svg></svg>
<script>
var T = 20;
var L = 70;
var R = 20;
var B = 60;
var scores = [533, 550, 555, 601, 693, 791, 878, 1056, 1255, 2188];
var chart = document.querySelector("#chart-take");
var x = d3.scaleLinear()
.domain([0, 2200]);
var takeNames = ['지영', '지윤', '채원', '영웅', '소령', '세영', '배로', '(김)진영', '은지', '애란'];
var y = d3.scaleBand()
.domain(takeNames).padding(0.2);
var svg = d3.select("#chart-take svg");
var gData = svg.append("g")
.attr("class", "data");
var gxAxis = svg.append("g")
.attr("class", "x-axis axis");
var gyAxis = svg.append("g")
.attr("class", "y-axis axis")
window.addEventListener("resize", onResize);
onResize();
function onResize() {
x.range([0, chart.clientWidth - L - R]);
y.range([chart.clientHeight - T - B, 1]);
var update = gData
.attr("transform", "translate(" + L + ", " + T + ")")
.selectAll("rect").data(scores);
var enter = update.enter()
.append("rect");
update.merge(enter)
.attr("height", y.bandwidth())
.attr("width", function(d, i) {
// return chart.clientWidth - L - R - (chart.clientWidth - L - R - x(d));
return x(d);
})
.attr("style", "fill:#537fc0")
.attr("x", 0)
.attr("y", function(d, i) {
return y(takeNames[i]);
});
gxAxis
.attr("transform", "translate(" + L + ", " + (chart.clientHeight - B) + ")")
.call(d3.axisBottom().scale(x));
gyAxis
.attr("transform", "translate(" + L + ", " + T + ")")
.call(d3.axisLeft().scale(y));
svg
.attr("width", chart.clientWidth)
.attr("height", chart.clientHeight);
}
</script>
</div>
</div>
</section>
<section class="bg-white" id="network_chart">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#COMMUNICATION</h6>
<h2 class="section-heading"><strong>Network Flow</strong></h2>
<h5>슬랙 네트워크 그래프</h5>
<hr class="my-4">
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">슬랙에서 각 구성원들 사이의 네트워크 양상을 보여줍니다.<br>
구성원의 이름 위에 마우스를 올렸을 때 빨간색으로 나타나는 이름은<br>
해당 구성원이 공개 채널에서 이모지와 댓글로 가장 활발하게 소통한 구성원 5명이며,<br>
초록색은 해당 구성원이 자신의 TOP 5에 포함되어 있는 사람들입니다.
</p>
</div>
<div class="graph-area" id="network_chart_frame" style="width: 900px; height: 900px; padding:50px; margin: 0 150px;" >
<!-- 예은님자리 -->
</div>
<script src="./js/network_chart.js"></script>
<script src="https://d3js.org/d3.v3.js"></script>
<script>
get_network_chart("body #network_chart_frame");
</script>
</div>
</div>
</section>
<section class="bg-white" id="learning">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#Learning</h6>
<h2 class="section-heading"><strong>Channel Clock Graph</strong></h2>
<h5>슬랙 채널별 메시지의 양 시계 그래프</h5>
<hr class="my-4">
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">슬랙 채널 10개를 대상으로 시간 별로 오고 간 메시지의 수를 통해
<br>구성원들의 활동 시간대를 알아봅니다.
</p>
<p style="text-align:center;">각 채널 버튼을 클릭하시면 가장 메시지 수가 많았던 채널인
<br>'general', 'qanda', '오늘뭐먹지'의 메시지 워드클라우드를 보실 수 있습니다.
<br>불용어 처리 후 KRwordRank를 이용하여 가장 많이 등장한 단어를 추출해
<br>채널을 가장 잘 대표하는 이미지로 시각화하였습니다.
<br>그 외의 채널 버튼을 클릭하시면 해당 채널의 시간 별 메시지 수만을 보실 수 있습니다.
</p>
</div>
<div class="graph-area" id="radar_chart_channel">
<!-- 예은님자리 -->
<!-- 자리 맡아주셔서 감사합니다^^ :예은 -->
</div>
<script src="./js/radar_chart.js"></script>
<script src="./js/radar_data.js"></script>
<script>
window.onload = set_default_radar();
function set_default_radar() {
get_chart("body #radar_chart_channel", data_channel_whole, 600, 600, 7, 700);
};
function purge(){
var myNode = document.getElementById("radar_chart_channel");
while (myNode.firstChild) {
myNode.removeChild(myNode.firstChild);
};
};
function ContentChange(target_src, description) {
purge();
var myNode = document.getElementById("radar_chart_channel");
const desc = document.createElement('p')
desc.setAttribute("style", "font-size:0.8em;");
desc.innerText = description;
myNode.appendChild(desc);
const image_updated = document.createElement('img');
image_updated.setAttribute('src', target_src);
image_updated.setAttribute('height', 550);
image_updated.setAttribute('width', 550);
// image_updated.setAttribute('style', 'margin-left:20px; margin-right:20px');
myNode.appendChild(image_updated);
};
</script>
<div style="margin-top: 70px">
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/wordcloud_general.png', '공지나 다양한 주제의 대화를 나누는 용도로 개설된 채널입니다')" >
<a style="margin: 20px">#general</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/wordcloud_whattoeat.png', '점심 메뉴를 결정하고 함께 식사할 사람들을 모집하는 채널입니다')">
<a style="margin: 20px">#오늘뭐먹지</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/wordcloud_qanda.png', '궁금한 것이나 문제를 모두와 공유하여 함께 해결해나가는 채널입니다')" >
<a style="margin: 20px">#qanda</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_자소서.PNG', '원래 이름은 매력적인나사용제안서. 자소서 작성 수업을 진행하는 채널입니다')" >
<a style="margin: 20px">#자소서</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_random.PNG', '흥미로운 자료, 기사, 유머 컨텐츠를 공유하는 채널입니다')" >
<a style="margin: 20px">#random</a>
</button>
</div>
<div style="margin-top: 70px">
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_retrospect.PNG', '수업을 마친 후 하루를 되돌아보며 팀의 Fact, Feeling, Find를 공유하는 회고 채널입니다')" >
<a style="margin: 20px">#retrospect</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_실습.PNG', '수업에서 실습한 결과물을 공유하며 서로 칭찬해주고 배워가는 채널입니다')" >
<a style="margin: 20px">#실습</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_techskill.PNG', '기술 관련 행사 소식, 기사, 자료, 노하우를 공유하는 채널입니다')" >
<a style="margin: 20px">#techskill</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_career.PNG', '취업, 커리어 전반과 관련된 정보를 공유하는 채널입니다')" >
<a style="margin: 20px">#career</a>
</button>
<button class="btn-s btn-light" type="button" onclick="ContentChange('./img/channels/radar_나는누구.PNG', '데잇걸즈 파티에서 구성원 어릴 적 사진 알아맞추기 게임을 할 때 사용된 채널입니다')" >
<a style="margin: 20px">#나는누구</a>
</button>
</div>
</div>
</div>
</div>
</section>
<section class="bg-white" id="line">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#Learning</h6>
<h2 class="section-heading"><strong>Commits Comparison</strong></h2>
<h5>데잇걸즈 구성원의 전체 커밋과 데잇걸즈 repository 커밋의 비교 그래프</h5>
<hr class="my-4">
</div>
<div class="graph-area">
<img src="img/graph_commit.png" style="width: 100%" >
</div>
<div class="text-area">
<p> 1일 1커밋을 모토로 삼았던 데잇걸즈 교육생의 깃헙 커밋량을 살펴봅니다.
<br>파란색은 데잇걸즈 교육생들의 총 커밋량이며,
<br>붉은색은 교육생 모두가 기여한 데잇걸즈 2기 공식 repository들의 커밋량입니다.
</p>
</div>
</div>
</div>
</section>
<section class="bg-white" id="slack-github">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#Learning</h6>
<h2 class="section-heading"><strong>Slack vs Github Graph</strong></h2>
<h5>슬랙 전체와 깃헙 전체의 24시간 별 작업량을 나타낸 방사형 그래프</h5>
<hr class="my-4">
</div>
<div class="graph-area" id="radar_chart_commits_vs">
<!-- 예은님자리 -->
</div>
<script>
get_chart("body #radar_chart_commits_vs", data_commits_vs, 600, 600, 3, 30);
</script>
<div class="text-area">
<p> 데잇걸즈가 슬랙과 깃헙에서 어떤 시간대에 많이 활동했을까요?
<br>각 시간축의 그래프 끝에 마우스를 올려보면 전체 중 그 시간대의 활동 비율을 알 수 있습니다.
<br>깃헙 커밋은 수업이 끝나는 오후 5시에 22.45%로 가장 높고,
<br>슬랙 메시지는 오후 2시에 15.17%로 가장 활발한 것을 볼 수 있습니다.
</p>
</div>
</div>
</div>
</section>
<section class="bg-white" id="etc">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#Learning</h6>
<h2 class="section-heading"><strong>Keyword Wordcloud</strong></h2>
<h5>키워드 워드클라우드</h5>
<hr class="my-4">
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">데잇걸즈 2기의 대표적인 하드 스킬 6개
<br>(Python, Github, html, css, javascript, 통계)를 키워드로
<br>슬랙 텍스트에서 각 키워드와 빈번히 함께 출현한 단어들을 추출하여
<br>워드클라우드를 그려봅니다.
</p>
</div>
<div style="margin-top: 70px; paddingInner:50px; margin:50px auto;">
<img class='zoom_on_hover' src="img/final_python.png" style="width: 300px;" >
<img class='zoom_on_hover' src="img/final_github.png" style="width: 300px;" >
<img class='zoom_on_hover' src="img/final_stat.png" style="width: 300px;" >
</div>
<div style="margin-top: 70px; paddingInner:50px; margin:0 auto;">
<img class='zoom_on_hover' src="img/final_css.png" style="width: 300px;" >
<img class='zoom_on_hover' src="img/final_html2.png" style="width: 300px;" >
<img class='zoom_on_hover' src="img/final_js.png" style="width: 300px;" >
</div>
</div>
<div style="flex:left">
<a class="btn btn-light btn-xl js-scroll-trigger text-primary"href="#top">top</a>
</div>
</section>
<section class="bg-white" id="fun">
<div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h6>#Fun</h6>
<h2 class="section-heading"><strong>The Best Moment in Dataitgirls2</strong></h2>
<h5>명대사 TOP5</h5>
<hr class="my-4">
</div>
<div class="container" style="width: 800px; margin-top: 30px; word-break:keep-all;">
<p style="text-align:center;">데잇걸즈 2기 슬랙에서 최고의 순간은 언제였을까요?<br />
이모지와 댓글 순으로 Top 100 메시지를 뽑아 개인정보 유출의 소지가 있는 데이터를 전처리한 후 Top 5 결과를 뽑아보았습니다.
</p>
</div>
<div>
<img src="img/best_moment.jpg" style="width: 100%; margin-top: 100px;" >
</div>
</div>
</section>
<!-- Footer -->
<section id="footer" class="bg-pink text-white">
<div class="containter text-center">
© dataitgirls. All rights reserved.
</div>
</section>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- Plugin JavaScript -->
<script src="vendor/jquery-easing/jquery.easing.min.js"></script>
<script src="vendor/scrollreveal/scrollreveal.min.js"></script>
<script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
<!-- Custom scripts for this template -->
<script src="js/creative.js"></script>
<!-- d3.js -->
<script src="https://d3js.org/d3.v5.min.js"></script>
</body>
</html>