rails_charts 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/echarts/extension/bmap.js.map +1 -1
- data/app/assets/javascripts/echarts/extension/dataTool.js.map +1 -1
- data/app/assets/javascripts/echarts/i18n/langEL-obj.js +175 -0
- data/app/assets/javascripts/echarts/i18n/langEL.js +171 -0
- data/app/assets/javascripts/echarts/i18n/langSV-obj.js +126 -126
- data/app/assets/javascripts/echarts/i18n/langSV.js +126 -126
- data/app/assets/javascripts/echarts/i18n/langnb-NO-obj.js +174 -0
- data/app/assets/javascripts/echarts/i18n/langnb-NO.js +170 -0
- data/app/assets/javascripts/echarts/theme/rainbow.js +63 -0
- data/app/assets/javascripts/echarts/theme/v5.js +581 -0
- data/app/assets/javascripts/echarts.min.js +2 -2
- data/lib/rails_charts/version.rb +1 -1
- metadata +7 -1
@@ -38,132 +38,132 @@
|
|
38
38
|
factory({}, root.echarts);
|
39
39
|
}
|
40
40
|
})(this, function(exports, echarts) {
|
41
|
-
|
42
|
-
|
43
|
-
/**
|
44
|
-
* Language: Swedish.
|
45
|
-
*/
|
46
|
-
|
47
|
-
var localeObj = {
|
48
|
-
time: {
|
49
|
-
month: [
|
50
|
-
'januari', 'februari', 'mars', 'april', 'maj', 'juni',
|
51
|
-
'juli', 'augusti', 'september', 'oktober', 'november', 'december',
|
52
|
-
],
|
53
|
-
monthAbbr: [
|
54
|
-
'jan', 'feb', 'mar', 'apr', 'maj', 'jun',
|
55
|
-
'jul', 'aug', 'sep', 'okt', 'nov', 'dec',
|
56
|
-
],
|
57
|
-
dayOfWeek: [
|
58
|
-
'söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag',
|
59
|
-
],
|
60
|
-
dayOfWeekAbbr: [
|
61
|
-
'sön', 'mån', 'tis', 'ons', 'tor', 'fre', 'lör',
|
62
|
-
],
|
63
|
-
},
|
64
|
-
legend: {
|
65
|
-
selector: {
|
66
|
-
all: 'Alla',
|
67
|
-
inverse: 'Omvänd',
|
68
|
-
},
|
69
|
-
},
|
70
|
-
toolbox: {
|
71
|
-
brush: {
|
72
|
-
title: {
|
73
|
-
rect: 'Rektangelurval',
|
74
|
-
polygon: 'Lassomarkering',
|
75
|
-
lineX: 'Vågrätt urval',
|
76
|
-
lineY: 'Lodrätt urval',
|
77
|
-
keep: 'Behåll urval',
|
78
|
-
clear: 'Rensa urval',
|
79
|
-
},
|
80
|
-
},
|
81
|
-
dataView: {
|
82
|
-
title: 'Datavy',
|
83
|
-
lang: ['Datavy', 'Stäng', 'Uppdatera'],
|
84
|
-
},
|
85
|
-
dataZoom: {
|
86
|
-
title: {
|
87
|
-
zoom: 'Zooma',
|
88
|
-
back: 'Återställ zoom',
|
89
|
-
},
|
90
|
-
},
|
91
|
-
magicType: {
|
92
|
-
title: {
|
93
|
-
line: 'Byt till linjediagram',
|
94
|
-
bar: 'Byt till stapeldiagram',
|
95
|
-
stack: 'Stapla',
|
96
|
-
tiled: 'Sida vid sida',
|
97
|
-
},
|
98
|
-
},
|
99
|
-
restore: {
|
100
|
-
title: 'Återställ',
|
101
|
-
},
|
102
|
-
saveAsImage: {
|
103
|
-
title: 'Spara som bild',
|
104
|
-
lang: ['Högerklicka för att spara bild'],
|
105
|
-
},
|
106
|
-
},
|
107
|
-
series: {
|
108
|
-
typeNames: {
|
109
|
-
pie: 'Cirkeldiagram',
|
110
|
-
bar: 'Stapeldiagram',
|
111
|
-
line: 'Linjediagram',
|
112
|
-
scatter: 'Punktdiagram',
|
113
|
-
effectScatter: 'Punktdiagram med rippeleffekt',
|
114
|
-
radar: 'Radardiagram',
|
115
|
-
tree: 'Träd',
|
116
|
-
treemap: 'Trädkarta',
|
117
|
-
boxplot: 'Lådagram',
|
118
|
-
candlestick: 'Candlestick',
|
119
|
-
k: 'K-linjediagram',
|
120
|
-
heatmap: 'Värmekarta',
|
121
|
-
map: 'Karta',
|
122
|
-
parallel: 'Parallella koordinater',
|
123
|
-
lines: 'Linjediagram',
|
124
|
-
graph: 'Relationsgraf',
|
125
|
-
sankey: 'Sankeydiagram',
|
126
|
-
funnel: 'Trattdiagram',
|
127
|
-
gauge: 'Mätare',
|
128
|
-
pictorialBar: 'Bildstapel',
|
129
|
-
themeRiver: 'Tematisk flod',
|
130
|
-
sunburst: 'Solburstdiagram',
|
131
|
-
custom: 'Anpassat',
|
132
|
-
chart: 'Diagram',
|
133
|
-
},
|
134
|
-
},
|
135
|
-
aria: {
|
136
|
-
general: {
|
137
|
-
withTitle: 'Detta är ett diagram om "{title}"',
|
138
|
-
withoutTitle: 'Detta är ett diagram',
|
139
|
-
},
|
140
|
-
series: {
|
141
|
-
single: {
|
142
|
-
prefix: '',
|
143
|
-
withName: ' med typnamn {name}.',
|
144
|
-
withoutName: ' med typ {seriesType}.',
|
145
|
-
},
|
146
|
-
multiple: {
|
147
|
-
prefix: '. Det består av {seriesCount} serier.',
|
148
|
-
withName: ' Serien {seriesId} är en {seriesType} som representerar {seriesName}.',
|
149
|
-
withoutName: ' Serien {seriesId} är en {seriesType}.',
|
150
|
-
separator: {
|
151
|
-
middle: '',
|
152
|
-
end: '',
|
153
|
-
},
|
154
|
-
},
|
155
|
-
},
|
156
|
-
data: {
|
157
|
-
allData: 'Data är som följer: ',
|
158
|
-
partialData: 'De första {displayCnt} objekten är: ',
|
159
|
-
withName: 'datavärdet för {name} är {value}',
|
160
|
-
withoutName: '{value}',
|
161
|
-
separator: {
|
162
|
-
middle: ', ',
|
163
|
-
end: '. ',
|
164
|
-
},
|
165
|
-
},
|
166
|
-
},
|
41
|
+
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Language: Swedish.
|
45
|
+
*/
|
46
|
+
|
47
|
+
var localeObj = {
|
48
|
+
time: {
|
49
|
+
month: [
|
50
|
+
'januari', 'februari', 'mars', 'april', 'maj', 'juni',
|
51
|
+
'juli', 'augusti', 'september', 'oktober', 'november', 'december',
|
52
|
+
],
|
53
|
+
monthAbbr: [
|
54
|
+
'jan', 'feb', 'mar', 'apr', 'maj', 'jun',
|
55
|
+
'jul', 'aug', 'sep', 'okt', 'nov', 'dec',
|
56
|
+
],
|
57
|
+
dayOfWeek: [
|
58
|
+
'söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag',
|
59
|
+
],
|
60
|
+
dayOfWeekAbbr: [
|
61
|
+
'sön', 'mån', 'tis', 'ons', 'tor', 'fre', 'lör',
|
62
|
+
],
|
63
|
+
},
|
64
|
+
legend: {
|
65
|
+
selector: {
|
66
|
+
all: 'Alla',
|
67
|
+
inverse: 'Omvänd',
|
68
|
+
},
|
69
|
+
},
|
70
|
+
toolbox: {
|
71
|
+
brush: {
|
72
|
+
title: {
|
73
|
+
rect: 'Rektangelurval',
|
74
|
+
polygon: 'Lassomarkering',
|
75
|
+
lineX: 'Vågrätt urval',
|
76
|
+
lineY: 'Lodrätt urval',
|
77
|
+
keep: 'Behåll urval',
|
78
|
+
clear: 'Rensa urval',
|
79
|
+
},
|
80
|
+
},
|
81
|
+
dataView: {
|
82
|
+
title: 'Datavy',
|
83
|
+
lang: ['Datavy', 'Stäng', 'Uppdatera'],
|
84
|
+
},
|
85
|
+
dataZoom: {
|
86
|
+
title: {
|
87
|
+
zoom: 'Zooma',
|
88
|
+
back: 'Återställ zoom',
|
89
|
+
},
|
90
|
+
},
|
91
|
+
magicType: {
|
92
|
+
title: {
|
93
|
+
line: 'Byt till linjediagram',
|
94
|
+
bar: 'Byt till stapeldiagram',
|
95
|
+
stack: 'Stapla',
|
96
|
+
tiled: 'Sida vid sida',
|
97
|
+
},
|
98
|
+
},
|
99
|
+
restore: {
|
100
|
+
title: 'Återställ',
|
101
|
+
},
|
102
|
+
saveAsImage: {
|
103
|
+
title: 'Spara som bild',
|
104
|
+
lang: ['Högerklicka för att spara bild'],
|
105
|
+
},
|
106
|
+
},
|
107
|
+
series: {
|
108
|
+
typeNames: {
|
109
|
+
pie: 'Cirkeldiagram',
|
110
|
+
bar: 'Stapeldiagram',
|
111
|
+
line: 'Linjediagram',
|
112
|
+
scatter: 'Punktdiagram',
|
113
|
+
effectScatter: 'Punktdiagram med rippeleffekt',
|
114
|
+
radar: 'Radardiagram',
|
115
|
+
tree: 'Träd',
|
116
|
+
treemap: 'Trädkarta',
|
117
|
+
boxplot: 'Lådagram',
|
118
|
+
candlestick: 'Candlestick',
|
119
|
+
k: 'K-linjediagram',
|
120
|
+
heatmap: 'Värmekarta',
|
121
|
+
map: 'Karta',
|
122
|
+
parallel: 'Parallella koordinater',
|
123
|
+
lines: 'Linjediagram',
|
124
|
+
graph: 'Relationsgraf',
|
125
|
+
sankey: 'Sankeydiagram',
|
126
|
+
funnel: 'Trattdiagram',
|
127
|
+
gauge: 'Mätare',
|
128
|
+
pictorialBar: 'Bildstapel',
|
129
|
+
themeRiver: 'Tematisk flod',
|
130
|
+
sunburst: 'Solburstdiagram',
|
131
|
+
custom: 'Anpassat',
|
132
|
+
chart: 'Diagram',
|
133
|
+
},
|
134
|
+
},
|
135
|
+
aria: {
|
136
|
+
general: {
|
137
|
+
withTitle: 'Detta är ett diagram om "{title}"',
|
138
|
+
withoutTitle: 'Detta är ett diagram',
|
139
|
+
},
|
140
|
+
series: {
|
141
|
+
single: {
|
142
|
+
prefix: '',
|
143
|
+
withName: ' med typnamn {name}.',
|
144
|
+
withoutName: ' med typ {seriesType}.',
|
145
|
+
},
|
146
|
+
multiple: {
|
147
|
+
prefix: '. Det består av {seriesCount} serier.',
|
148
|
+
withName: ' Serien {seriesId} är en {seriesType} som representerar {seriesName}.',
|
149
|
+
withoutName: ' Serien {seriesId} är en {seriesType}.',
|
150
|
+
separator: {
|
151
|
+
middle: '',
|
152
|
+
end: '',
|
153
|
+
},
|
154
|
+
},
|
155
|
+
},
|
156
|
+
data: {
|
157
|
+
allData: 'Data är som följer: ',
|
158
|
+
partialData: 'De första {displayCnt} objekten är: ',
|
159
|
+
withName: 'datavärdet för {name} är {value}',
|
160
|
+
withoutName: '{value}',
|
161
|
+
separator: {
|
162
|
+
middle: ', ',
|
163
|
+
end: '. ',
|
164
|
+
},
|
165
|
+
},
|
166
|
+
},
|
167
167
|
};
|
168
168
|
echarts.registerLocale('SV', localeObj);
|
169
169
|
|
@@ -0,0 +1,174 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
5
|
+
* or more contributor license agreements. See the NOTICE file
|
6
|
+
* distributed with this work for additional information
|
7
|
+
* regarding copyright ownership. The ASF licenses this file
|
8
|
+
* to you under the Apache License, Version 2.0 (the
|
9
|
+
* "License"); you may not use this file except in compliance
|
10
|
+
* with the License. You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
15
|
+
* software distributed under the License is distributed on an
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
17
|
+
* KIND, either express or implied. See the License for the
|
18
|
+
* specific language governing permissions and limitations
|
19
|
+
* under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
/**
|
24
|
+
* AUTO-GENERATED FILE. DO NOT MODIFY.
|
25
|
+
*/
|
26
|
+
(function(root, factory) {
|
27
|
+
if (typeof define === 'function' && define.amd) {
|
28
|
+
// AMD. Register as an anonymous module.
|
29
|
+
define(['exports'], factory);
|
30
|
+
} else if (
|
31
|
+
typeof exports === 'object' &&
|
32
|
+
typeof exports.nodeName !== 'string'
|
33
|
+
) {
|
34
|
+
// CommonJS
|
35
|
+
factory(exports);
|
36
|
+
} else {
|
37
|
+
// Browser globals
|
38
|
+
factory({});
|
39
|
+
}
|
40
|
+
})(this, function(exports) {
|
41
|
+
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Language: Norwegian Bokmål.
|
45
|
+
*/
|
46
|
+
|
47
|
+
var localeObj = {
|
48
|
+
time: {
|
49
|
+
month: [
|
50
|
+
'januar', 'februar', 'mars', 'april', 'mai', 'juni',
|
51
|
+
'juli', 'august', 'september', 'oktober', 'november', 'desember',
|
52
|
+
],
|
53
|
+
monthAbbr: [
|
54
|
+
'jan', 'feb', 'mar', 'apr', 'mai', 'jun',
|
55
|
+
'jul', 'aug', 'sep', 'okt', 'nov', 'des',
|
56
|
+
],
|
57
|
+
dayOfWeek: [
|
58
|
+
'søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag',
|
59
|
+
],
|
60
|
+
dayOfWeekAbbr: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
|
61
|
+
},
|
62
|
+
legend: {
|
63
|
+
selector: {
|
64
|
+
all: 'Alle',
|
65
|
+
inverse: 'Omvendt',
|
66
|
+
},
|
67
|
+
},
|
68
|
+
toolbox: {
|
69
|
+
brush: {
|
70
|
+
title: {
|
71
|
+
rect: 'Boksutvalg',
|
72
|
+
polygon: 'Lassomarkering',
|
73
|
+
lineX: 'Vannrett utvalg',
|
74
|
+
lineY: 'Loddrett utvalg',
|
75
|
+
keep: 'Behold utvalg',
|
76
|
+
clear: 'Fjern utvalg',
|
77
|
+
},
|
78
|
+
},
|
79
|
+
dataView: {
|
80
|
+
title: 'Datavisning',
|
81
|
+
lang: ['Datavisning', 'Lukk', 'Oppfrisk'],
|
82
|
+
},
|
83
|
+
dataZoom: {
|
84
|
+
title: {
|
85
|
+
zoom: 'Zoom',
|
86
|
+
back: 'Tilbakestill zoom',
|
87
|
+
},
|
88
|
+
},
|
89
|
+
magicType: {
|
90
|
+
title: {
|
91
|
+
line: 'Bytt til linjediagram',
|
92
|
+
bar: 'Bytt til stolpediagram',
|
93
|
+
stack: 'Stable',
|
94
|
+
tiled: 'Side ved side',
|
95
|
+
},
|
96
|
+
},
|
97
|
+
restore: {
|
98
|
+
title: 'Tilbakestill',
|
99
|
+
},
|
100
|
+
saveAsImage: {
|
101
|
+
title: 'Lagre som bilde',
|
102
|
+
lang: ['Høyreklikk for å lagre som bilde'],
|
103
|
+
},
|
104
|
+
},
|
105
|
+
series: {
|
106
|
+
typeNames: {
|
107
|
+
pie: 'Sektordiagram',
|
108
|
+
bar: 'Stolpediagram',
|
109
|
+
line: 'Linjediagram',
|
110
|
+
scatter: 'Spredningsplott',
|
111
|
+
effectScatter: 'Krusningsspredningsplott',
|
112
|
+
radar: 'Radardiagram',
|
113
|
+
tree: 'Tre',
|
114
|
+
treemap: 'Trekart',
|
115
|
+
boxplot: 'Boksplot',
|
116
|
+
candlestick: 'Candlestick',
|
117
|
+
k: 'K-linjediagram',
|
118
|
+
heatmap: 'Varmekart',
|
119
|
+
map: 'Kart',
|
120
|
+
parallel: 'Parallelle koordinater',
|
121
|
+
lines: 'Linjediagram',
|
122
|
+
graph: 'Relasjonsgraf',
|
123
|
+
sankey: 'Sankey-diagram',
|
124
|
+
funnel: 'Traktdiagram',
|
125
|
+
gauge: 'Måler',
|
126
|
+
pictorialBar: 'Bildestolper',
|
127
|
+
themeRiver: 'Tematisk elvediagram',
|
128
|
+
sunburst: 'Solstrålediagram',
|
129
|
+
custom: 'Tilpasset',
|
130
|
+
chart: 'Diagram',
|
131
|
+
},
|
132
|
+
},
|
133
|
+
aria: {
|
134
|
+
general: {
|
135
|
+
withTitle: 'Dette er et diagram om "{title}"',
|
136
|
+
withoutTitle: 'Dette er et diagram',
|
137
|
+
},
|
138
|
+
series: {
|
139
|
+
single: {
|
140
|
+
prefix: '',
|
141
|
+
withName: ' med type {seriesType} ved navn {seriesName}.',
|
142
|
+
withoutName: ' med type {seriesType}.',
|
143
|
+
},
|
144
|
+
multiple: {
|
145
|
+
prefix: '. Det består av {seriesCount} serier.',
|
146
|
+
withName:
|
147
|
+
' Serie {seriesId} er av typen {seriesType} som representerer {seriesName}.',
|
148
|
+
withoutName: ' Serie {seriesId} er av typen {seriesType}.',
|
149
|
+
separator: {
|
150
|
+
middle: '',
|
151
|
+
end: '',
|
152
|
+
},
|
153
|
+
},
|
154
|
+
},
|
155
|
+
data: {
|
156
|
+
allData: 'Dataene er som følger: ',
|
157
|
+
partialData: 'De første {displayCnt} elementene er: ',
|
158
|
+
withName: 'dataene for {name} er {value}',
|
159
|
+
withoutName: '{value}',
|
160
|
+
separator: {
|
161
|
+
middle: ', ',
|
162
|
+
end: '. ',
|
163
|
+
},
|
164
|
+
},
|
165
|
+
},
|
166
|
+
};
|
167
|
+
|
168
|
+
for (var key in localeObj) {
|
169
|
+
if (localeObj.hasOwnProperty(key)) {
|
170
|
+
exports[key] = localeObj[key];
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
});
|
@@ -0,0 +1,170 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
/*
|
4
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
5
|
+
* or more contributor license agreements. See the NOTICE file
|
6
|
+
* distributed with this work for additional information
|
7
|
+
* regarding copyright ownership. The ASF licenses this file
|
8
|
+
* to you under the Apache License, Version 2.0 (the
|
9
|
+
* "License"); you may not use this file except in compliance
|
10
|
+
* with the License. You may obtain a copy of the License at
|
11
|
+
*
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
13
|
+
*
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
15
|
+
* software distributed under the License is distributed on an
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
17
|
+
* KIND, either express or implied. See the License for the
|
18
|
+
* specific language governing permissions and limitations
|
19
|
+
* under the License.
|
20
|
+
*/
|
21
|
+
|
22
|
+
|
23
|
+
/**
|
24
|
+
* AUTO-GENERATED FILE. DO NOT MODIFY.
|
25
|
+
*/
|
26
|
+
(function(root, factory) {
|
27
|
+
if (typeof define === 'function' && define.amd) {
|
28
|
+
// AMD. Register as an anonymous module.
|
29
|
+
define(['exports', 'echarts'], factory);
|
30
|
+
} else if (
|
31
|
+
typeof exports === 'object' &&
|
32
|
+
typeof exports.nodeName !== 'string'
|
33
|
+
) {
|
34
|
+
// CommonJS
|
35
|
+
factory(exports, require('echarts/lib/echarts'));
|
36
|
+
} else {
|
37
|
+
// Browser globals
|
38
|
+
factory({}, root.echarts);
|
39
|
+
}
|
40
|
+
})(this, function(exports, echarts) {
|
41
|
+
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Language: Norwegian Bokmål.
|
45
|
+
*/
|
46
|
+
|
47
|
+
var localeObj = {
|
48
|
+
time: {
|
49
|
+
month: [
|
50
|
+
'januar', 'februar', 'mars', 'april', 'mai', 'juni',
|
51
|
+
'juli', 'august', 'september', 'oktober', 'november', 'desember',
|
52
|
+
],
|
53
|
+
monthAbbr: [
|
54
|
+
'jan', 'feb', 'mar', 'apr', 'mai', 'jun',
|
55
|
+
'jul', 'aug', 'sep', 'okt', 'nov', 'des',
|
56
|
+
],
|
57
|
+
dayOfWeek: [
|
58
|
+
'søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag',
|
59
|
+
],
|
60
|
+
dayOfWeekAbbr: ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
|
61
|
+
},
|
62
|
+
legend: {
|
63
|
+
selector: {
|
64
|
+
all: 'Alle',
|
65
|
+
inverse: 'Omvendt',
|
66
|
+
},
|
67
|
+
},
|
68
|
+
toolbox: {
|
69
|
+
brush: {
|
70
|
+
title: {
|
71
|
+
rect: 'Boksutvalg',
|
72
|
+
polygon: 'Lassomarkering',
|
73
|
+
lineX: 'Vannrett utvalg',
|
74
|
+
lineY: 'Loddrett utvalg',
|
75
|
+
keep: 'Behold utvalg',
|
76
|
+
clear: 'Fjern utvalg',
|
77
|
+
},
|
78
|
+
},
|
79
|
+
dataView: {
|
80
|
+
title: 'Datavisning',
|
81
|
+
lang: ['Datavisning', 'Lukk', 'Oppfrisk'],
|
82
|
+
},
|
83
|
+
dataZoom: {
|
84
|
+
title: {
|
85
|
+
zoom: 'Zoom',
|
86
|
+
back: 'Tilbakestill zoom',
|
87
|
+
},
|
88
|
+
},
|
89
|
+
magicType: {
|
90
|
+
title: {
|
91
|
+
line: 'Bytt til linjediagram',
|
92
|
+
bar: 'Bytt til stolpediagram',
|
93
|
+
stack: 'Stable',
|
94
|
+
tiled: 'Side ved side',
|
95
|
+
},
|
96
|
+
},
|
97
|
+
restore: {
|
98
|
+
title: 'Tilbakestill',
|
99
|
+
},
|
100
|
+
saveAsImage: {
|
101
|
+
title: 'Lagre som bilde',
|
102
|
+
lang: ['Høyreklikk for å lagre som bilde'],
|
103
|
+
},
|
104
|
+
},
|
105
|
+
series: {
|
106
|
+
typeNames: {
|
107
|
+
pie: 'Sektordiagram',
|
108
|
+
bar: 'Stolpediagram',
|
109
|
+
line: 'Linjediagram',
|
110
|
+
scatter: 'Spredningsplott',
|
111
|
+
effectScatter: 'Krusningsspredningsplott',
|
112
|
+
radar: 'Radardiagram',
|
113
|
+
tree: 'Tre',
|
114
|
+
treemap: 'Trekart',
|
115
|
+
boxplot: 'Boksplot',
|
116
|
+
candlestick: 'Candlestick',
|
117
|
+
k: 'K-linjediagram',
|
118
|
+
heatmap: 'Varmekart',
|
119
|
+
map: 'Kart',
|
120
|
+
parallel: 'Parallelle koordinater',
|
121
|
+
lines: 'Linjediagram',
|
122
|
+
graph: 'Relasjonsgraf',
|
123
|
+
sankey: 'Sankey-diagram',
|
124
|
+
funnel: 'Traktdiagram',
|
125
|
+
gauge: 'Måler',
|
126
|
+
pictorialBar: 'Bildestolper',
|
127
|
+
themeRiver: 'Tematisk elvediagram',
|
128
|
+
sunburst: 'Solstrålediagram',
|
129
|
+
custom: 'Tilpasset',
|
130
|
+
chart: 'Diagram',
|
131
|
+
},
|
132
|
+
},
|
133
|
+
aria: {
|
134
|
+
general: {
|
135
|
+
withTitle: 'Dette er et diagram om "{title}"',
|
136
|
+
withoutTitle: 'Dette er et diagram',
|
137
|
+
},
|
138
|
+
series: {
|
139
|
+
single: {
|
140
|
+
prefix: '',
|
141
|
+
withName: ' med type {seriesType} ved navn {seriesName}.',
|
142
|
+
withoutName: ' med type {seriesType}.',
|
143
|
+
},
|
144
|
+
multiple: {
|
145
|
+
prefix: '. Det består av {seriesCount} serier.',
|
146
|
+
withName:
|
147
|
+
' Serie {seriesId} er av typen {seriesType} som representerer {seriesName}.',
|
148
|
+
withoutName: ' Serie {seriesId} er av typen {seriesType}.',
|
149
|
+
separator: {
|
150
|
+
middle: '',
|
151
|
+
end: '',
|
152
|
+
},
|
153
|
+
},
|
154
|
+
},
|
155
|
+
data: {
|
156
|
+
allData: 'Dataene er som følger: ',
|
157
|
+
partialData: 'De første {displayCnt} elementene er: ',
|
158
|
+
withName: 'dataene for {name} er {value}',
|
159
|
+
withoutName: '{value}',
|
160
|
+
separator: {
|
161
|
+
middle: ', ',
|
162
|
+
end: '. ',
|
163
|
+
},
|
164
|
+
},
|
165
|
+
},
|
166
|
+
};
|
167
|
+
|
168
|
+
echarts.registerLocale('nb-NO', localeObj);
|
169
|
+
|
170
|
+
});
|
@@ -0,0 +1,63 @@
|
|
1
|
+
|
2
|
+
/*
|
3
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
4
|
+
* or more contributor license agreements. See the NOTICE file
|
5
|
+
* distributed with this work for additional information
|
6
|
+
* regarding copyright ownership. The ASF licenses this file
|
7
|
+
* to you under the Apache License, Version 2.0 (the
|
8
|
+
* "License"); you may not use this file except in compliance
|
9
|
+
* with the License. You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing,
|
14
|
+
* software distributed under the License is distributed on an
|
15
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
16
|
+
* KIND, either express or implied. See the License for the
|
17
|
+
* specific language governing permissions and limitations
|
18
|
+
* under the License.
|
19
|
+
*/
|
20
|
+
|
21
|
+
(function(root, factory) {
|
22
|
+
if (typeof define === 'function' && define.amd) {
|
23
|
+
// AMD. Register as an anonymous module.
|
24
|
+
define(['exports', 'echarts'], factory);
|
25
|
+
} else if (
|
26
|
+
typeof exports === 'object' &&
|
27
|
+
typeof exports.nodeName !== 'string'
|
28
|
+
) {
|
29
|
+
// CommonJS
|
30
|
+
factory(exports, require('echarts/lib/echarts'));
|
31
|
+
} else {
|
32
|
+
// Browser globals
|
33
|
+
factory({}, root.echarts);
|
34
|
+
}
|
35
|
+
})(this, function(exports, echarts) {
|
36
|
+
var log = function(msg) {
|
37
|
+
if (typeof console !== 'undefined') {
|
38
|
+
console && console.error && console.error(msg);
|
39
|
+
}
|
40
|
+
};
|
41
|
+
if (!echarts) {
|
42
|
+
log('ECharts is not Loaded');
|
43
|
+
return;
|
44
|
+
}
|
45
|
+
|
46
|
+
var colorAll = [
|
47
|
+
'#37A2DA', '#32C5E9', '#67E0E3', '#9FE6B8', '#FFDB5C', '#ff9f7f',
|
48
|
+
'#fb7293', '#E062AE', '#E690D1', '#e7bcf3', '#9d96f5', '#8378EA', '#96BFFF'
|
49
|
+
];
|
50
|
+
|
51
|
+
var theme = {
|
52
|
+
color: colorAll,
|
53
|
+
|
54
|
+
colorLayer: [
|
55
|
+
['#37A2DA', '#ffd85c', '#fd7b5f'],
|
56
|
+
['#37A2DA', '#67E0E3', '#FFDB5C', '#ff9f7f', '#E062AE', '#9d96f5'],
|
57
|
+
['#37A2DA', '#32C5E9', '#9FE6B8', '#FFDB5C', '#ff9f7f', '#fb7293', '#e7bcf3', '#8378EA', '#96BFFF'],
|
58
|
+
colorAll
|
59
|
+
]
|
60
|
+
};
|
61
|
+
|
62
|
+
echarts.registerTheme('rainbow', theme);
|
63
|
+
});
|