Revision 490d110e
Von Bernd Bleßmann vor etwa 2 Jahren hinzugefügt
- ID 490d110e9ab2617e86f74d0dac9eb1c62394b6c8
- Vorgänger 2e6fe034
js/kivi.CustomerVendorTurnover.js | ||
---|---|---|
89 | 89 |
ns.chart(data); |
90 | 90 |
}; |
91 | 91 |
|
92 |
ns.background_colors = function() { return [ |
|
93 |
'rgba(255, 0, 0, 0.2)', |
|
94 |
'rgba(191, 0, 0, 0.2)', |
|
95 |
'rgba(127, 0, 0, 0.2)', |
|
96 |
'rgba(63, 0, 0, 0.2)', |
|
97 |
'rgba(0, 255, 0, 0.2)', |
|
98 |
'rgba(0, 191, 0, 0.2)', |
|
99 |
'rgba(0, 127, 0, 0.2)', |
|
100 |
'rgba(0, 63, 0, 0.2)', |
|
101 |
'rgba(0, 0, 255, 0.2)', |
|
102 |
'rgba(0, 0, 191, 0.2)', |
|
103 |
'rgba(0, 0, 127, 0.2)', |
|
104 |
'rgba(0, 0, 63, 0.2)' |
|
105 |
]}; |
|
106 |
|
|
107 |
ns.border_colors = function() { return [ |
|
108 |
'rgba(255, 0, 0, 1)', |
|
109 |
'rgba(191, 0, 0, 1)', |
|
110 |
'rgba(127, 0, 0, 1)', |
|
111 |
'rgba(63, 0, 0, 1)', |
|
112 |
'rgba(0, 255, 0, 1)', |
|
113 |
'rgba(0, 191, 0, 1)', |
|
114 |
'rgba(0, 127, 0, 1)', |
|
115 |
'rgba(0, 63, 0, 1)', |
|
116 |
'rgba(0, 0, 255, 1)', |
|
117 |
'rgba(0, 0, 191, 1)', |
|
118 |
'rgba(0, 0, 127, 1)', |
|
119 |
'rgba(0, 0, 63, 1)' |
|
120 |
]}; |
|
121 |
|
|
92 | 122 |
ns.chart = function(data) { |
93 | 123 |
const ctx = 'turnovers_chart'; |
94 | 124 |
const chart = new Chart(ctx, { |
... | ... | |
97 | 127 |
datasets: [{ |
98 | 128 |
label: kivi.t8('Net.Turnover'), |
99 | 129 |
data: data, |
100 |
backgroundColor: [ |
|
101 |
'rgba(255, 99, 132, 0.2)', |
|
102 |
'rgba(54, 162, 235, 0.2)', |
|
103 |
'rgba(255, 206, 86, 0.2)', |
|
104 |
'rgba(75, 192, 192, 0.2)', |
|
105 |
'rgba(153, 102, 255, 0.2)', |
|
106 |
'rgba(255, 159, 64, 0.2)' |
|
107 |
], |
|
108 |
borderColor: [ |
|
109 |
'rgba(255, 99, 132, 1)', |
|
110 |
'rgba(54, 162, 235, 1)', |
|
111 |
'rgba(255, 206, 86, 1)', |
|
112 |
'rgba(75, 192, 192, 1)', |
|
113 |
'rgba(153, 102, 255, 1)', |
|
114 |
'rgba(255, 159, 64, 1)' |
|
115 |
], |
|
130 |
backgroundColor: ns.background_colors, |
|
131 |
borderColor: ns.border_colors, |
|
116 | 132 |
borderWidth: 1 |
117 | 133 |
}, |
118 | 134 |
{ |
Auch abrufbar als: Unified diff
Umsatzstatistik-Chart: 12 Farben