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 | var localeObj = {
|
44 | time: {
|
45 | month: [
|
46 | 'enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio',
|
47 | 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'
|
48 | ],
|
49 | monthAbbr: [
|
50 | 'ene', 'feb', 'mar', 'abr', 'may', 'jun',
|
51 | 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'
|
52 | ],
|
53 | dayOfWeek: [
|
54 | 'domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'
|
55 | ],
|
56 | dayOfWeekAbbr: [
|
57 | 'dom', 'lun', 'mar', 'mie', 'jue', 'vie', 'sáb'
|
58 | ]
|
59 | },
|
60 | legend: {
|
61 | selector: {
|
62 | all: 'Todas',
|
63 | inverse: 'Inversa'
|
64 | }
|
65 | },
|
66 | toolbox: {
|
67 | brush: {
|
68 | title: {
|
69 | rect: 'Selección de cuadro',
|
70 | polygon: 'Selección de lazo',
|
71 | lineX: 'Seleccionar horizontalmente',
|
72 | lineY: 'Seleccionar verticalmente',
|
73 | keep: 'Mantener selección',
|
74 | clear: 'Despejar selecciones'
|
75 | }
|
76 | },
|
77 | dataView: {
|
78 | title: 'Ver datos',
|
79 | lang: ['Ver datos', 'Cerrar', 'Actualizar']
|
80 | },
|
81 | dataZoom: {
|
82 | title: {
|
83 | zoom: 'Zoom',
|
84 | back: 'Restablecer zoom'
|
85 | }
|
86 | },
|
87 | magicType: {
|
88 | title: {
|
89 | line: 'Cambiar a gráfico de líneas',
|
90 | bar: 'Cambiar a gráfico de barras',
|
91 | stack: 'Pila',
|
92 | tiled: 'Teja'
|
93 | }
|
94 | },
|
95 | restore: {
|
96 | title: 'Restaurar'
|
97 | },
|
98 | saveAsImage: {
|
99 | title: 'Guardar como imagen',
|
100 | lang: ['Clic derecho para guardar imagen']
|
101 | }
|
102 | }
|
103 | };
|
104 |
|
105 | echarts.registerLocale('ES', localeObj);
|
106 |
|
107 | }); |
\ | No newline at end of file |