-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
66 lines (50 loc) · 1.83 KB
/
config.js
File metadata and controls
66 lines (50 loc) · 1.83 KB
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
const rc = require('rc')
// TODO unify these comments with program.js
module.exports = rc('catchart', {
rowSeparator: '\n',
// json
// csv
// auto - if data starts with { json is selected, otherwise assume csv
inputFormat: 'auto', //json, csv
// when json
// if auto then data is obtained from the "value" or "data" property
// else dataSource is expected to be the name of the data field
// when csv this config option is ignored
dataField: 'auto',
// possible values: 'auto' | [fieldname] for json | [index] for csv
// when json
// if auto select from label from fields: label/title/key
// otherwise select from field specified in labelSource
// when csv
// if auto, use timeSeries
// else if set to "row" (or anything else actually) use the first field
// as label
// when labels cannot be obtained, use timeSeries
labelSource: 'auto',
// show labels on values in the chart
showValueLabels: false,
// A json array expression, tells catchart which series Y values are aligned on the LEFT/RIGHT Y axis. Overrides auto align.
yLeft: [],
yRight: [],
// by default catchart will try to "guess" which side to align the Y values of a data series if there's more than one
disableAutoAlignYAxis: false,
// do not fill the area under chart lines with color
noFill: false,
// in addition to fill color under chart lines, also apply patterns.
// this is useful for color blind individuals
usePatterns: false,
// size of the buffer
windowSize: 200,
// use this flag in increase performance of the chart
disableAnimation: false,
// delay (in ms) before shutting down server once ths input stream ended
shutdownDelay: 1000,
// how many fields are in a row
fieldCount: 'auto',
title: `${new Date()} ::: ${process.cwd()}`,
chartType: 'line',
// hcat related options
port: 0,
hostname: 'localhost',
contentType: 'text/html'
})