@orbcharts/core 3.0.2 → 3.0.4

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.
Files changed (78) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +2478 -2362
  3. package/dist/orbcharts-core.umd.js +5 -4
  4. package/dist/src/{utils → multiValue}/multiValueObservables.d.ts +20 -10
  5. package/dist/src/utils/errorMessage.d.ts +5 -3
  6. package/dist/src/utils/index.d.ts +0 -1
  7. package/dist/src/utils/observables.d.ts +3 -2
  8. package/dist/src/utils/orbchartsUtils.d.ts +1 -0
  9. package/lib/core-types.ts +7 -7
  10. package/package.json +46 -46
  11. package/src/AbstractChart.ts +57 -57
  12. package/src/GridChart.ts +24 -24
  13. package/src/MultiGridChart.ts +24 -24
  14. package/src/MultiValueChart.ts +24 -24
  15. package/src/RelationshipChart.ts +24 -24
  16. package/src/SeriesChart.ts +24 -24
  17. package/src/TreeChart.ts +24 -24
  18. package/src/base/createBaseChart.ts +524 -506
  19. package/src/base/createBasePlugin.ts +154 -154
  20. package/src/base/validators/chartOptionsValidator.ts +23 -23
  21. package/src/base/validators/chartParamsValidator.ts +133 -133
  22. package/src/base/validators/elementValidator.ts +13 -13
  23. package/src/base/validators/pluginsValidator.ts +14 -14
  24. package/src/defaults.ts +283 -282
  25. package/src/defineGridPlugin.ts +3 -3
  26. package/src/defineMultiGridPlugin.ts +3 -3
  27. package/src/defineMultiValuePlugin.ts +3 -3
  28. package/src/defineNoneDataPlugin.ts +4 -4
  29. package/src/defineRelationshipPlugin.ts +3 -3
  30. package/src/defineSeriesPlugin.ts +3 -3
  31. package/src/defineTreePlugin.ts +3 -3
  32. package/src/grid/computedDataFn.ts +129 -129
  33. package/src/grid/contextObserverCallback.ts +201 -198
  34. package/src/grid/dataFormatterValidator.ts +125 -120
  35. package/src/grid/dataValidator.ts +12 -12
  36. package/src/{utils → grid}/gridObservables.ts +718 -705
  37. package/src/index.ts +20 -20
  38. package/src/multiGrid/computedDataFn.ts +123 -123
  39. package/src/multiGrid/contextObserverCallback.ts +75 -72
  40. package/src/multiGrid/dataFormatterValidator.ts +120 -115
  41. package/src/multiGrid/dataValidator.ts +12 -12
  42. package/src/{utils → multiGrid}/multiGridObservables.ts +401 -401
  43. package/src/multiValue/computedDataFn.ts +113 -113
  44. package/src/multiValue/contextObserverCallback.ts +328 -276
  45. package/src/multiValue/dataFormatterValidator.ts +94 -89
  46. package/src/multiValue/dataValidator.ts +12 -12
  47. package/src/{utils → multiValue}/multiValueObservables.ts +1219 -1044
  48. package/src/relationship/computedDataFn.ts +159 -159
  49. package/src/relationship/contextObserverCallback.ts +80 -80
  50. package/src/relationship/dataFormatterValidator.ts +13 -13
  51. package/src/relationship/dataValidator.ts +13 -13
  52. package/src/{utils → relationship}/relationshipObservables.ts +84 -84
  53. package/src/series/computedDataFn.ts +88 -88
  54. package/src/series/contextObserverCallback.ts +107 -107
  55. package/src/series/dataFormatterValidator.ts +46 -41
  56. package/src/series/dataValidator.ts +12 -12
  57. package/src/{utils → series}/seriesObservables.ts +175 -175
  58. package/src/tree/computedDataFn.ts +129 -129
  59. package/src/tree/contextObserverCallback.ts +58 -58
  60. package/src/tree/dataFormatterValidator.ts +13 -13
  61. package/src/tree/dataValidator.ts +13 -13
  62. package/src/{utils → tree}/treeObservables.ts +105 -105
  63. package/src/utils/commonUtils.ts +55 -55
  64. package/src/utils/d3Scale.ts +198 -198
  65. package/src/utils/errorMessage.ts +40 -42
  66. package/src/utils/index.ts +4 -10
  67. package/src/utils/observables.ts +293 -281
  68. package/src/utils/orbchartsUtils.ts +396 -377
  69. package/src/utils/validator.ts +126 -126
  70. package/tsconfig.base.json +13 -13
  71. package/tsconfig.json +2 -2
  72. package/vite-env.d.ts +6 -6
  73. package/vite.config.js +22 -22
  74. /package/dist/src/{utils → grid}/gridObservables.d.ts +0 -0
  75. /package/dist/src/{utils → multiGrid}/multiGridObservables.d.ts +0 -0
  76. /package/dist/src/{utils → relationship}/relationshipObservables.d.ts +0 -0
  77. /package/dist/src/{utils → series}/seriesObservables.d.ts +0 -0
  78. /package/dist/src/{utils → tree}/treeObservables.d.ts +0 -0
