Cumulate graph
This commit is contained in:
parent
25a1d44ffe
commit
542fd94012
|
@ -23,19 +23,11 @@ var jsonfileRW = $.getJSON( "../data/cum-daily.json", function(data) {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: {
|
data: {
|
||||||
labels: date,
|
labels: date,
|
||||||
datasets: [{
|
datasets: [
|
||||||
label: 'Ḡ1 reçus sur les simples portefeuilles',
|
|
||||||
data: rwallets,
|
|
||||||
backgroundColor: 'rgba(0, 119, 204, 0.3)',
|
{
|
||||||
pointBorderWidth: 1,
|
label: 'Portefeuilles membres',
|
||||||
pointHoverRadius: 6,
|
|
||||||
pointHoverBackgroundColor: "beige",
|
|
||||||
pointHoverBorderColor: "brown",
|
|
||||||
pointHoverBorderWidth: 2,
|
|
||||||
pointRadius: 1,
|
|
||||||
pointHitRadius: 4
|
|
||||||
}, {
|
|
||||||
label: 'Ḡ1 reçus sur les portefeuilles membres',
|
|
||||||
data: rmembers,
|
data: rmembers,
|
||||||
backgroundColor: 'rgba(0, 178, 0, 0.3)',
|
backgroundColor: 'rgba(0, 178, 0, 0.3)',
|
||||||
pointBorderWidth: 1,
|
pointBorderWidth: 1,
|
||||||
|
@ -45,11 +37,45 @@ var jsonfileRW = $.getJSON( "../data/cum-daily.json", function(data) {
|
||||||
pointHoverBorderWidth: 2,
|
pointHoverBorderWidth: 2,
|
||||||
pointRadius: 1,
|
pointRadius: 1,
|
||||||
pointHitRadius: 4
|
pointHitRadius: 4
|
||||||
}]
|
},
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
label: 'Simples portefeuilles',
|
||||||
|
data: rwallets,
|
||||||
|
backgroundColor: 'rgba(0, 119, 204, 0.3)',
|
||||||
|
pointBorderWidth: 1,
|
||||||
|
pointHoverRadius: 6,
|
||||||
|
pointHoverBackgroundColor: "beige",
|
||||||
|
pointHoverBorderColor: "brown",
|
||||||
|
pointHoverBorderWidth: 2,
|
||||||
|
pointRadius: 1,
|
||||||
|
pointHitRadius: 4
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
maintainAspectRatio: false,
|
maintainAspectRatio: false,
|
||||||
responsive: true
|
responsive: true,
|
||||||
|
|
||||||
|
|
||||||
|
scales: {
|
||||||
|
xAxes: [{
|
||||||
|
stacked: true
|
||||||
|
}],
|
||||||
|
yAxes: [
|
||||||
|
{
|
||||||
|
id: 'y-axis',
|
||||||
|
stacked: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var myChartRW = new Chart(ctx, config);
|
var myChartRW = new Chart(ctx, config);
|
||||||
|
@ -61,10 +87,11 @@ var jsonfileRW = $.getJSON( "../data/cum-daily.json", function(data) {
|
||||||
type: 'line',
|
type: 'line',
|
||||||
data: {
|
data: {
|
||||||
labels: date,
|
labels: date,
|
||||||
datasets: [{
|
datasets: [
|
||||||
label: 'Nombre de simple portefeuilles',
|
{
|
||||||
data: nbrwallets,
|
label: 'Portefeuilles membres',
|
||||||
backgroundColor: 'rgba(0, 119, 204, 0.3)',
|
data: nbrmembers,
|
||||||
|
backgroundColor: 'rgba(0, 178, 0, 0.3)',
|
||||||
pointBorderWidth: 1,
|
pointBorderWidth: 1,
|
||||||
pointHoverRadius: 6,
|
pointHoverRadius: 6,
|
||||||
pointHoverBackgroundColor: "beige",
|
pointHoverBackgroundColor: "beige",
|
||||||
|
@ -72,10 +99,12 @@ var jsonfileRW = $.getJSON( "../data/cum-daily.json", function(data) {
|
||||||
pointHoverBorderWidth: 2,
|
pointHoverBorderWidth: 2,
|
||||||
pointRadius: 1,
|
pointRadius: 1,
|
||||||
pointHitRadius: 4
|
pointHitRadius: 4
|
||||||
}, {
|
},
|
||||||
label: 'Nombre de portefeuilles membres',
|
|
||||||
data: nbrmembers,
|
{
|
||||||
backgroundColor: 'rgba(0, 178, 0, 0.3)',
|
label: 'Simples portefeuilles',
|
||||||
|
data: nbrwallets,
|
||||||
|
backgroundColor: 'rgba(0, 119, 204, 0.3)',
|
||||||
pointBorderWidth: 1,
|
pointBorderWidth: 1,
|
||||||
pointHoverRadius: 6,
|
pointHoverRadius: 6,
|
||||||
pointHoverBackgroundColor: "beige",
|
pointHoverBackgroundColor: "beige",
|
||||||
|
@ -87,7 +116,21 @@ var jsonfileRW = $.getJSON( "../data/cum-daily.json", function(data) {
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
maintainAspectRatio: true,
|
maintainAspectRatio: true,
|
||||||
responsive: true
|
responsive: true,
|
||||||
|
|
||||||
|
scales: {
|
||||||
|
xAxes: [{
|
||||||
|
stacked: true
|
||||||
|
}],
|
||||||
|
yAxes: [
|
||||||
|
{
|
||||||
|
id: 'y-axis',
|
||||||
|
stacked: true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue