@orbcharts/presets-basic 3.0.0-alpha.30 → 3.0.0-alpha.32
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +200 -200
- package/package.json +43 -44
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_ROUND.ts +62 -62
- package/src/grid/PRESET_BARS_HORIZONTAL_AND_THIN.ts +59 -59
- package/src/grid/PRESET_BARS_ROUND.ts +46 -46
- package/src/grid/PRESET_BARS_THIN.ts +43 -43
- package/src/grid/PRESET_GRID_BASIC.ts +25 -25
- package/src/grid/PRESET_GRID_HORIZONTAL.ts +42 -42
- package/src/grid/PRESET_GRID_PN_SCALE.ts +33 -33
- package/src/grid/PRESET_GRID_ROTATE_AXIS_LABEL.ts +33 -33
- package/src/grid/PRESET_GRID_SEPARATE_SERIES.ts +38 -38
- package/src/grid/PRESET_LINES_BASIC.ts +44 -44
- package/src/grid/PRESET_LINES_CURVE.ts +47 -47
- package/src/grid/PRESET_LINES_HIGHLIGHT_GROUP_DOTS.ts +46 -46
- package/src/grid/PRESET_LINES_HORIZONTAL.ts +60 -60
- package/src/grid/PRESET_LINES_LOOSE_TICKS.ts +46 -46
- package/src/grid/PRESET_LINES_ROTATE_AXIS_LABEL.ts +49 -49
- package/src/grid/PRESET_LINES_WITH_SOLID_DOTS.ts +48 -48
- package/src/grid/PRESET_LINE_AREAS_BASIC.ts +54 -54
- package/src/grid/PRESET_LINE_AREAS_CURVE.ts +59 -59
- package/src/grid/PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS.ts +58 -58
- package/src/grid/PRESET_LINE_AREAS_HORIZONTAL.ts +58 -58
- package/src/grid/PRESET_LINE_AREAS_LOOSE_TICKS.ts +56 -56
- package/src/grid/PRESET_LINE_AREAS_ROTATE_AXIS_LABEL.ts +59 -59
- package/src/grid/PRESET_LINE_AREAS_SEPARATE_SERIES.ts +61 -61
- package/src/grid/index.ts +22 -22
- package/src/index.ts +4 -4
- package/src/multiGrid/PRESET_MULTI_GRID_BASIC.ts +36 -36
- package/src/multiGrid/PRESET_MULTI_GRID_DIVERGING.ts +85 -85
- package/src/multiGrid/PRESET_MULTI_GRID_ROUND_STYLE.ts +57 -57
- package/src/multiGrid/PRESET_MULTI_GRID_SEPARATE_GRID.ts +59 -59
- package/src/multiGrid/PRESET_MULTI_LINES_SEPARATE_GRID.ts +103 -103
- package/src/multiGrid/PRESET_MULTI_LINE_AREAS_SEPARATE_GRID.ts +121 -121
- package/src/multiGrid/index.ts +6 -6
- package/src/params.ts +56 -56
- package/src/series/PRESET_BUBBLES_SCALING_BY_RADIUS.ts +19 -19
- package/src/series/PRESET_BUBBLES_SEPARATE_SERIES.ts +29 -29
- package/src/series/PRESET_PIE_DONUT.ts +23 -23
- package/src/series/PRESET_PIE_HALF_DONUT.ts +36 -36
- package/src/series/PRESET_PIE_WITH_INNER_LABELS.ts +24 -24
- package/src/series/PRESET_ROSE_SCALING_BY_RADIUS.ts +23 -23
- package/src/series/PRESET_SERIES_BASIC.ts +15 -15
- package/src/series/PRESET_SERIES_DESC.ts +15 -15
- package/src/series/PRESET_SERIES_SEPARATE_SERIES.ts +15 -15
- package/src/series/PRESET_SERIES_SEPARATE_SERIES_AND_SUM_SERIES.ts +16 -16
- package/src/series/PRESET_SERIES_SUM_SERIES.ts +15 -15
- package/src/series/index.ts +11 -11
- package/src/tree/PRESET_TREE_BASIC.ts +25 -25
- package/src/types.ts +241 -241
- package/tsconfig.base.json +13 -13
- package/tsconfig.json +2 -8
- package/vite.config.js +23 -0
- package/tsconfig.prod.json +0 -3
- package/vite.config.mjs +0 -42
- /package/dist/{vite.config.d.mts → vite.config.d.ts} +0 -0
@@ -1,48 +1,48 @@
|
|
1
|
-
import type { PresetPartial } from '@orbcharts/core'
|
2
|
-
import type { PresetLinesParams,
|
3
|
-
PresetDotsParams,
|
4
|
-
PresetGroupAxisParams,
|
5
|
-
PresetValueAxisParams,
|
6
|
-
PresetGroupAuxParams,
|
7
|
-
PresetGridLegendParams,
|
8
|
-
PresetNoneDataPluginParams
|
9
|
-
} from '../types'
|
10
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
11
|
-
|
12
|
-
export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', PresetLinesParams
|
13
|
-
& PresetDotsParams
|
14
|
-
& PresetGridLegendParams
|
15
|
-
& PresetGroupAxisParams
|
16
|
-
& PresetValueAxisParams
|
17
|
-
& PresetGroupAuxParams
|
18
|
-
& PresetNoneDataPluginParams> = {
|
19
|
-
name: 'PRESET_LINES_WITH_SOLID_DOTS',
|
20
|
-
description: '折線圖及實心圓點',
|
21
|
-
chartParams: {
|
22
|
-
padding: {
|
23
|
-
top: 60,
|
24
|
-
right: 60,
|
25
|
-
bottom: 120,
|
26
|
-
left: 60
|
27
|
-
},
|
28
|
-
highlightTarget: 'series'
|
29
|
-
},
|
30
|
-
allPluginParams: {
|
31
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
32
|
-
Lines: {},
|
33
|
-
Dots: {
|
34
|
-
radius: 3,
|
35
|
-
fillColorType: 'series',
|
36
|
-
onlyShowHighlighted: false
|
37
|
-
},
|
38
|
-
GroupAxis: {},
|
39
|
-
ValueAxis: {},
|
40
|
-
GroupAux: {},
|
41
|
-
GridLegend: {
|
42
|
-
position: 'bottom',
|
43
|
-
justify: 'center',
|
44
|
-
padding: 14,
|
45
|
-
listRectHeight: 2
|
46
|
-
}
|
47
|
-
}
|
48
|
-
}
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetLinesParams,
|
3
|
+
PresetDotsParams,
|
4
|
+
PresetGroupAxisParams,
|
5
|
+
PresetValueAxisParams,
|
6
|
+
PresetGroupAuxParams,
|
7
|
+
PresetGridLegendParams,
|
8
|
+
PresetNoneDataPluginParams
|
9
|
+
} from '../types'
|
10
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
11
|
+
|
12
|
+
export const PRESET_LINES_WITH_SOLID_DOTS: PresetPartial<'grid', PresetLinesParams
|
13
|
+
& PresetDotsParams
|
14
|
+
& PresetGridLegendParams
|
15
|
+
& PresetGroupAxisParams
|
16
|
+
& PresetValueAxisParams
|
17
|
+
& PresetGroupAuxParams
|
18
|
+
& PresetNoneDataPluginParams> = {
|
19
|
+
name: 'PRESET_LINES_WITH_SOLID_DOTS',
|
20
|
+
description: '折線圖及實心圓點',
|
21
|
+
chartParams: {
|
22
|
+
padding: {
|
23
|
+
top: 60,
|
24
|
+
right: 60,
|
25
|
+
bottom: 120,
|
26
|
+
left: 60
|
27
|
+
},
|
28
|
+
highlightTarget: 'series'
|
29
|
+
},
|
30
|
+
allPluginParams: {
|
31
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
32
|
+
Lines: {},
|
33
|
+
Dots: {
|
34
|
+
radius: 3,
|
35
|
+
fillColorType: 'series',
|
36
|
+
onlyShowHighlighted: false
|
37
|
+
},
|
38
|
+
GroupAxis: {},
|
39
|
+
ValueAxis: {},
|
40
|
+
GroupAux: {},
|
41
|
+
GridLegend: {
|
42
|
+
position: 'bottom',
|
43
|
+
justify: 'center',
|
44
|
+
padding: 14,
|
45
|
+
listRectHeight: 2
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
@@ -1,54 +1,54 @@
|
|
1
|
-
import type { PresetPartial } from '@orbcharts/core'
|
2
|
-
import type { PresetLinesParams,
|
3
|
-
PresetLineAreasParams,
|
4
|
-
PresetDotsParams,
|
5
|
-
PresetGroupAxisParams,
|
6
|
-
PresetValueAxisParams,
|
7
|
-
PresetGroupAuxParams,
|
8
|
-
PresetGridLegendParams,
|
9
|
-
PresetNoneDataPluginParams
|
10
|
-
} from '../types'
|
11
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
-
|
13
|
-
export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', PresetLinesParams
|
14
|
-
& PresetLineAreasParams
|
15
|
-
& PresetDotsParams
|
16
|
-
& PresetGridLegendParams
|
17
|
-
& PresetGroupAxisParams
|
18
|
-
& PresetValueAxisParams
|
19
|
-
& PresetGroupAuxParams
|
20
|
-
& PresetNoneDataPluginParams> = {
|
21
|
-
name: 'PRESET_LINE_AREAS_BASIC',
|
22
|
-
description: '基本LineArea參數',
|
23
|
-
chartParams: {
|
24
|
-
padding: {
|
25
|
-
top: 60,
|
26
|
-
right: 60,
|
27
|
-
bottom: 120,
|
28
|
-
left: 60
|
29
|
-
},
|
30
|
-
highlightTarget: 'series'
|
31
|
-
},
|
32
|
-
dataFormatter: {
|
33
|
-
grid: {
|
34
|
-
groupAxis: {
|
35
|
-
scalePadding: 0
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
allPluginParams: {
|
40
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
-
Lines: {},
|
42
|
-
LineAreas: {},
|
43
|
-
Dots: {},
|
44
|
-
GroupAxis: {},
|
45
|
-
ValueAxis: {},
|
46
|
-
GroupAux: {},
|
47
|
-
GridLegend: {
|
48
|
-
position: 'bottom',
|
49
|
-
justify: 'center',
|
50
|
-
padding: 14,
|
51
|
-
listRectHeight: 2
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetLinesParams,
|
3
|
+
PresetLineAreasParams,
|
4
|
+
PresetDotsParams,
|
5
|
+
PresetGroupAxisParams,
|
6
|
+
PresetValueAxisParams,
|
7
|
+
PresetGroupAuxParams,
|
8
|
+
PresetGridLegendParams,
|
9
|
+
PresetNoneDataPluginParams
|
10
|
+
} from '../types'
|
11
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
+
|
13
|
+
export const PRESET_LINE_AREAS_BASIC: PresetPartial<'grid', PresetLinesParams
|
14
|
+
& PresetLineAreasParams
|
15
|
+
& PresetDotsParams
|
16
|
+
& PresetGridLegendParams
|
17
|
+
& PresetGroupAxisParams
|
18
|
+
& PresetValueAxisParams
|
19
|
+
& PresetGroupAuxParams
|
20
|
+
& PresetNoneDataPluginParams> = {
|
21
|
+
name: 'PRESET_LINE_AREAS_BASIC',
|
22
|
+
description: '基本LineArea參數',
|
23
|
+
chartParams: {
|
24
|
+
padding: {
|
25
|
+
top: 60,
|
26
|
+
right: 60,
|
27
|
+
bottom: 120,
|
28
|
+
left: 60
|
29
|
+
},
|
30
|
+
highlightTarget: 'series'
|
31
|
+
},
|
32
|
+
dataFormatter: {
|
33
|
+
grid: {
|
34
|
+
groupAxis: {
|
35
|
+
scalePadding: 0
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
allPluginParams: {
|
40
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
+
Lines: {},
|
42
|
+
LineAreas: {},
|
43
|
+
Dots: {},
|
44
|
+
GroupAxis: {},
|
45
|
+
ValueAxis: {},
|
46
|
+
GroupAux: {},
|
47
|
+
GridLegend: {
|
48
|
+
position: 'bottom',
|
49
|
+
justify: 'center',
|
50
|
+
padding: 14,
|
51
|
+
listRectHeight: 2
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
@@ -1,59 +1,59 @@
|
|
1
|
-
import type { PresetPartial } from '@orbcharts/core'
|
2
|
-
import type { PresetLinesParams,
|
3
|
-
PresetLineAreasParams,
|
4
|
-
PresetDotsParams,
|
5
|
-
PresetGroupAxisParams,
|
6
|
-
PresetValueAxisParams,
|
7
|
-
PresetGroupAuxParams,
|
8
|
-
PresetGridLegendParams,
|
9
|
-
PresetNoneDataPluginParams
|
10
|
-
} from '../types'
|
11
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
-
|
13
|
-
export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', PresetLinesParams
|
14
|
-
& PresetLineAreasParams
|
15
|
-
& PresetDotsParams
|
16
|
-
& PresetGridLegendParams
|
17
|
-
& PresetGroupAxisParams
|
18
|
-
& PresetValueAxisParams
|
19
|
-
& PresetGroupAuxParams
|
20
|
-
& PresetNoneDataPluginParams> = {
|
21
|
-
name: 'PRESET_LINE_AREAS_CURVE',
|
22
|
-
description: '弧線折線圖',
|
23
|
-
chartParams: {
|
24
|
-
padding: {
|
25
|
-
top: 60,
|
26
|
-
right: 60,
|
27
|
-
bottom: 120,
|
28
|
-
left: 60
|
29
|
-
},
|
30
|
-
highlightTarget: 'series'
|
31
|
-
},
|
32
|
-
dataFormatter: {
|
33
|
-
grid: {
|
34
|
-
groupAxis: {
|
35
|
-
scalePadding: 0
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
allPluginParams: {
|
40
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
-
Lines: {
|
42
|
-
lineCurve: 'curveMonotoneX',
|
43
|
-
lineWidth: 3
|
44
|
-
},
|
45
|
-
LineAreas: {
|
46
|
-
lineCurve: 'curveMonotoneX',
|
47
|
-
},
|
48
|
-
Dots: {},
|
49
|
-
GroupAxis: {},
|
50
|
-
ValueAxis: {},
|
51
|
-
GroupAux: {},
|
52
|
-
GridLegend: {
|
53
|
-
position: 'bottom',
|
54
|
-
justify: 'center',
|
55
|
-
padding: 14,
|
56
|
-
listRectHeight: 2
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetLinesParams,
|
3
|
+
PresetLineAreasParams,
|
4
|
+
PresetDotsParams,
|
5
|
+
PresetGroupAxisParams,
|
6
|
+
PresetValueAxisParams,
|
7
|
+
PresetGroupAuxParams,
|
8
|
+
PresetGridLegendParams,
|
9
|
+
PresetNoneDataPluginParams
|
10
|
+
} from '../types'
|
11
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
+
|
13
|
+
export const PRESET_LINE_AREAS_CURVE: PresetPartial<'grid', PresetLinesParams
|
14
|
+
& PresetLineAreasParams
|
15
|
+
& PresetDotsParams
|
16
|
+
& PresetGridLegendParams
|
17
|
+
& PresetGroupAxisParams
|
18
|
+
& PresetValueAxisParams
|
19
|
+
& PresetGroupAuxParams
|
20
|
+
& PresetNoneDataPluginParams> = {
|
21
|
+
name: 'PRESET_LINE_AREAS_CURVE',
|
22
|
+
description: '弧線折線圖',
|
23
|
+
chartParams: {
|
24
|
+
padding: {
|
25
|
+
top: 60,
|
26
|
+
right: 60,
|
27
|
+
bottom: 120,
|
28
|
+
left: 60
|
29
|
+
},
|
30
|
+
highlightTarget: 'series'
|
31
|
+
},
|
32
|
+
dataFormatter: {
|
33
|
+
grid: {
|
34
|
+
groupAxis: {
|
35
|
+
scalePadding: 0
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
allPluginParams: {
|
40
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
+
Lines: {
|
42
|
+
lineCurve: 'curveMonotoneX',
|
43
|
+
lineWidth: 3
|
44
|
+
},
|
45
|
+
LineAreas: {
|
46
|
+
lineCurve: 'curveMonotoneX',
|
47
|
+
},
|
48
|
+
Dots: {},
|
49
|
+
GroupAxis: {},
|
50
|
+
ValueAxis: {},
|
51
|
+
GroupAux: {},
|
52
|
+
GridLegend: {
|
53
|
+
position: 'bottom',
|
54
|
+
justify: 'center',
|
55
|
+
padding: 14,
|
56
|
+
listRectHeight: 2
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
@@ -1,58 +1,58 @@
|
|
1
|
-
import type { PresetPartial } from '@orbcharts/core'
|
2
|
-
import type { PresetLinesParams,
|
3
|
-
PresetLineAreasParams,
|
4
|
-
PresetDotsParams,
|
5
|
-
PresetGroupAxisParams,
|
6
|
-
PresetValueAxisParams,
|
7
|
-
PresetGroupAuxParams,
|
8
|
-
PresetGridLegendParams,
|
9
|
-
PresetNoneDataPluginParams
|
10
|
-
} from '../types'
|
11
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
-
|
13
|
-
export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', PresetLinesParams
|
14
|
-
& PresetLineAreasParams
|
15
|
-
& PresetDotsParams
|
16
|
-
& PresetGridLegendParams
|
17
|
-
& PresetGroupAxisParams
|
18
|
-
& PresetValueAxisParams
|
19
|
-
& PresetGroupAuxParams
|
20
|
-
& PresetNoneDataPluginParams> = {
|
21
|
-
name: 'PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS',
|
22
|
-
description: '折線圖及Highlight Group圓點',
|
23
|
-
chartParams: {
|
24
|
-
padding: {
|
25
|
-
top: 60,
|
26
|
-
right: 60,
|
27
|
-
bottom: 120,
|
28
|
-
left: 60
|
29
|
-
},
|
30
|
-
highlightTarget: 'group'
|
31
|
-
},
|
32
|
-
dataFormatter: {
|
33
|
-
grid: {
|
34
|
-
groupAxis: {
|
35
|
-
scalePadding: 0
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
allPluginParams: {
|
40
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
-
Lines: {
|
42
|
-
lineWidth: 3
|
43
|
-
},
|
44
|
-
LineAreas: {},
|
45
|
-
Dots: {
|
46
|
-
onlyShowHighlighted: false
|
47
|
-
},
|
48
|
-
GroupAxis: {},
|
49
|
-
ValueAxis: {},
|
50
|
-
GroupAux: {},
|
51
|
-
GridLegend: {
|
52
|
-
position: 'bottom',
|
53
|
-
justify: 'center',
|
54
|
-
padding: 14,
|
55
|
-
listRectHeight: 2
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetLinesParams,
|
3
|
+
PresetLineAreasParams,
|
4
|
+
PresetDotsParams,
|
5
|
+
PresetGroupAxisParams,
|
6
|
+
PresetValueAxisParams,
|
7
|
+
PresetGroupAuxParams,
|
8
|
+
PresetGridLegendParams,
|
9
|
+
PresetNoneDataPluginParams
|
10
|
+
} from '../types'
|
11
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
+
|
13
|
+
export const PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS: PresetPartial<'grid', PresetLinesParams
|
14
|
+
& PresetLineAreasParams
|
15
|
+
& PresetDotsParams
|
16
|
+
& PresetGridLegendParams
|
17
|
+
& PresetGroupAxisParams
|
18
|
+
& PresetValueAxisParams
|
19
|
+
& PresetGroupAuxParams
|
20
|
+
& PresetNoneDataPluginParams> = {
|
21
|
+
name: 'PRESET_LINE_AREAS_HIGHLIGHT_GROUP_DOTS',
|
22
|
+
description: '折線圖及Highlight Group圓點',
|
23
|
+
chartParams: {
|
24
|
+
padding: {
|
25
|
+
top: 60,
|
26
|
+
right: 60,
|
27
|
+
bottom: 120,
|
28
|
+
left: 60
|
29
|
+
},
|
30
|
+
highlightTarget: 'group'
|
31
|
+
},
|
32
|
+
dataFormatter: {
|
33
|
+
grid: {
|
34
|
+
groupAxis: {
|
35
|
+
scalePadding: 0
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
allPluginParams: {
|
40
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
+
Lines: {
|
42
|
+
lineWidth: 3
|
43
|
+
},
|
44
|
+
LineAreas: {},
|
45
|
+
Dots: {
|
46
|
+
onlyShowHighlighted: false
|
47
|
+
},
|
48
|
+
GroupAxis: {},
|
49
|
+
ValueAxis: {},
|
50
|
+
GroupAux: {},
|
51
|
+
GridLegend: {
|
52
|
+
position: 'bottom',
|
53
|
+
justify: 'center',
|
54
|
+
padding: 14,
|
55
|
+
listRectHeight: 2
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
@@ -1,58 +1,58 @@
|
|
1
|
-
import type { PresetPartial } from '@orbcharts/core'
|
2
|
-
import type { PresetLinesParams,
|
3
|
-
PresetLineAreasParams,
|
4
|
-
PresetDotsParams,
|
5
|
-
PresetGroupAxisParams,
|
6
|
-
PresetValueAxisParams,
|
7
|
-
PresetGroupAuxParams,
|
8
|
-
PresetGridLegendParams,
|
9
|
-
PresetNoneDataPluginParams
|
10
|
-
} from '../types'
|
11
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
-
|
13
|
-
export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', PresetLinesParams
|
14
|
-
& PresetLineAreasParams
|
15
|
-
& PresetDotsParams
|
16
|
-
& PresetGridLegendParams
|
17
|
-
& PresetGroupAxisParams
|
18
|
-
& PresetValueAxisParams
|
19
|
-
& PresetGroupAuxParams
|
20
|
-
& PresetNoneDataPluginParams> = {
|
21
|
-
name: 'PRESET_LINE_AREAS_HORIZONTAL',
|
22
|
-
description: '橫向折線圖',
|
23
|
-
chartParams: {
|
24
|
-
padding: {
|
25
|
-
top: 60,
|
26
|
-
right: 60,
|
27
|
-
bottom: 120,
|
28
|
-
left: 160
|
29
|
-
},
|
30
|
-
highlightTarget: 'series'
|
31
|
-
},
|
32
|
-
dataFormatter: {
|
33
|
-
grid: {
|
34
|
-
valueAxis: {
|
35
|
-
position: 'bottom'
|
36
|
-
},
|
37
|
-
groupAxis: {
|
38
|
-
position: 'left',
|
39
|
-
scalePadding: 0
|
40
|
-
},
|
41
|
-
}
|
42
|
-
},
|
43
|
-
allPluginParams: {
|
44
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
45
|
-
Lines: {},
|
46
|
-
LineAreas: {},
|
47
|
-
Dots: {},
|
48
|
-
GroupAxis: {},
|
49
|
-
ValueAxis: {},
|
50
|
-
GroupAux: {},
|
51
|
-
GridLegend: {
|
52
|
-
position: 'bottom',
|
53
|
-
justify: 'center',
|
54
|
-
padding: 14,
|
55
|
-
listRectHeight: 2
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetLinesParams,
|
3
|
+
PresetLineAreasParams,
|
4
|
+
PresetDotsParams,
|
5
|
+
PresetGroupAxisParams,
|
6
|
+
PresetValueAxisParams,
|
7
|
+
PresetGroupAuxParams,
|
8
|
+
PresetGridLegendParams,
|
9
|
+
PresetNoneDataPluginParams
|
10
|
+
} from '../types'
|
11
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
+
|
13
|
+
export const PRESET_LINE_AREAS_HORIZONTAL: PresetPartial<'grid', PresetLinesParams
|
14
|
+
& PresetLineAreasParams
|
15
|
+
& PresetDotsParams
|
16
|
+
& PresetGridLegendParams
|
17
|
+
& PresetGroupAxisParams
|
18
|
+
& PresetValueAxisParams
|
19
|
+
& PresetGroupAuxParams
|
20
|
+
& PresetNoneDataPluginParams> = {
|
21
|
+
name: 'PRESET_LINE_AREAS_HORIZONTAL',
|
22
|
+
description: '橫向折線圖',
|
23
|
+
chartParams: {
|
24
|
+
padding: {
|
25
|
+
top: 60,
|
26
|
+
right: 60,
|
27
|
+
bottom: 120,
|
28
|
+
left: 160
|
29
|
+
},
|
30
|
+
highlightTarget: 'series'
|
31
|
+
},
|
32
|
+
dataFormatter: {
|
33
|
+
grid: {
|
34
|
+
valueAxis: {
|
35
|
+
position: 'bottom'
|
36
|
+
},
|
37
|
+
groupAxis: {
|
38
|
+
position: 'left',
|
39
|
+
scalePadding: 0
|
40
|
+
},
|
41
|
+
}
|
42
|
+
},
|
43
|
+
allPluginParams: {
|
44
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
45
|
+
Lines: {},
|
46
|
+
LineAreas: {},
|
47
|
+
Dots: {},
|
48
|
+
GroupAxis: {},
|
49
|
+
ValueAxis: {},
|
50
|
+
GroupAux: {},
|
51
|
+
GridLegend: {
|
52
|
+
position: 'bottom',
|
53
|
+
justify: 'center',
|
54
|
+
padding: 14,
|
55
|
+
listRectHeight: 2
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
@@ -1,56 +1,56 @@
|
|
1
|
-
import type { PresetPartial } from '@orbcharts/core'
|
2
|
-
import type { PresetLinesParams,
|
3
|
-
PresetLineAreasParams,
|
4
|
-
PresetDotsParams,
|
5
|
-
PresetGroupAxisParams,
|
6
|
-
PresetValueAxisParams,
|
7
|
-
PresetGroupAuxParams,
|
8
|
-
PresetGridLegendParams,
|
9
|
-
PresetNoneDataPluginParams
|
10
|
-
} from '../types'
|
11
|
-
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
-
|
13
|
-
export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', PresetLinesParams
|
14
|
-
& PresetLineAreasParams
|
15
|
-
& PresetDotsParams
|
16
|
-
& PresetGridLegendParams
|
17
|
-
& PresetGroupAxisParams
|
18
|
-
& PresetValueAxisParams
|
19
|
-
& PresetGroupAuxParams
|
20
|
-
& PresetNoneDataPluginParams> = {
|
21
|
-
name: 'PRESET_LINE_AREAS_LOOSE_TICKS',
|
22
|
-
description: '寬鬆標籤',
|
23
|
-
chartParams: {
|
24
|
-
padding: {
|
25
|
-
top: 60,
|
26
|
-
right: 60,
|
27
|
-
bottom: 120,
|
28
|
-
left: 60
|
29
|
-
},
|
30
|
-
highlightTarget: 'series'
|
31
|
-
},
|
32
|
-
dataFormatter: {
|
33
|
-
grid: {
|
34
|
-
groupAxis: {
|
35
|
-
scalePadding: 0
|
36
|
-
}
|
37
|
-
}
|
38
|
-
},
|
39
|
-
allPluginParams: {
|
40
|
-
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
-
Lines: {},
|
42
|
-
LineAreas: {},
|
43
|
-
Dots: {},
|
44
|
-
GroupAxis: {
|
45
|
-
ticks: 6
|
46
|
-
},
|
47
|
-
ValueAxis: {},
|
48
|
-
GroupAux: {},
|
49
|
-
GridLegend: {
|
50
|
-
position: 'bottom',
|
51
|
-
justify: 'center',
|
52
|
-
padding: 14,
|
53
|
-
listRectHeight: 2
|
54
|
-
}
|
55
|
-
}
|
56
|
-
}
|
1
|
+
import type { PresetPartial } from '@orbcharts/core'
|
2
|
+
import type { PresetLinesParams,
|
3
|
+
PresetLineAreasParams,
|
4
|
+
PresetDotsParams,
|
5
|
+
PresetGroupAxisParams,
|
6
|
+
PresetValueAxisParams,
|
7
|
+
PresetGroupAuxParams,
|
8
|
+
PresetGridLegendParams,
|
9
|
+
PresetNoneDataPluginParams
|
10
|
+
} from '../types'
|
11
|
+
import { ALL_PLUGIN_PARAMS_NONE_DATA } from '../params'
|
12
|
+
|
13
|
+
export const PRESET_LINE_AREAS_LOOSE_TICKS: PresetPartial<'grid', PresetLinesParams
|
14
|
+
& PresetLineAreasParams
|
15
|
+
& PresetDotsParams
|
16
|
+
& PresetGridLegendParams
|
17
|
+
& PresetGroupAxisParams
|
18
|
+
& PresetValueAxisParams
|
19
|
+
& PresetGroupAuxParams
|
20
|
+
& PresetNoneDataPluginParams> = {
|
21
|
+
name: 'PRESET_LINE_AREAS_LOOSE_TICKS',
|
22
|
+
description: '寬鬆標籤',
|
23
|
+
chartParams: {
|
24
|
+
padding: {
|
25
|
+
top: 60,
|
26
|
+
right: 60,
|
27
|
+
bottom: 120,
|
28
|
+
left: 60
|
29
|
+
},
|
30
|
+
highlightTarget: 'series'
|
31
|
+
},
|
32
|
+
dataFormatter: {
|
33
|
+
grid: {
|
34
|
+
groupAxis: {
|
35
|
+
scalePadding: 0
|
36
|
+
}
|
37
|
+
}
|
38
|
+
},
|
39
|
+
allPluginParams: {
|
40
|
+
...ALL_PLUGIN_PARAMS_NONE_DATA,
|
41
|
+
Lines: {},
|
42
|
+
LineAreas: {},
|
43
|
+
Dots: {},
|
44
|
+
GroupAxis: {
|
45
|
+
ticks: 6
|
46
|
+
},
|
47
|
+
ValueAxis: {},
|
48
|
+
GroupAux: {},
|
49
|
+
GridLegend: {
|
50
|
+
position: 'bottom',
|
51
|
+
justify: 'center',
|
52
|
+
padding: 14,
|
53
|
+
listRectHeight: 2
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|