1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 | (function(root, factory) {
|
27 | if (typeof define === 'function' && define.amd) {
|
28 |
|
29 | define(['exports', 'echarts'], factory);
|
30 | } else if (
|
31 | typeof exports === 'object' &&
|
32 | typeof exports.nodeName !== 'string'
|
33 | ) {
|
34 |
|
35 | factory(exports, require('echarts/lib/echarts'));
|
36 | } else {
|
37 |
|
38 | factory({}, root.echarts);
|
39 | }
|
40 | })(this, function(exports, echarts) {
|
41 |
|
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | var localeObj = {
|
48 | time: {
|
49 | month: [
|
50 | 'January', 'February', 'March', 'April', 'May', 'June',
|
51 | 'July', 'August', 'September', 'October', 'November', 'December'
|
52 | ],
|
53 | monthAbbr: [
|
54 | 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
|
55 | 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'
|
56 | ],
|
57 | dayOfWeek: [
|
58 | 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'
|
59 | ],
|
60 | dayOfWeekAbbr: [
|
61 | 'Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'
|
62 | ]
|
63 | },
|
64 | legend: {
|
65 | selector: {
|
66 | all: 'All',
|
67 | inverse: 'Inv'
|
68 | }
|
69 | },
|
70 | toolbox: {
|
71 | brush: {
|
72 | title: {
|
73 | rect: 'Box Select',
|
74 | polygon: 'Lasso Select',
|
75 | lineX: 'Horizontally Select',
|
76 | lineY: 'Vertically Select',
|
77 | keep: 'Keep Selections',
|
78 | clear: 'Clear Selections'
|
79 | }
|
80 | },
|
81 | dataView: {
|
82 | title: 'Data View',
|
83 | lang: ['Data View', 'Close', 'Refresh']
|
84 | },
|
85 | dataZoom: {
|
86 | title: {
|
87 | zoom: 'Zoom',
|
88 | back: 'Zoom Reset'
|
89 | }
|
90 | },
|
91 | magicType: {
|
92 | title: {
|
93 | line: 'Switch to Line Chart',
|
94 | bar: 'Switch to Bar Chart',
|
95 | stack: 'Stack',
|
96 | tiled: 'Tile'
|
97 | }
|
98 | },
|
99 | restore: {
|
100 | title: 'Restore'
|
101 | },
|
102 | saveAsImage: {
|
103 | title: 'Save as Image',
|
104 | lang: ['Right Click to Save Image']
|
105 | }
|
106 | },
|
107 | series: {
|
108 | typeNames: {
|
109 | pie: 'Pie chart',
|
110 | bar: 'Bar chart',
|
111 | line: 'Line chart',
|
112 | scatter: 'Scatter plot',
|
113 | effectScatter: 'Ripple scatter plot',
|
114 | radar: 'Radar chart',
|
115 | tree: 'Tree',
|
116 | treemap: 'Treemap',
|
117 | boxplot: 'Boxplot',
|
118 | candlestick: 'Candlestick',
|
119 | k: 'K line chart',
|
120 | heatmap: 'Heat map',
|
121 | map: 'Map',
|
122 | parallel: 'Parallel coordinate map',
|
123 | lines: 'Line graph',
|
124 | graph: 'Relationship graph',
|
125 | sankey: 'Sankey diagram',
|
126 | funnel: 'Funnel chart',
|
127 | gauge: 'Gauge',
|
128 | pictorialBar: 'Pictorial bar',
|
129 | themeRiver: 'Theme River Map',
|
130 | sunburst: 'Sunburst'
|
131 | }
|
132 | },
|
133 | aria: {
|
134 | general: {
|
135 | withTitle: 'This is a chart about "{title}"',
|
136 | withoutTitle: 'This is a chart'
|
137 | },
|
138 | series: {
|
139 | single: {
|
140 | prefix: '',
|
141 | withName: ' with type {seriesType} named {seriesName}.',
|
142 | withoutName: ' with type {seriesType}.'
|
143 | },
|
144 | multiple: {
|
145 | prefix: '. It consists of {seriesCount} series count.',
|
146 | withName: ' The {seriesId} series is a {seriesType} representing {seriesName}.',
|
147 | withoutName: ' The {seriesId} series is a {seriesType}.',
|
148 | separator: {
|
149 | middle: '',
|
150 | end: ''
|
151 | }
|
152 | }
|
153 | },
|
154 | data: {
|
155 | allData: 'The data is as follows: ',
|
156 | partialData: 'The first {displayCnt} items are: ',
|
157 | withName: 'the data for {name} is {value}',
|
158 | withoutName: '{value}',
|
159 | separator: {
|
160 | middle: ', ',
|
161 | end: '. '
|
162 | }
|
163 | }
|
164 | }
|
165 | };
|
166 |
|
167 | echarts.registerLocale('EN', localeObj);
|
168 |
|
169 | }); |
\ | No newline at end of file |