@orbcharts/presets-basic 3.0.0-alpha.7 → 3.0.0-alpha.8

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/presets-basic",
3
- "version": "3.0.0-alpha.7",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "presets for OrbCharts",
5
5
  "author": "Blue Planet Inc.",
6
6
  "license": "Apache-2.0",
@@ -35,8 +35,8 @@
35
35
  "vite-plugin-dts": "^3.7.3"
36
36
  },
37
37
  "dependencies": {
38
- "@orbcharts/core": "^3.0.0-alpha.34",
39
- "@orbcharts/plugins-basic": "^3.0.0-alpha.35",
38
+ "@orbcharts/core": "^3.0.0-alpha.36",
39
+ "@orbcharts/plugins-basic": "^3.0.0-alpha.37",
40
40
  "d3": "^7.8.5",
41
41
  "rxjs": "^7.8.1"
42
42
  }
@@ -0,0 +1,15 @@
1
+ import type { DataFormatterFile } from '../types'
2
+
3
+ export const DF_GRID_DIVERGING_SCALE: DataFormatterFile<'grid'> = {
4
+ id: 'DF_GRID_DIVERGING_SCALE',
5
+ chartType: 'grid',
6
+ description: '分向資料圖軸',
7
+ data: {
8
+ grid: {
9
+ valueAxis: {
10
+ scaleDomain: ['auto', 'auto'],
11
+ scaleRange: [0.05, 0.95],
12
+ },
13
+ }
14
+ }
15
+ }
@@ -1,4 +1,5 @@
1
1
  export { DF_GRID_BOTTOM_VALUE_AXIS } from './DF_GRID_BOTTOM_VALUE_AXIS'
2
2
  export { DF_GRID_2_SERIES_SLOT } from './DF_GRID_2_SERIES_SLOT'
3
3
  export { DF_GRID_3_SERIES_SLOT } from './DF_GRID_3_SERIES_SLOT'
4
- export { DF_GRID_4_SERIES_SLOT } from './DF_GRID_4_SERIES_SLOT'
4
+ export { DF_GRID_4_SERIES_SLOT } from './DF_GRID_4_SERIES_SLOT'
5
+ export { DF_GRID_DIVERGING_SCALE } from './DF_GRID_DIVERGING_SCALE'
package/src/index.ts CHANGED
@@ -64,6 +64,12 @@ export const PRESET_GRID_HORIZONTAL = createGridPreset({
64
64
  allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
65
65
  description: '橫向圖'
66
66
  })
67
+ export const PRESET_GRID_DIVERGING_SCALE = createGridPreset({
68
+ chartParamsId: 'CP_BOTTOM_PADDING',
69
+ dataFormatterId: 'DF_GRID_DIVERGING_SCALE',
70
+ allPluginParamsIds: ['PP_GRID_LEGEND_BOTTOM'],
71
+ description: '正負值分向圖'
72
+ })
67
73
  export const PRESET_GRID_2_SERIES_SLOT = createGridPreset({
68
74
  chartParamsId: 'CP_BOTTOM_LONG_PADDING',
69
75
  dataFormatterId: 'DF_GRID_2_SERIES_SLOT',