D:
/
vhosts
/
kolejfm.com.tr
/
admin.kolejfm.com.tr
/
content
/
assets
/
plugins
/
Chart.js
/
Upload File
HOME
(function(window, document, $, undefined) { "use strict"; $(function() { if ($('#lineChart').length) { var ctx = document.getElementById('lineChart').getContext('2d'); var myChart = new Chart(ctx, { type: 'line', data: { labels: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'], datasets: [{ label: 'Google', data: [13, 20, 4, 18, 7, 4, 8], backgroundColor: "rgb(255, 255, 255)", borderColor: "transparent", pointRadius :"0", borderWidth: 1 }, { label: 'Facebook', data: [3, 30, 6, 6, 3, 4, 11], backgroundColor: "rgba(255, 255, 255, 0.25)", borderColor: "transparent", pointRadius :"0", borderWidth: 1 }] }, options: { legend: { display: true, labels: { fontColor: '#ddd', boxWidth:40 } }, tooltips: { enabled:false }, scales: { xAxes: [{ ticks: { beginAtZero:true, fontColor: '#ddd' }, gridLines: { display: true , color: "rgba(221, 221, 221, 0.08)" }, }], yAxes: [{ ticks: { beginAtZero:true, fontColor: '#ddd' }, gridLines: { display: true , color: "rgba(221, 221, 221, 0.08)" }, }] } } }); } if ($('#barChart').length) { var ctx = document.getElementById("barChart").getContext('2d'); var myChart = new Chart(ctx, { type: 'bar', data: { labels: ['Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa', 'Su'], datasets: [{ label: 'Google', data: [13, 20, 4, 18, 29, 25, 8], backgroundColor: "rgba(255, 255, 255, 0.25)" }, { label: 'Facebook', data: [31, 30, 6, 6, 21, 4, 11], backgroundColor: "#fff" }] }, options: { legend: { display: true, labels: { fontColor: '#ddd', boxWidth:40 } }, tooltips: { enabled:false }, scales: { xAxes: [{ barPercentage: .5, ticks: { beginAtZero:true, fontColor: '#ddd' }, gridLines: { display: true , color: "rgba(221, 221, 221, 0.08)" }, }], yAxes: [{ ticks: { beginAtZero:true, fontColor: '#ddd' }, gridLines: { display: true , color: "rgba(221, 221, 221, 0.08)" }, }] } } }); } if ($('#polarChart').length) { var ctx = document.getElementById("polarChart").getContext('2d'); var myChart = new Chart(ctx, { type: 'polarArea', data: { labels: ["Lable1", "Lable2", "Lable3", "Lable4"], datasets: [{ backgroundColor: [ "rgba(255, 255, 255, 0.35)", "#ffffff", "rgba(255, 255, 255, 0.12)", "rgba(255, 255, 255, 0.71)" ], data: [13, 20, 11, 18], borderWidth: [0, 0, 0, 0] }] }, options: { legend: { position :"right", display: true, labels: { fontColor: '#ddd', boxWidth:15 } }, scale: { gridLines: { color: "rgba(221, 221, 221, 0.12)" }, } } }); } if ($('#pieChart').length) { var ctx = document.getElementById("pieChart").getContext('2d'); var myChart = new Chart(ctx, { type: 'pie', data: { labels: ["Lable1", "Lable2", "Lable3", "Lable4"], datasets: [{ backgroundColor: [ "rgba(255, 255, 255, 0.35)", "#ffffff", "rgba(255, 255, 255, 0.12)", "rgba(255, 255, 255, 0.71)" ], data: [13, 120, 11, 20], borderWidth: [0, 0, 0, 0] }] }, options: { legend: { position :"right", display: true, labels: { fontColor: '#ddd', boxWidth:15 } } } }); } if ($('#doughnutChart').length) { var ctx = document.getElementById("doughnutChart").getContext('2d'); var myChart = new Chart(ctx, { type: 'doughnut', data: { labels: ["Lable1", "Lable2", "Lable3", "Lable4"], datasets: [{ backgroundColor: [ "rgba(255, 255, 255, 0.35)", "#ffffff", "rgba(255, 255, 255, 0.12)", "rgba(255, 255, 255, 0.71)" ], data: [13, 120, 11, 20], borderWidth: [0, 0, 0, 0] }] }, options: { legend: { position :"right", display: true, labels: { fontColor: '#ddd', boxWidth:15 } } } }); } }); })(window, document, window.jQuery);