复制代码
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
1911 // 人均效能 2 var initRjxnChart = function () { 3 var rjxnChart = echarts.init(document.getElementById("rjxn_echart")); 4 var rjxnoption = { 5 tooltip: { 6 trigger: 'axis', 7 }, 8 grid: { 9 left: '8%', 10 bottom: '20%', 11 top: '10%', 12 right: '8%', 13 }, 14 legend: { 15 show: true, 16 orient: 'horizontal', 17 data: ['人均每小时操作量'], 18 x: '8%', 19 y: '0%', 20 textStyle: { 21 color: '#8c8c92' 22 } 23 }, 24 color: ["#cd9136"], 25 xAxis: [{ 26 type: 'category', 27 data: ['上海', '北京', '江苏', '山东', '湖北', '武汉', '广州'], 28 boundaryGap: true, 29 axisTick: { // X轴线 刻度线 30 show: false, 31 length: 10, 32 lineStyle: { 33 color: 'red', 34 type: 'solid', 35 width: 2 36 } 37 }, 38 axisLabel: { // X轴线 标签修改 39 textStyle: { 40 color: '#8c8c92', //坐标值得具体的颜色 41 } 42 }, 43 splitLine:{ 44 show: true, // X轴线 颜色类型的修改 45 lineStyle: { 46 type: 'dashed', 47 color: '#292c38' 48 } 49 }, 50 axisLine: { 51 show: true, // X轴 网格线 颜色类型的修改 52 lineStyle: { 53 type: 'dashed', 54 color: '#292c38' 55 } 56 }, 57 }], 58 yAxis: [{ 59 type: 'value', 60 name: '', 61 min: 0, 62 max: 3000, 63 interval: 500, 64 axisLabel: { 65 formatter: '{value}', 66 textStyle: { 67 color: '#8c8c92', //坐标值得具体的颜色 68 } 69 }, 70 axisLine: { 71 show: true, // Y轴线 72 lineStyle: { 73 type: 'dashed', 74 color: '#292c38' 75 } 76 }, 77 splitLine:{ 78 show: true, 79 lineStyle: { 80 type: 'dashed', 81 color: '#292c38' 82 } 83 } 84 }], 85 series: [{ 86 name: '人均每小时操作量', 87 type: 'line', 88 data: [100, 200, 100, 500, 100, 100, 1000] 89 } 90 ] 91 }; 92 if (rjxnoption && typeof rjxnoption === "object") { 93 rjxnChart.setOption(rjxnoption, true); 94 } 95 };
转载于:https://www.cnblogs.com/zsongs/p/7340518.html
最后
以上就是直率石头最近收集整理的关于Echarts X轴 Y轴 线的类型、颜色、及标签字体颜色 设置的全部内容,更多相关Echarts内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复