@orbcharts/core 3.0.4 → 3.0.5

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 (69) hide show
  1. package/LICENSE +200 -200
  2. package/dist/orbcharts-core.es.js +1685 -1636
  3. package/dist/orbcharts-core.umd.js +4 -4
  4. package/dist/src/series/seriesObservables.d.ts +18 -7
  5. package/lib/core-types.ts +7 -7
  6. package/package.json +46 -46
  7. package/src/AbstractChart.ts +57 -57
  8. package/src/GridChart.ts +24 -24
  9. package/src/MultiGridChart.ts +24 -24
  10. package/src/MultiValueChart.ts +24 -24
  11. package/src/RelationshipChart.ts +24 -24
  12. package/src/SeriesChart.ts +24 -24
  13. package/src/TreeChart.ts +24 -24
  14. package/src/base/createBaseChart.ts +524 -524
  15. package/src/base/createBasePlugin.ts +154 -154
  16. package/src/base/validators/chartOptionsValidator.ts +23 -23
  17. package/src/base/validators/chartParamsValidator.ts +133 -133
  18. package/src/base/validators/elementValidator.ts +13 -13
  19. package/src/base/validators/pluginsValidator.ts +14 -14
  20. package/src/defaults.ts +284 -283
  21. package/src/defineGridPlugin.ts +3 -3
  22. package/src/defineMultiGridPlugin.ts +3 -3
  23. package/src/defineMultiValuePlugin.ts +3 -3
  24. package/src/defineNoneDataPlugin.ts +4 -4
  25. package/src/defineRelationshipPlugin.ts +3 -3
  26. package/src/defineSeriesPlugin.ts +3 -3
  27. package/src/defineTreePlugin.ts +3 -3
  28. package/src/grid/computedDataFn.ts +129 -129
  29. package/src/grid/contextObserverCallback.ts +201 -201
  30. package/src/grid/dataFormatterValidator.ts +125 -125
  31. package/src/grid/dataValidator.ts +12 -12
  32. package/src/grid/gridObservables.ts +694 -718
  33. package/src/index.ts +20 -20
  34. package/src/multiGrid/computedDataFn.ts +123 -123
  35. package/src/multiGrid/contextObserverCallback.ts +75 -75
  36. package/src/multiGrid/dataFormatterValidator.ts +120 -120
  37. package/src/multiGrid/dataValidator.ts +12 -12
  38. package/src/multiGrid/multiGridObservables.ts +357 -401
  39. package/src/multiValue/computedDataFn.ts +113 -113
  40. package/src/multiValue/contextObserverCallback.ts +328 -328
  41. package/src/multiValue/dataFormatterValidator.ts +94 -94
  42. package/src/multiValue/dataValidator.ts +12 -12
  43. package/src/multiValue/multiValueObservables.ts +865 -1219
  44. package/src/relationship/computedDataFn.ts +159 -159
  45. package/src/relationship/contextObserverCallback.ts +80 -80
  46. package/src/relationship/dataFormatterValidator.ts +13 -13
  47. package/src/relationship/dataValidator.ts +13 -13
  48. package/src/relationship/relationshipObservables.ts +84 -84
  49. package/src/series/computedDataFn.ts +88 -88
  50. package/src/series/contextObserverCallback.ts +132 -107
  51. package/src/series/dataFormatterValidator.ts +46 -46
  52. package/src/series/dataValidator.ts +12 -12
  53. package/src/series/seriesObservables.ts +209 -175
  54. package/src/tree/computedDataFn.ts +129 -129
  55. package/src/tree/contextObserverCallback.ts +58 -58
  56. package/src/tree/dataFormatterValidator.ts +13 -13
  57. package/src/tree/dataValidator.ts +13 -13
  58. package/src/tree/treeObservables.ts +105 -105
  59. package/src/utils/commonUtils.ts +55 -55
  60. package/src/utils/d3Scale.ts +198 -198
  61. package/src/utils/errorMessage.ts +40 -40
  62. package/src/utils/index.ts +3 -3
  63. package/src/utils/observables.ts +308 -293
  64. package/src/utils/orbchartsUtils.ts +396 -396
  65. package/src/utils/validator.ts +126 -126
  66. package/tsconfig.base.json +13 -13
  67. package/tsconfig.json +2 -2
  68. package/vite-env.d.ts +6 -6
  69. package/vite.config.js +22 -22
@@ -1,328 +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
- 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
- }
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
+ }