| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115 |
- /**
- * Charts ChartsJS
- */
- 'use strict';
-
- document.addEventListener('DOMContentLoaded', function (e) {
- // Color Variables
- const purpleColor = '#836AF9',
- yellowColor = '#ffe800',
- cyanColor = '#28dac6',
- orangeColor = '#FF8132',
- orangeLightColor = '#FDAC34',
- oceanBlueColor = '#299AFF',
- greyColor = '#4F5D70',
- greyLightColor = '#EDF1F4',
- blueColor = '#2B9AFF',
- blueLightColor = '#84D0FF',
- blueDarkColor = '#1D9FF2';
-
- // overriding color variables for chartjs
- let cardColor, headingColor, labelColor, borderColor, legendColor, info, danger, primary;
-
- if (isDarkStyle) {
- cardColor = window.Helpers.getCssVar('paper-bg', true);
- headingColor = window.Helpers.getCssVar('heading-color', true);
- labelColor = window.Helpers.getCssVar('secondary-color', true);
- legendColor = window.Helpers.getCssVar('body-color', true);
- borderColor = window.Helpers.getCssVar('border-color', true);
- primary = window.Helpers.getCssVar('primary', true);
- info = window.Helpers.getCssVar('info', true);
- danger = window.Helpers.getCssVar('danger', true);
- } else {
- cardColor = window.Helpers.getCssVar('paper-bg', true);
- headingColor = window.Helpers.getCssVar('heading-color', true);
- labelColor = window.Helpers.getCssVar('secondary-color', true);
- legendColor = window.Helpers.getCssVar('body-color', true);
- borderColor = window.Helpers.getCssVar('border-color', true);
- primary = window.Helpers.getCssVar('primary', true);
- info = window.Helpers.getCssVar('info', true);
- danger = window.Helpers.getCssVar('danger', true);
- }
-
- // Set height according to their data-height
- // --------------------------------------------------------------------
- const chartList = document.querySelectorAll('.chartjs');
- chartList.forEach(function (chartListItem) {
- chartListItem.height = chartListItem.dataset.height;
- });
-
- // Bar Chart
- // --------------------------------------------------------------------
- const barChart = document.getElementById('barChart');
- if (barChart) {
- const barChartVar = new Chart(barChart, {
- type: 'bar',
- data: {
- labels: [
- '7/12',
- '8/12',
- '9/12',
- '10/12',
- '11/12',
- '12/12',
- '13/12',
- '14/12',
- '15/12',
- '16/12',
- '17/12',
- '18/12',
- '19/12'
- ],
- datasets: [
- {
- data: [275, 90, 190, 205, 125, 85, 55, 87, 127, 150, 230, 280, 190],
- backgroundColor: cyanColor,
- borderColor: 'transparent',
- maxBarThickness: 15,
- borderRadius: {
- topRight: 15,
- topLeft: 15
- }
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- animation: {
- duration: 500
- },
- plugins: {
- tooltip: {
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- },
- legend: {
- display: false
- }
- },
- scales: {
- x: {
- grid: {
- color: borderColor,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- color: labelColor
- }
- },
- y: {
- min: 0,
- max: 400,
- grid: {
- color: borderColor,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- stepSize: 100,
- color: labelColor
- }
- }
- }
- }
- });
- }
-
- // Horizontal Bar Chart
- // --------------------------------------------------------------------
-
- const horizontalBarChart = document.getElementById('horizontalBarChart');
- if (horizontalBarChart) {
- const horizontalBarChartVar = new Chart(horizontalBarChart, {
- type: 'bar',
- data: {
- labels: ['MON', 'TUE', 'WED ', 'THU', 'FRI', 'SAT', 'SUN'],
- datasets: [
- {
- data: [710, 350, 470, 580, 230, 460, 120],
- backgroundColor: info,
- borderColor: 'transparent',
- maxBarThickness: 15
- }
- ]
- },
- options: {
- indexAxis: 'y',
- responsive: true,
- maintainAspectRatio: false,
- animation: {
- duration: 500
- },
- elements: {
- bar: {
- borderRadius: {
- topRight: 15,
- bottomRight: 15
- }
- }
- },
- plugins: {
- tooltip: {
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- },
- legend: {
- display: false
- }
- },
- scales: {
- x: {
- min: 0,
- grid: {
- color: borderColor,
- borderColor: borderColor
- },
- ticks: {
- color: labelColor
- }
- },
- y: {
- grid: {
- borderColor: borderColor,
- display: false,
- drawBorder: false
- },
- ticks: {
- color: labelColor
- }
- }
- }
- }
- });
- }
-
- // Line Chart
- // --------------------------------------------------------------------
-
- const lineChart = document.getElementById('lineChart');
- if (lineChart) {
- const lineChartVar = new Chart(lineChart, {
- type: 'line',
- data: {
- labels: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140],
- datasets: [
- {
- data: [80, 150, 180, 270, 210, 160, 160, 202, 265, 210, 270, 255, 290, 360, 375],
- label: 'Europe',
- borderColor: danger,
- tension: 0.5,
- pointStyle: 'circle',
- backgroundColor: danger,
- fill: false,
- pointRadius: 1,
- pointHoverRadius: 5,
- pointHoverBorderWidth: 5,
- pointBorderColor: 'transparent',
- pointHoverBorderColor: cardColor,
- pointHoverBackgroundColor: danger
- },
- {
- data: [80, 125, 105, 130, 215, 195, 140, 160, 230, 300, 220, 170, 210, 200, 280],
- label: 'Asia',
- borderColor: primary,
- tension: 0.5,
- pointStyle: 'circle',
- backgroundColor: primary,
- fill: false,
- pointRadius: 1,
- pointHoverRadius: 5,
- pointHoverBorderWidth: 5,
- pointBorderColor: 'transparent',
- pointHoverBorderColor: cardColor,
- pointHoverBackgroundColor: primary
- },
- {
- data: [80, 99, 82, 90, 115, 115, 74, 75, 130, 155, 125, 90, 140, 130, 180],
- label: 'Africa',
- borderColor: yellowColor,
- tension: 0.5,
- pointStyle: 'circle',
- backgroundColor: yellowColor,
- fill: false,
- pointRadius: 1,
- pointHoverRadius: 5,
- pointHoverBorderWidth: 5,
- pointBorderColor: 'transparent',
- pointHoverBorderColor: cardColor,
- pointHoverBackgroundColor: yellowColor
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- scales: {
- x: {
- grid: {
- color: borderColor,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- color: labelColor
- }
- },
- y: {
- scaleLabel: {
- display: true
- },
- min: 0,
- max: 400,
- ticks: {
- color: labelColor,
- stepSize: 100
- },
- grid: {
- color: borderColor,
- drawBorder: false,
- borderColor: borderColor
- }
- }
- },
- plugins: {
- tooltip: {
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- },
- htmlLegend: {
- containerID: 'legendContainer'
- },
- legend: {
- display: false
- }
- }
- },
- plugins: [LegendUtils.htmlLegendPlugin]
- });
- }
-
- // Radar Chart
- // --------------------------------------------------------------------
-
- const radarChart = document.getElementById('radarChart');
- if (radarChart) {
- // For radar gradient color
- const gradientBlue = radarChart.getContext('2d').createLinearGradient(0, 0, 0, 150);
- gradientBlue.addColorStop(0, 'rgba(85, 85, 255, 0.9)');
- gradientBlue.addColorStop(1, 'rgba(151, 135, 255, 0.8)');
-
- const gradientRed = radarChart.getContext('2d').createLinearGradient(0, 0, 0, 150);
- gradientRed.addColorStop(0, 'rgba(255, 85, 184, 0.9)');
- gradientRed.addColorStop(1, 'rgba(255, 135, 135, 0.8)');
-
- const radarChartVar = new Chart(radarChart, {
- type: 'radar',
- data: {
- labels: ['STA', 'STR', 'AGI', 'VIT', 'CHA', 'INT'],
- datasets: [
- {
- label: 'Donté Panlin',
- data: [25, 59, 90, 81, 60, 82],
- fill: true,
- pointStyle: 'dash',
- backgroundColor: gradientRed,
- borderColor: 'transparent',
- pointBorderColor: 'transparent'
- },
- {
- label: 'Mireska Sunbreeze',
- data: [40, 100, 40, 90, 40, 90],
- fill: true,
- pointStyle: 'dash',
- backgroundColor: gradientBlue,
- borderColor: 'transparent',
- pointBorderColor: 'transparent'
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- animation: {
- duration: 500
- },
- scales: {
- r: {
- ticks: {
- maxTicksLimit: 1,
- display: false,
- color: labelColor
- },
- grid: {
- color: borderColor
- },
- angleLines: { color: borderColor },
- pointLabels: {
- color: labelColor
- }
- }
- },
- plugins: {
- legend: {
- rtl: isRtl,
- position: 'top',
- labels: {
- padding: 25,
- color: legendColor
- }
- },
- tooltip: {
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- }
- }
- }
- });
- }
-
- // Polar Chart
- // --------------------------------------------------------------------
-
- const polarChart = document.getElementById('polarChart');
- if (polarChart) {
- const polarChartVar = new Chart(polarChart, {
- type: 'polarArea',
- data: {
- labels: ['Africa', 'Asia', 'Europe', 'America', 'Antarctica', 'Australia'],
- datasets: [
- {
- label: 'Population (millions)',
- backgroundColor: [purpleColor, yellowColor, orangeColor, oceanBlueColor, greyColor, cyanColor],
- data: [19, 17.5, 15, 13.5, 11, 9],
- borderWidth: 0
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- animation: {
- duration: 500
- },
- scales: {
- r: {
- ticks: {
- display: false,
- color: labelColor
- },
- grid: {
- display: false
- }
- }
- },
- plugins: {
- tooltip: {
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- },
- legend: {
- rtl: isRtl,
- position: 'bottom',
- labels: {
- usePointStyle: true,
- padding: 25,
- boxWidth: 8,
- boxHeight: 8,
- color: legendColor
- }
- }
- }
- }
- });
- }
-
- // Bubble Chart
- // --------------------------------------------------------------------
-
- const bubbleChart = document.getElementById('bubbleChart');
- if (bubbleChart) {
- const bubbleChartVar = new Chart(bubbleChart, {
- type: 'bubble',
- data: {
- animation: {
- duration: 10000
- },
- datasets: [
- {
- label: 'Dataset 1',
- backgroundColor: purpleColor,
- borderColor: purpleColor,
- data: [
- {
- x: 20,
- y: 74,
- r: 10
- },
- {
- x: 10,
- y: 110,
- r: 5
- },
- {
- x: 30,
- y: 165,
- r: 7
- },
- {
- x: 40,
- y: 200,
- r: 20
- },
- {
- x: 90,
- y: 185,
- r: 7
- },
- {
- x: 50,
- y: 240,
- r: 7
- },
- {
- x: 60,
- y: 275,
- r: 10
- },
- {
- x: 70,
- y: 305,
- r: 5
- },
- {
- x: 80,
- y: 325,
- r: 4
- },
- {
- x: 100,
- y: 310,
- r: 5
- },
- {
- x: 110,
- y: 240,
- r: 5
- },
- {
- x: 120,
- y: 270,
- r: 7
- },
- {
- x: 130,
- y: 300,
- r: 6
- }
- ]
- },
- {
- label: 'Dataset 2',
- backgroundColor: yellowColor,
- borderColor: yellowColor,
- data: [
- {
- x: 30,
- y: 72,
- r: 5
- },
- {
- x: 40,
- y: 110,
- r: 7
- },
- {
- x: 20,
- y: 135,
- r: 6
- },
- {
- x: 10,
- y: 160,
- r: 12
- },
- {
- x: 50,
- y: 285,
- r: 5
- },
- {
- x: 60,
- y: 235,
- r: 5
- },
- {
- x: 70,
- y: 275,
- r: 7
- },
- {
- x: 80,
- y: 290,
- r: 4
- },
- {
- x: 90,
- y: 250,
- r: 10
- },
- {
- x: 100,
- y: 220,
- r: 7
- },
- {
- x: 120,
- y: 230,
- r: 4
- },
- {
- x: 110,
- y: 320,
- r: 15
- },
- {
- x: 130,
- y: 330,
- r: 7
- }
- ]
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
-
- scales: {
- x: {
- min: 0,
- max: 140,
- grid: {
- color: borderColor,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- stepSize: 10,
- color: labelColor
- }
- },
- y: {
- min: 0,
- max: 400,
- grid: {
- color: borderColor,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- stepSize: 100,
- color: labelColor
- }
- }
- },
- plugins: {
- legend: {
- display: false
- },
- tooltip: {
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- }
- }
- }
- });
- }
-
- // LineArea Chart
- // --------------------------------------------------------------------
-
- const lineAreaChart = document.getElementById('lineAreaChart');
- if (lineAreaChart) {
- const lineAreaChartVar = new Chart(lineAreaChart, {
- type: 'line',
- data: {
- labels: [
- '7/12',
- '8/12',
- '9/12',
- '10/12',
- '11/12',
- '12/12',
- '13/12',
- '14/12',
- '15/12',
- '16/12',
- '17/12',
- '18/12',
- '19/12',
- '20/12',
- ''
- ],
- datasets: [
- {
- label: 'Africa',
- data: [40, 55, 45, 75, 65, 55, 70, 60, 100, 98, 90, 120, 125, 140, 155],
- tension: 0,
- fill: true,
- backgroundColor: blueColor,
- pointStyle: 'circle',
- borderColor: 'transparent',
- pointRadius: 0.5,
- pointHoverRadius: 5,
- pointHoverBorderWidth: 5,
- pointBorderColor: 'transparent',
- pointHoverBackgroundColor: blueColor,
- pointHoverBorderColor: cardColor
- },
- {
- label: 'Asia',
- data: [70, 85, 75, 150, 100, 140, 110, 105, 160, 150, 125, 190, 200, 240, 275],
- tension: 0,
- fill: true,
- backgroundColor: blueLightColor,
- pointStyle: 'circle',
- borderColor: 'transparent',
- pointRadius: 0.5,
- pointHoverRadius: 5,
- pointHoverBorderWidth: 5,
- pointBorderColor: 'transparent',
- pointHoverBackgroundColor: blueLightColor,
- pointHoverBorderColor: cardColor
- },
- {
- label: 'Europe',
- data: [240, 195, 160, 215, 185, 215, 185, 200, 250, 210, 195, 250, 235, 300, 315],
- tension: 0,
- fill: true,
- backgroundColor: greyLightColor,
- pointStyle: 'circle',
- borderColor: 'transparent',
- pointRadius: 0.5,
- pointHoverRadius: 5,
- pointHoverBorderWidth: 5,
- pointBorderColor: 'transparent',
- pointHoverBackgroundColor: greyLightColor,
- pointHoverBorderColor: cardColor
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- plugins: {
- htmlLegend: {
- containerID: 'legendContainer1'
- },
- legend: {
- display: false
- },
- tooltip: {
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- }
- },
- scales: {
- x: {
- grid: {
- color: 'transparent',
- borderColor: borderColor
- },
- ticks: {
- color: labelColor
- }
- },
- y: {
- min: 0,
- max: 400,
- grid: {
- color: 'transparent',
- borderColor: borderColor
- },
- ticks: {
- stepSize: 100,
- color: labelColor
- }
- }
- }
- },
- plugins: [LegendUtils.htmlLegendPlugin]
- });
- }
-
- // Doughnut Chart
- // --------------------------------------------------------------------
-
- const doughnutChart = document.getElementById('doughnutChart');
- if (doughnutChart) {
- const doughnutChartVar = new Chart(doughnutChart, {
- type: 'doughnut',
- data: {
- labels: ['Tablet', 'Mobile', 'Desktop'],
- datasets: [
- {
- data: [10, 10, 80],
- backgroundColor: [cyanColor, orangeLightColor, primary],
- borderWidth: 0,
- pointStyle: 'rectRounded'
- }
- ]
- },
- options: {
- responsive: true,
- animation: {
- duration: 500
- },
- cutout: '68%',
- plugins: {
- legend: {
- display: false
- },
- tooltip: {
- callbacks: {
- label: function (context) {
- const label = context.labels || '',
- value = context.parsed;
- const output = ' ' + label + ' : ' + value + ' %';
- return output;
- }
- },
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- }
- }
- }
- });
- }
-
- // Scatter Chart
- // --------------------------------------------------------------------
-
- const scatterChart = document.getElementById('scatterChart');
- if (scatterChart) {
- const scatterChartVar = new Chart(scatterChart, {
- type: 'scatter',
- data: {
- datasets: [
- {
- label: 'iPhone',
- data: [
- {
- x: 72,
- y: 225
- },
- {
- x: 81,
- y: 270
- },
- {
- x: 90,
- y: 230
- },
- {
- x: 103,
- y: 305
- },
- {
- x: 103,
- y: 245
- },
- {
- x: 108,
- y: 275
- },
- {
- x: 110,
- y: 290
- },
- {
- x: 111,
- y: 315
- },
- {
- x: 109,
- y: 350
- },
- {
- x: 116,
- y: 340
- },
- {
- x: 113,
- y: 260
- },
- {
- x: 117,
- y: 275
- },
- {
- x: 117,
- y: 295
- },
- {
- x: 126,
- y: 280
- },
- {
- x: 127,
- y: 340
- },
- {
- x: 133,
- y: 330
- }
- ],
- backgroundColor: primary,
- borderColor: 'transparent',
- pointBorderWidth: 2,
- pointHoverBorderWidth: 2,
- pointRadius: 5
- },
- {
- label: 'Samsung Note',
- data: [
- {
- x: 13,
- y: 95
- },
- {
- x: 22,
- y: 105
- },
- {
- x: 17,
- y: 115
- },
- {
- x: 19,
- y: 130
- },
- {
- x: 21,
- y: 125
- },
- {
- x: 35,
- y: 125
- },
- {
- x: 13,
- y: 155
- },
- {
- x: 21,
- y: 165
- },
- {
- x: 25,
- y: 155
- },
- {
- x: 18,
- y: 190
- },
- {
- x: 26,
- y: 180
- },
- {
- x: 43,
- y: 180
- },
- {
- x: 53,
- y: 202
- },
- {
- x: 61,
- y: 165
- },
- {
- x: 67,
- y: 225
- }
- ],
- backgroundColor: yellowColor,
- borderColor: 'transparent',
- pointRadius: 5
- },
- {
- label: 'OnePlus',
- data: [
- {
- x: 70,
- y: 195
- },
- {
- x: 72,
- y: 270
- },
- {
- x: 98,
- y: 255
- },
- {
- x: 100,
- y: 215
- },
- {
- x: 87,
- y: 240
- },
- {
- x: 94,
- y: 280
- },
- {
- x: 99,
- y: 300
- },
- {
- x: 102,
- y: 290
- },
- {
- x: 110,
- y: 275
- },
- {
- x: 111,
- y: 250
- },
- {
- x: 94,
- y: 280
- },
- {
- x: 92,
- y: 340
- },
- {
- x: 100,
- y: 335
- },
- {
- x: 108,
- y: 330
- }
- ],
- backgroundColor: cyanColor,
- borderColor: 'transparent',
- pointBorderWidth: 2,
- pointHoverBorderWidth: 2,
- pointRadius: 5
- }
- ]
- },
- options: {
- responsive: true,
- maintainAspectRatio: false,
- animation: {
- duration: 800
- },
- plugins: {
- legend: {
- display: false
- },
- htmlLegend: {
- containerID: 'legendContainer2'
- },
- tooltip: {
- // Updated default tooltip UI
- rtl: isRtl,
- backgroundColor: cardColor,
- titleColor: headingColor,
- bodyColor: legendColor,
- borderWidth: 1,
- borderColor: borderColor
- }
- },
- scales: {
- x: {
- min: 0,
- max: 140,
- grid: {
- color: borderColor,
- drawTicks: false,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- stepSize: 10,
- color: labelColor
- }
- },
- y: {
- min: 0,
- max: 400,
- grid: {
- color: borderColor,
- drawTicks: false,
- drawBorder: false,
- borderColor: borderColor
- },
- ticks: {
- stepSize: 100,
- color: labelColor
- }
- }
- }
- },
- plugins: [LegendUtils.htmlLegendPlugin]
- });
- }
- });
|