Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPatrik Kernstock <info@pkern.at>2018-07-19 00:44:31 +0300
committerPatrik Kernstock <info@pkern.at>2018-07-19 00:44:31 +0300
commitf5d84031962d6bde26b2643852bf54763ed92e27 (patch)
tree182baac5ca22446bdd268f0ed91130c924cf1e3b /js
parentf725c9154932eccfbdd5aab9d3acd464b903f363 (diff)
Re-idented chartx lines
Signed-off-by: Patrik Kernstock <info@pkern.at>
Diffstat (limited to 'js')
-rw-r--r--js/script.js156
1 files changed, 78 insertions, 78 deletions
diff --git a/js/script.js b/js/script.js
index 490cc08..375dbd6 100644
--- a/js/script.js
+++ b/js/script.js
@@ -140,46 +140,46 @@
var ctx = document.getElementById("sharecanvas");
sharesChart = new Chart(ctx, {
- type: 'bar',
- data: {
- labels: [
- t('serverinfo', 'Users'),
- t('serverinfo', 'Groups'),
- t('serverinfo', 'Links'),
- t('serverinfo', 'Federated sent'),
- t('serverinfo', 'Federated received')
- ],
- datasets: [{
- label: " ",
- data: shares_data,
- backgroundColor: [
- 'rgba(0, 0, 255, 0.2)',
- 'rgba(0, 255, 0, 0.2)',
- 'rgba(255, 0, 0, 0.2)',
- 'rgba(0, 255, 255, 0.2)',
- 'rgba(255, 0, 255, 0.2)'
- ],
- borderColor: [
- 'rgba(0, 0, 255, 1)',
- 'rgba(0, 255, 0, 1)',
- 'rgba(255, 0, 0, 1)',
- 'rgba(0, 255, 255, 1)',
- 'rgba(255, 0, 255, 1)'
- ],
- borderWidth: 1
- }]
- },
- options: {
- legend: { display:false },
- scales: {
- yAxes: [{
- ticks: {
- min: 0,
- stepSize: stepSize
- }
- }]
- }
- }
+ type: 'bar',
+ data: {
+ labels: [
+ t('serverinfo', 'Users'),
+ t('serverinfo', 'Groups'),
+ t('serverinfo', 'Links'),
+ t('serverinfo', 'Federated sent'),
+ t('serverinfo', 'Federated received')
+ ],
+ datasets: [{
+ label: " ",
+ data: shares_data,
+ backgroundColor: [
+ 'rgba(0, 0, 255, 0.2)',
+ 'rgba(0, 255, 0, 0.2)',
+ 'rgba(255, 0, 0, 0.2)',
+ 'rgba(0, 255, 255, 0.2)',
+ 'rgba(255, 0, 255, 0.2)'
+ ],
+ borderColor: [
+ 'rgba(0, 0, 255, 1)',
+ 'rgba(0, 255, 0, 1)',
+ 'rgba(255, 0, 0, 1)',
+ 'rgba(0, 255, 255, 1)',
+ 'rgba(255, 0, 255, 1)'
+ ],
+ borderWidth: 1
+ }]
+ },
+ options: {
+ legend: { display:false },
+ scales: {
+ yAxes: [{
+ ticks: {
+ min: 0,
+ stepSize: stepSize
+ }
+ }]
+ }
+ }
});
}
@@ -200,44 +200,44 @@
var ctx = document.getElementById("activeuserscanvas");
activeusersChart = new Chart(ctx, {
- type: 'line',
- data: {
- labels: [
- t('serverinfo', 'Last 24 hours'),
- t('serverinfo', 'Last 1 hour'),
- t('serverinfo', 'Last 5 mins')
- ],
- datasets: [{
- label: " ",
- data: activeUsers_data,
- fill: false,
- borderColor: [ 'rgba(0, 0, 255, 1)' ],
- borderWidth: 1,
- borderDashOffset: 0.0,
- borderJoinStyle: 'miter',
- pointBorderColor: 'rgba(0, 0, 255, 1)',
- pointBackgroundColor: "#fff",
- pointBorderWidth: 1,
- pointHoverRadius: 5,
- pointHoverBackgroundColor: "rgba(0,0,255,0.6)",
- pointHoverBorderColor: "rgba(0, 0, 255, 1)",
- pointHoverBorderWidth: 1,
- pointRadius: 5,
- pointHitRadius: 10,
- lineTension: 0
- }]
- },
- options: {
- legend: { display:false },
- scales: {
- yAxes: [{
- ticks: {
- min: 0,
- stepSize: stepSize
- }
- }]
- }
- }
+ type: 'line',
+ data: {
+ labels: [
+ t('serverinfo', 'Last 24 hours'),
+ t('serverinfo', 'Last 1 hour'),
+ t('serverinfo', 'Last 5 mins')
+ ],
+ datasets: [{
+ label: " ",
+ data: activeUsers_data,
+ fill: false,
+ borderColor: [ 'rgba(0, 0, 255, 1)' ],
+ borderWidth: 1,
+ borderDashOffset: 0.0,
+ borderJoinStyle: 'miter',
+ pointBorderColor: 'rgba(0, 0, 255, 1)',
+ pointBackgroundColor: "#fff",
+ pointBorderWidth: 1,
+ pointHoverRadius: 5,
+ pointHoverBackgroundColor: "rgba(0,0,255,0.6)",
+ pointHoverBorderColor: "rgba(0, 0, 255, 1)",
+ pointHoverBorderWidth: 1,
+ pointRadius: 5,
+ pointHitRadius: 10,
+ lineTension: 0
+ }]
+ },
+ options: {
+ legend: { display:false },
+ scales: {
+ yAxes: [{
+ ticks: {
+ min: 0,
+ stepSize: stepSize
+ }
+ }]
+ }
+ }
});
}
}