Skip to content
This repository was archived by the owner on Dec 3, 2025. It is now read-only.

Commit 2a10b08

Browse files
committed
Merge pull request #13 from skyeydemon/dev
绘图线条采用深颜色
2 parents 1e75e78 + ee040c3 commit 2a10b08

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

rrd/static/js/screen.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,28 @@ $(function() {
234234
series: {
235235
shadowSize: 0 // Drawing is faster without shadows
236236
},
237+
// 使用深色色彩可选值, 避免因为绘图线条颜色太浅看不清楚
238+
colors: [
239+
"#FF6A6A", "#00BFFF", "#A52A2A",
240+
"#CDCD00", "#008878", "#FF0000",
241+
"#00FF00", "#7B68EE", "#FF00FF",
242+
"#EEAEEE", "#00AEEE", "#AEEEEE",
243+
244+
"#FFB90F", "#00B90F", "#00FFFF",
245+
"#DC143C", "#BFEFFF", "#AA7500",
246+
"#F0E68C", "#00E68C", "#AAE68C",
247+
"#EE9A49", "#009A49", "#AA9A49",
248+
249+
"#FFA54F", "#00A54F", "#AAA54F",
250+
"#8B4789", "#004789", "#AA4789",
251+
"#00CDCD", "#00CDCD", "#AACDCD",
252+
"#EE8262", "#008262", "#AA8262",
253+
254+
"#FF8C00", "#008C00", "#AA8C00",
255+
"#8B3626", "#003626", "#AA3626",
256+
"#00BFFF", "#00E8AA", "#AAE8AA",
257+
"#EE7621", "#007621", "#AA7621",
258+
],
237259
yaxis: {
238260
// min: -1
239261
// max: 100

rrd/static/js/util_ng.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,28 @@ function FlotServ($http, $window, $q) {
184184
self.getConfig = function(options) {
185185
return {
186186
stack: options.stack || false,
187+
// 使用深色色彩可选值, 避免因为绘图线条颜色太浅看不清楚
188+
colors: [
189+
"#FF6A6A", "#00BFFF", "#A52A2A",
190+
"#CDCD00", "#008878", "#FF0000",
191+
"#00FF00", "#7B68EE", "#FF00FF",
192+
"#EEAEEE", "#00AEEE", "#AEEEEE",
193+
194+
"#FFB90F", "#00B90F", "#00FFFF",
195+
"#DC143C", "#BFEFFF", "#AA7500",
196+
"#F0E68C", "#00E68C", "#AAE68C",
197+
"#EE9A49", "#009A49", "#AA9A49",
198+
199+
"#FFA54F", "#00A54F", "#AAA54F",
200+
"#8B4789", "#004789", "#AA4789",
201+
"#00CDCD", "#00CDCD", "#AACDCD",
202+
"#EE8262", "#008262", "#AA8262",
203+
204+
"#FF8C00", "#008C00", "#AA8C00",
205+
"#8B3626", "#003626", "#AA3626",
206+
"#00BFFF", "#00E8AA", "#AAE8AA",
207+
"#EE7621", "#007621", "#AA7621",
208+
],
187209
lines: {
188210
show: true
189211
},

0 commit comments

Comments
 (0)