-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGraphDefaultProps.ts
More file actions
37 lines (35 loc) · 955 Bytes
/
GraphDefaultProps.ts
File metadata and controls
37 lines (35 loc) · 955 Bytes
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
import GraphDefaultStyle from './GraphDefaultStyle'
import { formatGraphValueX, formatGraphValueY } from '../Cursor/utils'
import { formatAxisX, formatAxisY } from '../Axis/utils'
import { GraphI } from '../types'
const GraphDefaultProps: GraphI = {
isGraphMoving: true,
graphMovingRate: 90,
points: undefined,
width: 300,
height: 300,
interval: 200,
count: 10,
memory: 40,
min: 0,
max: 100,
isCallback: true,
getValueCallback: () => 100 * Math.random(),
active: true,
style: GraphDefaultStyle,
formatCursorY: (y: number) => formatGraphValueY(y),
formatCursorX: (x: number) => formatGraphValueX(x),
axisEnableX: true,
axisEnableY: true,
axisHeightX: 90,
axisWidthY: 110,
axisTitleX: 'Time [ms]',
axisTitleY: 'Value',
axisXSectionCount: 2,
axisYSectionCount: 4,
formatAxisX: formatAxisX,
formatAxisY: formatAxisY,
axisPositionX: 'BOTTOM',
axisPositionY: 'RIGHT',
}
export default GraphDefaultProps