@@ -1,276 +1,328 @@
1
- import { map, shareReplay, distinctUntilChanged } from 'rxjs'
2
- import type { Observable } from 'rxjs'
3
- import type { ContextObserverCallback, ContextObserverTypeMap } from '../../lib/core-types'
4
- import {
5
- highlightObservable,
6
- categoryDataMapObservable,
7
- textSizePxObservable,
8
- containerSizeObservable
9
- } from '../utils/observables'
10
- import {
11
- computedXYDataObservable,
12
- // multiValueAxesTransformObservable,
13
- // multiValueAxesReverseTransformObservable,
14
- graphicTransformObservable,
15
- graphicReverseScaleObservable,
16
- categoryLabelsObservable,
17
- visibleComputedDataObservable,
18
- visibleComputedSumDataObservable,
19
- visibleComputedRankingByIndexDataObservable,
20
- visibleComputedRankingBySumDataObservable,
21
- visibleComputedXYDataObservable,
22
- containerPositionObservable,
23
- // containerSizeObservable,
24
- xyMinMaxObservable,
25
- filteredXYMinMaxDataObservable,
26
- // visibleComputedRankingDataObservable,
27
- // rankingAmountLimitObservable,
28
- // rankingScaleObservable
29
- xScaleObservable,
30
- xSumScaleObservable,
31
- yScaleObservable
32
- } from '../utils/multiValueObservables'
33
-
34
- export const contextObserverCallback: ContextObserverCallback<'multiValue'> = ({ subject, observer }) => {
35
-
36
- const textSizePx$ = textSizePxObservable(observer.fullChartParams$).pipe(
37
- shareReplay(1)
38
- )
39
-
40
- const isCategorySeprate$ = observer.fullDataFormatter$.pipe(
41
- map(d => d.separateCategory),
42
- distinctUntilChanged(),
43
- shareReplay(1)
44
- )
45
-
46
- const containerPosition$ = containerPositionObservable({
47
- computedData$: observer.computedData$,
48
- fullDataFormatter$: observer.fullDataFormatter$,
49
- layout$: observer.layout$,
50
- }).pipe(
51
- shareReplay(1)
52
- )
53
-
54
- const containerSize$ = containerSizeObservable({
55
- layout$: observer.layout$,
56
- containerPosition$
57
- }).pipe(
58
- shareReplay(1)
59
- )
60
-
61
- // const multiValueAxesSize$ = multiValueAxesSizeObservable({
62
- // fullDataFormatter$: observer.fullDataFormatter$,
63
- // layout$: observer.layout$
64
- // }).pipe(
65
- // shareReplay(1)
66
- // )
67
-
68
- // [xValueIndex, yValueIndex]
69
- const xyValueIndex$: Observable<[number, number]> = observer.fullDataFormatter$.pipe(
70
- map(d => [d.xAxis.valueIndex, d.yAxis.valueIndex] as [number, number]),
71
- distinctUntilChanged((a, b) => a[0] === b[0] && a[1] === b[1]),
72
- shareReplay(1)
73
- )
74
-
75
- const datumList$ = observer.computedData$.pipe(
76
- map(d => d.flat().flat())
77
- ).pipe(
78
- shareReplay(1)
79
- )
80
-
81
- const highlight$ = highlightObservable({
82
- datumList$,
83
- fullChartParams$: observer.fullChartParams$,
84
- event$: subject.event$
85
- }).pipe(
86
- shareReplay(1)
87
- )
88
-
89
- const categoryLabels$ = categoryLabelsObservable({
90
- computedData$: observer.computedData$,
91
- fullDataFormatter$: observer.fullDataFormatter$,
92
- }).pipe(
93
- shareReplay(1)
94
- )
95
-
96
- const CategoryDataMap$ = categoryDataMapObservable({
97
- datumList$: datumList$
98
- }).pipe(
99
- shareReplay(1)
100
- )
101
-
102
- const xyMinMax$ = xyMinMaxObservable({
103
- computedData$: observer.computedData$,
104
- xyValueIndex$
105
- }).pipe(
106
- shareReplay(1)
107
- )
108
-
109
- const visibleComputedData$ = visibleComputedDataObservable({
110
- computedData$: observer.computedData$,
111
- }).pipe(
112
- shareReplay(1)
113
- )
114
-
115
- const visibleComputedSumData$ = visibleComputedSumDataObservable({
116
- visibleComputedData$
117
- }).pipe(
118
- shareReplay(1)
119
- )
120
-
121
- // const valueIndex$ = observer.fullDataFormatter$.pipe(
122
- // map(d => d.yAxis.valueIndex),
123
- // distinctUntilChanged()
124
- // )
125
-
126
- const visibleComputedRankingByIndexData$ = visibleComputedRankingByIndexDataObservable({
127
- xyValueIndex$, // * 依據 valueIndex 來取得 visibleComputedData
128
- isCategorySeprate$,
129
- visibleComputedData$
130
- }).pipe(
131
- shareReplay(1)
132
- )
133
-
134
- const visibleComputedRankingBySumData$ = visibleComputedRankingBySumDataObservable({
135
- isCategorySeprate$,
136
- visibleComputedSumData$
137
- }).pipe(
138
- shareReplay(1)
139
- )
140
-
141
- const computedXYData$ = computedXYDataObservable({
142
- computedData$: observer.computedData$,
143
- xyMinMax$,
144
- xyValueIndex$,
145
- fullDataFormatter$: observer.fullDataFormatter$,
146
- layout$: observer.layout$,
147
- }).pipe(
148
- shareReplay(1)
149
- )
150
-
151
- const visibleComputedXYData$ = visibleComputedXYDataObservable({
152
- computedXYData$: computedXYData$,
153
- }).pipe(
154
- shareReplay(1)
155
- )
156
-
157
- const filteredXYMinMaxData$ = filteredXYMinMaxDataObservable({
158
- visibleComputedXYData$: visibleComputedXYData$,
159
- xyMinMax$,
160
- xyValueIndex$,
161
- fullDataFormatter$: observer.fullDataFormatter$,
162
- }).pipe(
163
- shareReplay(1)
164
- )
165
-
166
- // const visibleComputedRankingData$ = visibleComputedRankingDataObservable({
167
- // visibleComputedData$
168
- // }).pipe(
169
- // shareReplay(1)
170
- // )
171
-
172
- // const rankingAmountLimit$ = rankingAmountLimitObservable({
173
- // layout$: observer.layout$,
174
- // textSizePx$
175
- // }).pipe(
176
- // shareReplay(1)
177
- // )
178
-
179
- // const rankingScale$ = rankingScaleObservable({
180
- // layout$: observer.layout$,
181
- // visibleComputedRankingData$,
182
- // rankingAmountLimit$
183
- // }).pipe(
184
- // shareReplay(1)
185
- // )
186
-
187
- // const multiValueAxesTransform$ = multiValueAxesTransformObservable({
188
- // fullDataFormatter$: observer.fullDataFormatter$,
189
- // layout$: observer.layout$
190
- // }).pipe(
191
- // shareReplay(1)
192
- // )
193
-
194
- // const multiValueAxesReverseTransform$ = multiValueAxesReverseTransformObservable({
195
- // multiValueAxesTransform$
196
- // }).pipe(
197
- // shareReplay(1)
198
- // )
199
-
200
- const graphicTransform$ = graphicTransformObservable({
201
- xyMinMax$,
202
- xyValueIndex$,
203
- filteredXYMinMaxData$,
204
- fullDataFormatter$: observer.fullDataFormatter$,
205
- layout$: observer.layout$
206
- }).pipe(
207
- shareReplay(1)
208
- )
209
-
210
- const graphicReverseScale$ = graphicReverseScaleObservable({
211
- containerPosition$: containerPosition$,
212
- // multiValueAxesTransform$: multiValueAxesTransform$,
213
- graphicTransform$: graphicTransform$,
214
- }).pipe(
215
- shareReplay(1)
216
- )
217
-
218
- const xScale$ = xScaleObservable({
219
- visibleComputedSumData$,
220
- fullDataFormatter$: observer.fullDataFormatter$,
221
- filteredXYMinMaxData$,
222
- containerSize$: containerSize$,
223
- }).pipe(
224
- shareReplay(1)
225
- )
226
-
227
- const xSumScale$ = xSumScaleObservable({
228
- fullDataFormatter$: observer.fullDataFormatter$,
229
- filteredXYMinMaxData$,
230
- containerSize$: containerSize$,
231
- }).pipe(
232
- shareReplay(1)
233
- )
234
-
235
- const yScale$ = yScaleObservable({
236
- fullDataFormatter$: observer.fullDataFormatter$,
237
- filteredXYMinMaxData$,
238
- containerSize$: containerSize$,
239
- }).pipe(
240
- shareReplay(1)
241
- )
242
-
243
- return <ContextObserverTypeMap<'multiValue', any>>{
244
- fullParams$: observer.fullParams$,
245
- fullChartParams$: observer.fullChartParams$,
246
- fullDataFormatter$: observer.fullDataFormatter$,
247
- computedData$: observer.computedData$,
248
- layout$: observer.layout$,
249
- textSizePx$,
250
- isCategorySeprate$,
251
- containerPosition$,
252
- containerSize$,
253
- // multiValueAxesSize$,
254
- highlight$,
255
- categoryLabels$,
256
- CategoryDataMap$,
257
- xyMinMax$,
258
- xyValueIndex$,
259
- // computedXYData$,
260
- visibleComputedData$,
261
- visibleComputedSumData$,
262
- visibleComputedRankingByIndexData$,
263
- visibleComputedRankingBySumData$,
264
- visibleComputedXYData$,
265
- filteredXYMinMaxData$,
266
- // visibleComputedRankingData$,
267
- // rankingScale$,
268
- // multiValueAxesTransform$,
269
- // multiValueAxesReverseTransform$,
270
- graphicTransform$,
271
- graphicReverseScale$,
272
- xScale$,
273
- xSumScale$,
274
- yScale$
275
- }
276
- }
1
+ import { map, shareReplay, distinctUntilChanged } from 'rxjs'
2
+ import type { Observable } from 'rxjs'
3
+ import type { ContextObserverCallback, ContextObserverTypeMap } from '../../lib/core-types'
4
+ import {
5
+ highlightObservable,
6
+ categoryDataMapObservable,
7
+ textSizePxObservable,
8
+ containerSizeObservable
9
+ } from '../utils/observables'
10
+ import {
11
+ computedXYDataObservable,
12
+ // multiValueAxesTransformObservable,
13
+ // multiValueAxesReverseTransformObservable,
14
+ graphicTransformObservable,
15
+ graphicReverseScaleObservable,
16
+ categoryLabelsObservable,
17
+ visibleComputedDataObservable,
18
+ visibleComputedSumDataObservable,
19
+ visibleComputedRankingByIndexDataObservable,
20
+ visibleComputedRankingBySumDataObservable,
21
+ visibleComputedXYDataObservable,
22
+ containerPositionObservable,
23
+ // containerSizeObservable,
24
+ xyMinMaxObservable,
25
+ valueLabelsObservable,
26
+ filteredXYMinMaxDataObservable,
27
+ // visibleComputedRankingDataObservable,
28
+ // rankingAmountLimitObservable,
29
+ // rankingScaleObservable
30
+ xScaleObservable,
31
+ // xSumScaleObservable,
32
+ yScaleObservable,
33
+ ordinalScaleDomainObservable,
34
+ ordinalPaddingObservable,
35
+ ordinalScaleObservable,
36
+ // valueLabelsObservable
37
+ } from './multiValueObservables'
38
+
39
+ export const contextObserverCallback: ContextObserverCallback<'multiValue'> = ({ subject, observer }) => {
40
+
41
+ const textSizePx$ = textSizePxObservable(observer.fullChartParams$).pipe(
42
+ shareReplay(1)
43
+ )
44
+
45
+ const isCategorySeprate$ = observer.fullDataFormatter$.pipe(
46
+ map(d => d.separateCategory),
47
+ distinctUntilChanged(),
48
+ shareReplay(1)
49
+ )
50
+
51
+ const containerPosition$ = containerPositionObservable({
52
+ computedData$: observer.computedData$,
53
+ fullDataFormatter$: observer.fullDataFormatter$,
54
+ layout$: observer.layout$,
55
+ }).pipe(
56
+ shareReplay(1)
57
+ )
58
+
59
+ const containerSize$ = containerSizeObservable({
60
+ layout$: observer.layout$,
61
+ containerPosition$,
62
+ container$: observer.fullDataFormatter$.pipe(
63
+ map(d => d.container)
64
+ )
65
+ }).pipe(
66
+ shareReplay(1)
67
+ )
68
+
69
+ // const multiValueAxesSize$ = multiValueAxesSizeObservable({
70
+ // fullDataFormatter$: observer.fullDataFormatter$,
71
+ // layout$: observer.layout$
72
+ // }).pipe(
73
+ // shareReplay(1)
74
+ // )
75
+
76
+ // [xValueIndex, yValueIndex]
77
+ const xyValueIndex$: Observable<[number, number]> = observer.fullDataFormatter$.pipe(
78
+ map(d => [d.xAxis.valueIndex, d.yAxis.valueIndex] as [number, number]),
79
+ distinctUntilChanged((a, b) => a[0] === b[0] && a[1] === b[1]),
80
+ shareReplay(1)
81
+ )
82
+
83
+ const datumList$ = observer.computedData$.pipe(
84
+ map(d => d.flat().flat())
85
+ ).pipe(
86
+ shareReplay(1)
87
+ )
88
+
89
+ const highlight$ = highlightObservable({
90
+ datumList$,
91
+ fullChartParams$: observer.fullChartParams$,
92
+ event$: subject.event$
93
+ }).pipe(
94
+ shareReplay(1)
95
+ )
96
+
97
+ const categoryLabels$ = categoryLabelsObservable({
98
+ computedData$: observer.computedData$,
99
+ fullDataFormatter$: observer.fullDataFormatter$,
100
+ }).pipe(
101
+ shareReplay(1)
102
+ )
103
+
104
+ const CategoryDataMap$ = categoryDataMapObservable({
105
+ datumList$: datumList$
106
+ }).pipe(
107
+ shareReplay(1)
108
+ )
109
+
110
+ const valueLabels$ = valueLabelsObservable({
111
+ fullDataFormatter$: observer.fullDataFormatter$,
112
+ computedData$: observer.computedData$,
113
+ }).pipe(
114
+ shareReplay(1)
115
+ )
116
+
117
+ const xyMinMax$ = xyMinMaxObservable({
118
+ computedData$: observer.computedData$,
119
+ xyValueIndex$
120
+ }).pipe(
121
+ shareReplay(1)
122
+ )
123
+
124
+ const visibleComputedData$ = visibleComputedDataObservable({
125
+ computedData$: observer.computedData$,
126
+ }).pipe(
127
+ shareReplay(1)
128
+ )
129
+
130
+ const ordinalScaleDomain$ = ordinalScaleDomainObservable({
131
+ fullDataFormatter$: observer.fullDataFormatter$,
132
+ visibleComputedData$: visibleComputedData$,
133
+ }).pipe(
134
+ shareReplay(1)
135
+ )
136
+
137
+ const visibleComputedSumData$ = visibleComputedSumDataObservable({
138
+ visibleComputedData$,
139
+ ordinalScaleDomain$
140
+ }).pipe(
141
+ shareReplay(1)
142
+ )
143
+
144
+ // const valueIndex$ = observer.fullDataFormatter$.pipe(
145
+ // map(d => d.yAxis.valueIndex),
146
+ // distinctUntilChanged()
147
+ // )
148
+
149
+ const visibleComputedRankingByIndexData$ = visibleComputedRankingByIndexDataObservable({
150
+ xyValueIndex$, // * 依據 valueIndex 來取得 visibleComputedData
151
+ isCategorySeprate$,
152
+ visibleComputedData$
153
+ }).pipe(
154
+ shareReplay(1)
155
+ )
156
+
157
+ const visibleComputedRankingBySumData$ = visibleComputedRankingBySumDataObservable({
158
+ isCategorySeprate$,
159
+ visibleComputedSumData$
160
+ }).pipe(
161
+ shareReplay(1)
162
+ )
163
+
164
+ const computedXYData$ = computedXYDataObservable({
165
+ computedData$: observer.computedData$,
166
+ xyMinMax$,
167
+ xyValueIndex$,
168
+ fullDataFormatter$: observer.fullDataFormatter$,
169
+ layout$: observer.layout$,
170
+ }).pipe(
171
+ shareReplay(1)
172
+ )
173
+
174
+ const visibleComputedXYData$ = visibleComputedXYDataObservable({
175
+ computedXYData$: computedXYData$,
176
+ }).pipe(
177
+ shareReplay(1)
178
+ )
179
+
180
+ const filteredXYMinMaxData$ = filteredXYMinMaxDataObservable({
181
+ visibleComputedXYData$: visibleComputedXYData$,
182
+ xyMinMax$,
183
+ xyValueIndex$,
184
+ fullDataFormatter$: observer.fullDataFormatter$,
185
+ }).pipe(
186
+ shareReplay(1)
187
+ )
188
+
189
+ // const visibleComputedRankingData$ = visibleComputedRankingDataObservable({
190
+ // visibleComputedData$
191
+ // }).pipe(
192
+ // shareReplay(1)
193
+ // )
194
+
195
+ // const rankingAmountLimit$ = rankingAmountLimitObservable({
196
+ // layout$: observer.layout$,
197
+ // textSizePx$
198
+ // }).pipe(
199
+ // shareReplay(1)
200
+ // )
201
+
202
+ // const rankingScale$ = rankingScaleObservable({
203
+ // layout$: observer.layout$,
204
+ // visibleComputedRankingData$,
205
+ // rankingAmountLimit$
206
+ // }).pipe(
207
+ // shareReplay(1)
208
+ // )
209
+
210
+ // const multiValueAxesTransform$ = multiValueAxesTransformObservable({
211
+ // fullDataFormatter$: observer.fullDataFormatter$,
212
+ // layout$: observer.layout$
213
+ // }).pipe(
214
+ // shareReplay(1)
215
+ // )
216
+
217
+ // const multiValueAxesReverseTransform$ = multiValueAxesReverseTransformObservable({
218
+ // multiValueAxesTransform$
219
+ // }).pipe(
220
+ // shareReplay(1)
221
+ // )
222
+
223
+ const graphicTransform$ = graphicTransformObservable({
224
+ xyMinMax$,
225
+ xyValueIndex$,
226
+ filteredXYMinMaxData$,
227
+ fullDataFormatter$: observer.fullDataFormatter$,
228
+ layout$: observer.layout$
229
+ }).pipe(
230
+ shareReplay(1)
231
+ )
232
+
233
+ const graphicReverseScale$ = graphicReverseScaleObservable({
234
+ containerPosition$: containerPosition$,
235
+ // multiValueAxesTransform$: multiValueAxesTransform$,
236
+ graphicTransform$: graphicTransform$,
237
+ }).pipe(
238
+ shareReplay(1)
239
+ )
240
+
241
+ const xScale$ = xScaleObservable({
242
+ visibleComputedSumData$,
243
+ fullDataFormatter$: observer.fullDataFormatter$,
244
+ filteredXYMinMaxData$,
245
+ containerSize$: containerSize$,
246
+ }).pipe(
247
+ shareReplay(1)
248
+ )
249
+
250
+ // const xSumScale$ = xSumScaleObservable({
251
+ // fullDataFormatter$: observer.fullDataFormatter$,
252
+ // filteredXYMinMaxData$,
253
+ // containerSize$: containerSize$,
254
+ // }).pipe(
255
+ // shareReplay(1)
256
+ // )
257
+
258
+ const yScale$ = yScaleObservable({
259
+ fullDataFormatter$: observer.fullDataFormatter$,
260
+ filteredXYMinMaxData$,
261
+ containerSize$: containerSize$,
262
+ }).pipe(
263
+ shareReplay(1)
264
+ )
265
+
266
+ const ordinalPadding$ = ordinalPaddingObservable({
267
+ ordinalScaleDomain$,
268
+ computedData$: observer.computedData$,
269
+ containerSize$: containerSize$,
270
+ }).pipe(
271
+ shareReplay(1)
272
+ )
273
+
274
+ const ordinalScale$ = ordinalScaleObservable({
275
+ ordinalScaleDomain$,
276
+ computedData$: observer.computedData$,
277
+ containerSize$: containerSize$,
278
+ ordinalPadding$
279
+ }).pipe(
280
+ shareReplay(1)
281
+ )
282
+
283
+ // const valueLabels$ = valueLabelsObservable({
284
+ // fullDataFormatter$: observer.fullDataFormatter$,
285
+ // computedData$: observer.computedData$,
286
+ // }).pipe(
287
+ // shareReplay(1)
288
+ // )
289
+
290
+ return <ContextObserverTypeMap<'multiValue', any>>{
291
+ fullParams$: observer.fullParams$,
292
+ fullChartParams$: observer.fullChartParams$,
293
+ fullDataFormatter$: observer.fullDataFormatter$,
294
+ computedData$: observer.computedData$,
295
+ layout$: observer.layout$,
296
+ textSizePx$,
297
+ isCategorySeprate$,
298
+ containerPosition$,
299
+ containerSize$,
300
+ // multiValueAxesSize$,
301
+ highlight$,
302
+ categoryLabels$,
303
+ CategoryDataMap$,
304
+ valueLabels$,
305
+ xyMinMax$,
306
+ xyValueIndex$,
307
+ // computedXYData$,
308
+ visibleComputedData$,
309
+ visibleComputedSumData$,
310
+ visibleComputedRankingByIndexData$,
311
+ visibleComputedRankingBySumData$,
312
+ visibleComputedXYData$,
313
+ filteredXYMinMaxData$,
314
+ // visibleComputedRankingData$,
315
+ // rankingScale$,
316
+ // multiValueAxesTransform$,
317
+ // multiValueAxesReverseTransform$,
318
+ graphicTransform$,
319
+ graphicReverseScale$,
320
+ xScale$,
321
+ // xSumScale$,
322
+ yScale$,
323
+ ordinalScaleDomain$,
324
+ ordinalPadding$,
325
+ ordinalScale$,
326
+ // valueLabels$
327
+ }
328
+ }