別にIIFEである必要性ないじゃん
This commit is contained in:
		@@ -146,40 +146,37 @@
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        (function () {
 | 
			
		||||
            var context = document.getElementById('global-count-graph').getContext('2d');
 | 
			
		||||
            var chart = new Chart(context, {
 | 
			
		||||
                type: 'bar',
 | 
			
		||||
                data: {
 | 
			
		||||
                    labels: @json(array_keys($globalEjaculationCounts)),
 | 
			
		||||
                    datasets: [{
 | 
			
		||||
                        data: @json(array_values($globalEjaculationCounts)),
 | 
			
		||||
                        backgroundColor: 'rgba(0, 0, 0, .1)',
 | 
			
		||||
                        borderColor: 'rgba(0, 0, 0, .25)',
 | 
			
		||||
                        borderWidth: 1
 | 
			
		||||
                    }]
 | 
			
		||||
        new Chart(document.getElementById('global-count-graph').getContext('2d'), {
 | 
			
		||||
            type: 'bar',
 | 
			
		||||
            data: {
 | 
			
		||||
                labels: @json(array_keys($globalEjaculationCounts)),
 | 
			
		||||
                datasets: [{
 | 
			
		||||
                    data: @json(array_values($globalEjaculationCounts)),
 | 
			
		||||
                    backgroundColor: 'rgba(0, 0, 0, .1)',
 | 
			
		||||
                    borderColor: 'rgba(0, 0, 0, .25)',
 | 
			
		||||
                    borderWidth: 1
 | 
			
		||||
                }]
 | 
			
		||||
            },
 | 
			
		||||
            options: {
 | 
			
		||||
                maintainAspectRatio: false,
 | 
			
		||||
                legend: {
 | 
			
		||||
                    display: false
 | 
			
		||||
                },
 | 
			
		||||
                options: {
 | 
			
		||||
                    maintainAspectRatio: false,
 | 
			
		||||
                    legend: {
 | 
			
		||||
                elements: {
 | 
			
		||||
                    line: {}
 | 
			
		||||
                },
 | 
			
		||||
                scales: {
 | 
			
		||||
                    xAxes: [{
 | 
			
		||||
                        display: false
 | 
			
		||||
                    },
 | 
			
		||||
                    elements: {
 | 
			
		||||
                        line: {}
 | 
			
		||||
                    },
 | 
			
		||||
                    scales: {
 | 
			
		||||
                        xAxes: [{
 | 
			
		||||
                            display: false
 | 
			
		||||
                        }],
 | 
			
		||||
                        yAxes: [{
 | 
			
		||||
                            display: false,
 | 
			
		||||
                            ticks: {
 | 
			
		||||
                                beginAtZero: true
 | 
			
		||||
                            }
 | 
			
		||||
                        }]
 | 
			
		||||
                    }
 | 
			
		||||
                    }],
 | 
			
		||||
                    yAxes: [{
 | 
			
		||||
                        display: false,
 | 
			
		||||
                        ticks: {
 | 
			
		||||
                            beginAtZero: true
 | 
			
		||||
                        }
 | 
			
		||||
                    }]
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
        }());
 | 
			
		||||
            }
 | 
			
		||||
        });
 | 
			
		||||
    </script>
 | 
			
		||||
@endpush
 | 
			
		||||
		Reference in New Issue
	
	Block a user