mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Miglioramento grafico statistiche
This commit is contained in:
@ -85,6 +85,11 @@ var chart_options = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
elements: {
|
||||||
|
line: {
|
||||||
|
tension: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
annotation: {
|
annotation: {
|
||||||
annotations: [{
|
annotations: [{
|
||||||
type: "line",
|
type: "line",
|
||||||
|
@ -33,11 +33,11 @@ class LineChart extends Stat {
|
|||||||
chart.data.datasets.push({
|
chart.data.datasets.push({
|
||||||
calendar_id: calendar_id,
|
calendar_id: calendar_id,
|
||||||
label: label,
|
label: label,
|
||||||
backgroundColor: color,
|
backgroundColor: color + '55',
|
||||||
borderColor: color,
|
borderColor: color,
|
||||||
data: dataset,
|
data: dataset,
|
||||||
labels: labels,
|
labels: labels,
|
||||||
fill: false,
|
fill: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
chart.update();
|
chart.update();
|
||||||
|
Reference in New Issue
Block a user