@orbcharts/presets-basic 3.0.0-alpha.1 → 3.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +200 -200
- package/dist/orbcharts-presets-basic.es.js +67 -57
- package/dist/orbcharts-presets-basic.umd.js +1 -1
- package/dist/src/index.d.ts +2 -0
- package/package.json +43 -43
- package/src/chartParamsFiles/CP_BOTTOM_LONG_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_BOTTOM_PADDING_WITH_GROUP_HIGHLIGHT.ts +14 -14
- package/src/chartParamsFiles/CP_LEFT_PADDING.ts +13 -13
- package/src/chartParamsFiles/CP_RIGHT_PADDING.ts +13 -13
- package/src/chartParamsFiles/index.ts +4 -4
- package/src/createPreset.ts +87 -87
- package/src/gridDataFormatterFiles/DF_BOTTOM_VALUE_AXIS.ts +15 -15
- package/src/gridPluginParamsFiles/Bars/PP_BARS_ROUND.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/PP_BARS_THIN.ts +14 -14
- package/src/gridPluginParamsFiles/Bars/index.ts +1 -1
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_ONLY_SHOW_HIGHLIGHTED.ts +14 -14
- package/src/gridPluginParamsFiles/Dots/PP_DOTS_SOLID.ts +14 -14
- package/src/gridPluginParamsFiles/Dots/index.ts +1 -1
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM.ts +13 -13
- package/src/gridPluginParamsFiles/GridLegend/PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST.ts +14 -14
- package/src/gridPluginParamsFiles/GridLegend/index.ts +1 -1
- package/src/gridPluginParamsFiles/GroupAxis/PP_GROUP_AXIS_ROTATE_LABEL.ts +11 -11
- package/src/gridPluginParamsFiles/Lines/PP_LINES_CURVE.ts +12 -12
- package/src/gridPluginParamsFiles/index.ts +5 -5
- package/src/index.ts +114 -103
- package/src/seriesPluginParamsFiles/Bubbles/PP_BUBBLES_SCALING_BY_RADIUS.ts +11 -11
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_DONUT.ts +12 -12
- package/src/seriesPluginParamsFiles/Pie/PP_PIE_HALF_DONUT.ts +14 -14
- package/src/seriesPluginParamsFiles/Pie/index.ts +1 -1
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_HALF_ANGLE.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/PP_PIE_LABELS_INNER.ts +13 -13
- package/src/seriesPluginParamsFiles/PieLabels/index.ts +1 -1
- package/src/seriesPluginParamsFiles/SeriesLegend/PP_SERIES_LEGEND_ROUND.ts +11 -11
- package/src/seriesPluginParamsFiles/index.ts +3 -3
- package/src/types.ts +58 -58
- package/tsconfig.json +13 -13
- package/vite.config.js +44 -44
package/src/createPreset.ts
CHANGED
@@ -1,88 +1,88 @@
|
|
1
|
-
import type { PresetPartial, ChartType, ChartParamsPartial, DataFormatterPartialTypeMap } from '@orbcharts/core'
|
2
|
-
import type { ChartParamsFile, DataFormatterFile, PluginParamsFile, PresetFile } from './types'
|
3
|
-
import * as chartParamsFiles from './chartParamsFiles'
|
4
|
-
import * as seriesDataFormatterFiles from './seriesDataFormatterFiles'
|
5
|
-
import * as seriesPluginParamsFiles from './seriesPluginParamsFiles'
|
6
|
-
import * as gridDataFormatterFiles from './gridDataFormatterFiles'
|
7
|
-
import * as gridPluginParamsFiles from './gridPluginParamsFiles'
|
8
|
-
import * as multiGridDataFormatterFiles from './multiGridDataFormatterFiles'
|
9
|
-
import * as multiGridPluginParamsFiles from './multiGridPluginParamsFiles'
|
10
|
-
import * as multiValueDataFormatterFiles from './multiValueDataFormatterFiles'
|
11
|
-
import * as multiValuePluginParamsFiles from './multiValuePluginParamsFiles'
|
12
|
-
import * as relationshipDataFormatterFiles from './relationshipDataFormatterFiles'
|
13
|
-
import * as relationshipPluginParamsFiles from './relationshipPluginParamsFiles'
|
14
|
-
import * as treeDataFormatterFiles from './treeDataFormatterFiles'
|
15
|
-
import * as treePluginParamsFiles from './treePluginParamsFiles'
|
16
|
-
|
17
|
-
const dataFormatterFilesTypeMap = {
|
18
|
-
series: seriesDataFormatterFiles,
|
19
|
-
grid: gridDataFormatterFiles,
|
20
|
-
multiGrid: multiGridDataFormatterFiles,
|
21
|
-
multiValue: multiValueDataFormatterFiles,
|
22
|
-
relationship: relationshipDataFormatterFiles,
|
23
|
-
tree: treeDataFormatterFiles
|
24
|
-
}
|
25
|
-
|
26
|
-
const pluginParamsFilesTypeMap = {
|
27
|
-
series: seriesPluginParamsFiles,
|
28
|
-
grid: gridPluginParamsFiles,
|
29
|
-
multiGrid: multiGridPluginParamsFiles,
|
30
|
-
multiValue: multiValuePluginParamsFiles,
|
31
|
-
relationship: relationshipPluginParamsFiles,
|
32
|
-
tree: treePluginParamsFiles
|
33
|
-
}
|
34
|
-
|
35
|
-
const createBasePreset = <T extends ChartType>(chartType: T, presetFile: PresetFile<T>): PresetPartial<T> => {
|
36
|
-
const chartParams: ChartParamsPartial | undefined = presetFile.chartParamsId
|
37
|
-
? chartParamsFiles[presetFile.chartParamsId].data
|
38
|
-
: undefined
|
39
|
-
// @ts-ignore
|
40
|
-
const dataFormatter: DataFormatterPartialTypeMap<T> | undefined = dataFormatterFilesTypeMap[chartType][presetFile.dataFormatterId]
|
41
|
-
// @ts-ignore
|
42
|
-
? dataFormatterFilesTypeMap[chartType][presetFile.dataFormatterId].data
|
43
|
-
: undefined
|
44
|
-
|
45
|
-
const allPluginParams: {[key: string]: any} | undefined = presetFile.allPluginParamsIds
|
46
|
-
? presetFile.allPluginParamsIds
|
47
|
-
.reduce((prev, current) => {
|
48
|
-
// @ts-ignore
|
49
|
-
if (pluginParamsFilesTypeMap[chartType][current]) {
|
50
|
-
// @ts-ignore
|
51
|
-
const pluginName = pluginParamsFilesTypeMap[chartType][current].pluginName
|
52
|
-
// @ts-ignore
|
53
|
-
prev[pluginName] = pluginParamsFilesTypeMap[chartType][current].data
|
54
|
-
}
|
55
|
-
return prev
|
56
|
-
}, {})
|
57
|
-
: undefined
|
58
|
-
|
59
|
-
return {
|
60
|
-
chartParams,
|
61
|
-
dataFormatter,
|
62
|
-
allPluginParams
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
export const createSeriesPreset = (presetFile: PresetFile<'series'>): PresetPartial<'series'> => {
|
67
|
-
return createBasePreset('series', presetFile)
|
68
|
-
}
|
69
|
-
|
70
|
-
export const createGridPreset = (presetFile: PresetFile<'grid'>): PresetPartial<'grid'> => {
|
71
|
-
return createBasePreset('grid', presetFile)
|
72
|
-
}
|
73
|
-
|
74
|
-
export const createMultiGridPreset = (presetFile: PresetFile<'multiGrid'>): PresetPartial<'multiGrid'> => {
|
75
|
-
return createBasePreset('multiGrid', presetFile)
|
76
|
-
}
|
77
|
-
|
78
|
-
export const createMultiValuePreset = (presetFile: PresetFile<'multiValue'>): PresetPartial<'multiValue'> => {
|
79
|
-
return createBasePreset('multiValue', presetFile)
|
80
|
-
}
|
81
|
-
|
82
|
-
export const createRelationshipPreset = (presetFile: PresetFile<'relationship'>): PresetPartial<'relationship'> => {
|
83
|
-
return createBasePreset('relationship', presetFile)
|
84
|
-
}
|
85
|
-
|
86
|
-
export const createTreePreset = (presetFile: PresetFile<'tree'>): PresetPartial<'tree'> => {
|
87
|
-
return createBasePreset('tree', presetFile)
|
1
|
+
import type { PresetPartial, ChartType, ChartParamsPartial, DataFormatterPartialTypeMap } from '@orbcharts/core'
|
2
|
+
import type { ChartParamsFile, DataFormatterFile, PluginParamsFile, PresetFile } from './types'
|
3
|
+
import * as chartParamsFiles from './chartParamsFiles'
|
4
|
+
import * as seriesDataFormatterFiles from './seriesDataFormatterFiles'
|
5
|
+
import * as seriesPluginParamsFiles from './seriesPluginParamsFiles'
|
6
|
+
import * as gridDataFormatterFiles from './gridDataFormatterFiles'
|
7
|
+
import * as gridPluginParamsFiles from './gridPluginParamsFiles'
|
8
|
+
import * as multiGridDataFormatterFiles from './multiGridDataFormatterFiles'
|
9
|
+
import * as multiGridPluginParamsFiles from './multiGridPluginParamsFiles'
|
10
|
+
import * as multiValueDataFormatterFiles from './multiValueDataFormatterFiles'
|
11
|
+
import * as multiValuePluginParamsFiles from './multiValuePluginParamsFiles'
|
12
|
+
import * as relationshipDataFormatterFiles from './relationshipDataFormatterFiles'
|
13
|
+
import * as relationshipPluginParamsFiles from './relationshipPluginParamsFiles'
|
14
|
+
import * as treeDataFormatterFiles from './treeDataFormatterFiles'
|
15
|
+
import * as treePluginParamsFiles from './treePluginParamsFiles'
|
16
|
+
|
17
|
+
const dataFormatterFilesTypeMap = {
|
18
|
+
series: seriesDataFormatterFiles,
|
19
|
+
grid: gridDataFormatterFiles,
|
20
|
+
multiGrid: multiGridDataFormatterFiles,
|
21
|
+
multiValue: multiValueDataFormatterFiles,
|
22
|
+
relationship: relationshipDataFormatterFiles,
|
23
|
+
tree: treeDataFormatterFiles
|
24
|
+
}
|
25
|
+
|
26
|
+
const pluginParamsFilesTypeMap = {
|
27
|
+
series: seriesPluginParamsFiles,
|
28
|
+
grid: gridPluginParamsFiles,
|
29
|
+
multiGrid: multiGridPluginParamsFiles,
|
30
|
+
multiValue: multiValuePluginParamsFiles,
|
31
|
+
relationship: relationshipPluginParamsFiles,
|
32
|
+
tree: treePluginParamsFiles
|
33
|
+
}
|
34
|
+
|
35
|
+
const createBasePreset = <T extends ChartType>(chartType: T, presetFile: PresetFile<T>): PresetPartial<T> => {
|
36
|
+
const chartParams: ChartParamsPartial | undefined = presetFile.chartParamsId
|
37
|
+
? chartParamsFiles[presetFile.chartParamsId].data
|
38
|
+
: undefined
|
39
|
+
// @ts-ignore
|
40
|
+
const dataFormatter: DataFormatterPartialTypeMap<T> | undefined = dataFormatterFilesTypeMap[chartType][presetFile.dataFormatterId]
|
41
|
+
// @ts-ignore
|
42
|
+
? dataFormatterFilesTypeMap[chartType][presetFile.dataFormatterId].data
|
43
|
+
: undefined
|
44
|
+
|
45
|
+
const allPluginParams: {[key: string]: any} | undefined = presetFile.allPluginParamsIds
|
46
|
+
? presetFile.allPluginParamsIds
|
47
|
+
.reduce((prev, current) => {
|
48
|
+
// @ts-ignore
|
49
|
+
if (pluginParamsFilesTypeMap[chartType][current]) {
|
50
|
+
// @ts-ignore
|
51
|
+
const pluginName = pluginParamsFilesTypeMap[chartType][current].pluginName
|
52
|
+
// @ts-ignore
|
53
|
+
prev[pluginName] = pluginParamsFilesTypeMap[chartType][current].data
|
54
|
+
}
|
55
|
+
return prev
|
56
|
+
}, {})
|
57
|
+
: undefined
|
58
|
+
|
59
|
+
return {
|
60
|
+
chartParams,
|
61
|
+
dataFormatter,
|
62
|
+
allPluginParams
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
export const createSeriesPreset = (presetFile: PresetFile<'series'>): PresetPartial<'series'> => {
|
67
|
+
return createBasePreset('series', presetFile)
|
68
|
+
}
|
69
|
+
|
70
|
+
export const createGridPreset = (presetFile: PresetFile<'grid'>): PresetPartial<'grid'> => {
|
71
|
+
return createBasePreset('grid', presetFile)
|
72
|
+
}
|
73
|
+
|
74
|
+
export const createMultiGridPreset = (presetFile: PresetFile<'multiGrid'>): PresetPartial<'multiGrid'> => {
|
75
|
+
return createBasePreset('multiGrid', presetFile)
|
76
|
+
}
|
77
|
+
|
78
|
+
export const createMultiValuePreset = (presetFile: PresetFile<'multiValue'>): PresetPartial<'multiValue'> => {
|
79
|
+
return createBasePreset('multiValue', presetFile)
|
80
|
+
}
|
81
|
+
|
82
|
+
export const createRelationshipPreset = (presetFile: PresetFile<'relationship'>): PresetPartial<'relationship'> => {
|
83
|
+
return createBasePreset('relationship', presetFile)
|
84
|
+
}
|
85
|
+
|
86
|
+
export const createTreePreset = (presetFile: PresetFile<'tree'>): PresetPartial<'tree'> => {
|
87
|
+
return createBasePreset('tree', presetFile)
|
88
88
|
}
|
@@ -1,16 +1,16 @@
|
|
1
|
-
import type { DataFormatterFile } from '../types'
|
2
|
-
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const DF_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
|
5
|
-
id: 'DF_BOTTOM_VALUE_AXIS',
|
6
|
-
chartType: 'grid',
|
7
|
-
description: '底部橫向資料圖軸',
|
8
|
-
data: {
|
9
|
-
valueAxis: {
|
10
|
-
position: 'bottom'
|
11
|
-
},
|
12
|
-
groupAxis: {
|
13
|
-
position: 'left'
|
14
|
-
},
|
15
|
-
}
|
1
|
+
import type { DataFormatterFile } from '../types'
|
2
|
+
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const DF_BOTTOM_VALUE_AXIS: DataFormatterFile<'grid'> = {
|
5
|
+
id: 'DF_BOTTOM_VALUE_AXIS',
|
6
|
+
chartType: 'grid',
|
7
|
+
description: '底部橫向資料圖軸',
|
8
|
+
data: {
|
9
|
+
valueAxis: {
|
10
|
+
position: 'bottom'
|
11
|
+
},
|
12
|
+
groupAxis: {
|
13
|
+
position: 'left'
|
14
|
+
},
|
15
|
+
}
|
16
16
|
}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_BARS_ROUND: PluginParamsFile<BarsParams> = {
|
5
|
-
id: 'PP_BARS_ROUND',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'Bars',
|
8
|
-
description: '圓角長條圖',
|
9
|
-
data: {
|
10
|
-
barWidth: 0,
|
11
|
-
barPadding: 1,
|
12
|
-
barGroupPadding: 10,
|
13
|
-
barRadius: true,
|
14
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_BARS_ROUND: PluginParamsFile<BarsParams> = {
|
5
|
+
id: 'PP_BARS_ROUND',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'Bars',
|
8
|
+
description: '圓角長條圖',
|
9
|
+
data: {
|
10
|
+
barWidth: 0,
|
11
|
+
barPadding: 1,
|
12
|
+
barGroupPadding: 10,
|
13
|
+
barRadius: true,
|
14
|
+
}
|
15
15
|
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_BARS_THIN: PluginParamsFile<BarsParams> = {
|
5
|
-
id: 'PP_BARS_THIN',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'Bars',
|
8
|
-
description: '圓角長條圖',
|
9
|
-
data: {
|
10
|
-
barWidth: 20,
|
11
|
-
barPadding: 1,
|
12
|
-
barGroupPadding: 10
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { BarsParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_BARS_THIN: PluginParamsFile<BarsParams> = {
|
5
|
+
id: 'PP_BARS_THIN',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'Bars',
|
8
|
+
description: '圓角長條圖',
|
9
|
+
data: {
|
10
|
+
barWidth: 20,
|
11
|
+
barPadding: 1,
|
12
|
+
barGroupPadding: 10
|
13
|
+
}
|
14
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { PP_BARS_ROUND } from './PP_BARS_ROUND'
|
1
|
+
export { PP_BARS_ROUND } from './PP_BARS_ROUND'
|
2
2
|
export { PP_BARS_THIN } from './PP_BARS_THIN'
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { DotsParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_DOTS_ONLY_SHOW_HIGHLIGHTED: PluginParamsFile<DotsParams> = {
|
5
|
-
id: 'PP_DOTS_ONLY_SHOW_HIGHLIGHTED',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'Dots',
|
8
|
-
description: '顯示highlight圓點',
|
9
|
-
data: {
|
10
|
-
radius: 3,
|
11
|
-
fillColorType: 'series',
|
12
|
-
onlyShowHighlighted: false
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { DotsParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_DOTS_ONLY_SHOW_HIGHLIGHTED: PluginParamsFile<DotsParams> = {
|
5
|
+
id: 'PP_DOTS_ONLY_SHOW_HIGHLIGHTED',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'Dots',
|
8
|
+
description: '顯示highlight圓點',
|
9
|
+
data: {
|
10
|
+
radius: 3,
|
11
|
+
fillColorType: 'series',
|
12
|
+
onlyShowHighlighted: false
|
13
|
+
}
|
14
|
+
}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { DotsParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_DOTS_SOLID: PluginParamsFile<DotsParams> = {
|
5
|
-
id: 'PP_DOTS_SOLID',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'Dots',
|
8
|
-
description: '實心圓點',
|
9
|
-
data: {
|
10
|
-
radius: 3,
|
11
|
-
fillColorType: 'series',
|
12
|
-
onlyShowHighlighted: false
|
13
|
-
}
|
14
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { DotsParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_DOTS_SOLID: PluginParamsFile<DotsParams> = {
|
5
|
+
id: 'PP_DOTS_SOLID',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'Dots',
|
8
|
+
description: '實心圓點',
|
9
|
+
data: {
|
10
|
+
radius: 3,
|
11
|
+
fillColorType: 'series',
|
12
|
+
onlyShowHighlighted: false
|
13
|
+
}
|
14
|
+
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { PP_DOTS_ONLY_SHOW_HIGHLIGHTED } from './PP_DOTS_ONLY_SHOW_HIGHLIGHTED'
|
1
|
+
export { PP_DOTS_ONLY_SHOW_HIGHLIGHTED } from './PP_DOTS_ONLY_SHOW_HIGHLIGHTED'
|
2
2
|
export { PP_DOTS_SOLID } from './PP_DOTS_SOLID'
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { GridLegendParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams> = {
|
5
|
-
id: 'PP_GRID_LEGEND_BOTTOM',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'GridLegend',
|
8
|
-
description: '底部圖例',
|
9
|
-
data: {
|
10
|
-
position: 'bottom',
|
11
|
-
justify: 'center',
|
12
|
-
padding: 14,
|
13
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { GridLegendParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_GRID_LEGEND_BOTTOM: PluginParamsFile<GridLegendParams> = {
|
5
|
+
id: 'PP_GRID_LEGEND_BOTTOM',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'GridLegend',
|
8
|
+
description: '底部圖例',
|
9
|
+
data: {
|
10
|
+
position: 'bottom',
|
11
|
+
justify: 'center',
|
12
|
+
padding: 14,
|
13
|
+
}
|
14
14
|
}
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { GridLegendParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: PluginParamsFile<GridLegendParams> = {
|
5
|
-
id: 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'GridLegend',
|
8
|
-
description: '底部圖例及線條列點',
|
9
|
-
data: {
|
10
|
-
position: 'bottom',
|
11
|
-
justify: 'center',
|
12
|
-
padding: 14,
|
13
|
-
listRectHeight: 2
|
14
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { GridLegendParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST: PluginParamsFile<GridLegendParams> = {
|
5
|
+
id: 'PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'GridLegend',
|
8
|
+
description: '底部圖例及線條列點',
|
9
|
+
data: {
|
10
|
+
position: 'bottom',
|
11
|
+
justify: 'center',
|
12
|
+
padding: 14,
|
13
|
+
listRectHeight: 2
|
14
|
+
}
|
15
15
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'
|
1
|
+
export { PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST } from './PP_GRID_LEGEND_BOTTOM_WITH_LINE_LIST'
|
2
2
|
export { PP_GRID_LEGEND_BOTTOM } from './PP_GRID_LEGEND_BOTTOM'
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { GroupAxisParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_GROUP_AXIS_ROTATE_LABEL: PluginParamsFile<GroupAxisParams> = {
|
5
|
-
id: 'PP_GROUP_AXIS_ROTATE_LABEL',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'GroupAxis',
|
8
|
-
description: '群組圖軸標籤文字傾斜',
|
9
|
-
data: {
|
10
|
-
tickTextRotate: 40
|
11
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { GroupAxisParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_GROUP_AXIS_ROTATE_LABEL: PluginParamsFile<GroupAxisParams> = {
|
5
|
+
id: 'PP_GROUP_AXIS_ROTATE_LABEL',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'GroupAxis',
|
8
|
+
description: '群組圖軸標籤文字傾斜',
|
9
|
+
data: {
|
10
|
+
tickTextRotate: 40
|
11
|
+
}
|
12
12
|
}
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import type { PluginParamsFile } from '../../types'
|
2
|
-
import type { LinesParams } from '@orbcharts/plugins-basic'
|
3
|
-
|
4
|
-
export const PP_LINES_CURVE: PluginParamsFile<LinesParams> = {
|
5
|
-
id: 'PP_LINES_CURVE',
|
6
|
-
chartType: 'grid',
|
7
|
-
pluginName: 'Lines',
|
8
|
-
description: '圓弧折線圖',
|
9
|
-
data: {
|
10
|
-
lineCurve: 'curveMonotoneX',
|
11
|
-
lineWidth: 3
|
12
|
-
}
|
1
|
+
import type { PluginParamsFile } from '../../types'
|
2
|
+
import type { LinesParams } from '@orbcharts/plugins-basic'
|
3
|
+
|
4
|
+
export const PP_LINES_CURVE: PluginParamsFile<LinesParams> = {
|
5
|
+
id: 'PP_LINES_CURVE',
|
6
|
+
chartType: 'grid',
|
7
|
+
pluginName: 'Lines',
|
8
|
+
description: '圓弧折線圖',
|
9
|
+
data: {
|
10
|
+
lineCurve: 'curveMonotoneX',
|
11
|
+
lineWidth: 3
|
12
|
+
}
|
13
13
|
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export * from './Bars'
|
2
|
-
export * from './Dots'
|
3
|
-
export * from './GridLegend'
|
4
|
-
export * from './GroupAxis'
|
5
|
-
export * from './Lines'
|
1
|
+
export * from './Bars'
|
2
|
+
export * from './Dots'
|
3
|
+
export * from './GridLegend'
|
4
|
+
export * from './GroupAxis'
|
5
|
+
export * from './Lines'
|
6
6
|
// export * from './ValueAxis'
|