mirror of
https://gitlab.com/JKANetwork/CheckServer.git
synced 2026-03-07 02:52:02 +01:00
Start again
This commit is contained in:
11
vendors/Chart.js/src/charts/Chart.Bar.js
vendored
Normal file
11
vendors/Chart.js/src/charts/Chart.Bar.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
Chart.Bar = function(context, config) {
|
||||
config.type = 'bar';
|
||||
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
10
vendors/Chart.js/src/charts/Chart.Bubble.js
vendored
Normal file
10
vendors/Chart.js/src/charts/Chart.Bubble.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
Chart.Bubble = function(context, config) {
|
||||
config.type = 'bubble';
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
11
vendors/Chart.js/src/charts/Chart.Doughnut.js
vendored
Normal file
11
vendors/Chart.js/src/charts/Chart.Doughnut.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
Chart.Doughnut = function(context, config) {
|
||||
config.type = 'doughnut';
|
||||
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
11
vendors/Chart.js/src/charts/Chart.Line.js
vendored
Normal file
11
vendors/Chart.js/src/charts/Chart.Line.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
Chart.Line = function(context, config) {
|
||||
config.type = 'line';
|
||||
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
11
vendors/Chart.js/src/charts/Chart.PolarArea.js
vendored
Normal file
11
vendors/Chart.js/src/charts/Chart.PolarArea.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
Chart.PolarArea = function(context, config) {
|
||||
config.type = 'polarArea';
|
||||
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
12
vendors/Chart.js/src/charts/Chart.Radar.js
vendored
Normal file
12
vendors/Chart.js/src/charts/Chart.Radar.js
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
Chart.Radar = function(context, config) {
|
||||
config.options = Chart.helpers.configMerge({ aspectRatio: 1 }, config.options);
|
||||
config.type = 'radar';
|
||||
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
47
vendors/Chart.js/src/charts/Chart.Scatter.js
vendored
Normal file
47
vendors/Chart.js/src/charts/Chart.Scatter.js
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
"use strict";
|
||||
|
||||
module.exports = function(Chart) {
|
||||
|
||||
var defaultConfig = {
|
||||
hover: {
|
||||
mode: 'single'
|
||||
},
|
||||
|
||||
scales: {
|
||||
xAxes: [{
|
||||
type: "linear", // scatter should not use a category axis
|
||||
position: "bottom",
|
||||
id: "x-axis-1" // need an ID so datasets can reference the scale
|
||||
}],
|
||||
yAxes: [{
|
||||
type: "linear",
|
||||
position: "left",
|
||||
id: "y-axis-1"
|
||||
}]
|
||||
},
|
||||
|
||||
tooltips: {
|
||||
callbacks: {
|
||||
title: function(tooltipItems, data) {
|
||||
// Title doesn't make sense for scatter since we format the data as a point
|
||||
return '';
|
||||
},
|
||||
label: function(tooltipItem, data) {
|
||||
return '(' + tooltipItem.xLabel + ', ' + tooltipItem.yLabel + ')';
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
// Register the default config for this type
|
||||
Chart.defaults.scatter = defaultConfig;
|
||||
|
||||
// Scatter charts use line controllers
|
||||
Chart.controllers.scatter = Chart.controllers.line;
|
||||
|
||||
Chart.Scatter = function(context, config) {
|
||||
config.type = 'scatter';
|
||||
return new Chart(context, config);
|
||||
};
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user