@gooddata/sdk-ui-charts 11.68.0-alpha.8 → 11.68.0-alpha.9
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/NOTICE +18 -18
- package/esm/charts/_commons/chartDefinition.d.ts.map +1 -1
- package/esm/charts/_commons/chartDefinition.js +3 -3
- package/esm/charts/headline/Headline.d.ts.map +1 -1
- package/esm/charts/headline/Headline.js +2 -2
- package/esm/charts/repeater/Repeater.d.ts.map +1 -1
- package/esm/charts/repeater/Repeater.js +2 -2
- package/esm/charts/xirr/Xirr.d.ts.map +1 -1
- package/esm/charts/xirr/Xirr.js +2 -2
- package/esm/highcharts/adapter/HighChartsRenderer.d.ts.map +1 -1
- package/esm/highcharts/adapter/HighChartsRenderer.js +3 -3
- package/esm/highcharts/adapter/legendBuilder.d.ts.map +1 -1
- package/esm/highcharts/adapter/legendBuilder.js +7 -6
- package/esm/highcharts/chartTypes/_chartCreators/commonConfiguration.js +4 -4
- package/esm/highcharts/chartTypes/_chartCreators/drilldownEventing.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartCreators/drilldownEventing.js +3 -4
- package/esm/highcharts/chartTypes/_chartCreators/getOptionalStackingConfiguration.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartCreators/getOptionalStackingConfiguration.js +7 -6
- package/esm/highcharts/chartTypes/_chartCreators/responsive.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartCreators/responsive.js +2 -3
- package/esm/highcharts/chartTypes/_chartOptions/chartAxes.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartOptions/chartAxes.js +3 -4
- package/esm/highcharts/chartTypes/_chartOptions/chartDrilling.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/_chartOptions/chartDrilling.js +4 -3
- package/esm/highcharts/chartTypes/comboChart/comboChartOptions.js +8 -8
- package/esm/highcharts/chartTypes/heatmap/heatmapColoring.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/heatmap/heatmapColoring.js +2 -3
- package/esm/highcharts/chartTypes/sankeyChart/sankeyChartColoring.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/sankeyChart/sankeyChartColoring.js +2 -3
- package/esm/highcharts/chartTypes/scatterPlot/scatterPlotColoring.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/scatterPlot/scatterPlotColoring.js +2 -3
- package/esm/highcharts/chartTypes/scatterPlot/scatterPlotSeries.d.ts.map +1 -1
- package/esm/highcharts/chartTypes/scatterPlot/scatterPlotSeries.js +5 -5
- package/package.json +13 -13
package/NOTICE
CHANGED
|
@@ -3,11 +3,11 @@ Copyright (c) 2017-2026 GoodData Corporation
|
|
|
3
3
|
This product includes a number of subcomponents with separate copyright notices and license terms below. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license. This GoodData project does not necessarily use all the open source software referred to below and may also only use portions of a given package. With respect to the open source software listed in this document, if you (i) have any questions, (ii) wish to receive source code for packages under licenses that require their source code to be made available (such as the GNU Lesser Public License), or (iii) discover any errors or omissions in the licensing information provided, please contact us at legal@gooddata.com. Please identify in source code requests: (i) the packages for which you are requesting corresponding source, (ii) the GoodData product (including any available version) with which the package was provided; and (iii) an email address (if available) or postal address at which GoodData may contact you.
|
|
4
4
|
|
|
5
5
|
--------------------------------------------------------------------------------
|
|
6
|
-
Attribution Notice for @gooddata/sdk-ui-charts (11.68.0-alpha.
|
|
6
|
+
Attribution Notice for @gooddata/sdk-ui-charts (11.68.0-alpha.9)
|
|
7
7
|
Package License: LicenseRef-LICENSE
|
|
8
8
|
Own License File: LICENSE
|
|
9
9
|
Date generated: 2026-11-10
|
|
10
|
-
Revision ID:
|
|
10
|
+
Revision ID: 84da343e85211db46f29811651dc10b32662b222
|
|
11
11
|
|
|
12
12
|
This notice lists the components that @gooddata/sdk-ui-charts depends on, directly or through other
|
|
13
13
|
packages, with the license and copyright information reported for each of them.
|
|
@@ -19,14 +19,14 @@ change those terms.
|
|
|
19
19
|
Dependencies
|
|
20
20
|
|
|
21
21
|
Local GoodData SDK components
|
|
22
|
-
- @gooddata/sdk-backend-spi (11.68.0-alpha.
|
|
23
|
-
- @gooddata/sdk-code-schemas (11.68.0-alpha.
|
|
24
|
-
- @gooddata/sdk-model (11.68.0-alpha.
|
|
25
|
-
- @gooddata/sdk-ui (11.68.0-alpha.
|
|
26
|
-
- @gooddata/sdk-ui-kit (11.68.0-alpha.
|
|
27
|
-
- @gooddata/sdk-ui-theme-provider (11.68.0-alpha.
|
|
28
|
-
- @gooddata/sdk-ui-vis-commons (11.68.0-alpha.
|
|
29
|
-
- @gooddata/util (11.68.0-alpha.
|
|
22
|
+
- @gooddata/sdk-backend-spi (11.68.0-alpha.9) [MIT] — Direct
|
|
23
|
+
- @gooddata/sdk-code-schemas (11.68.0-alpha.9) [MIT] — Transitive
|
|
24
|
+
- @gooddata/sdk-model (11.68.0-alpha.9) [MIT] — Direct
|
|
25
|
+
- @gooddata/sdk-ui (11.68.0-alpha.9) [MIT] — Direct
|
|
26
|
+
- @gooddata/sdk-ui-kit (11.68.0-alpha.9) [MIT] — Direct
|
|
27
|
+
- @gooddata/sdk-ui-theme-provider (11.68.0-alpha.9) [MIT] — Direct
|
|
28
|
+
- @gooddata/sdk-ui-vis-commons (11.68.0-alpha.9) [MIT] — Direct
|
|
29
|
+
- @gooddata/util (11.68.0-alpha.9) [MIT] — Direct
|
|
30
30
|
|
|
31
31
|
External components
|
|
32
32
|
- @aaronhayes/react-use-hubspot-form (2.1.2) [MIT] — Transitive
|
|
@@ -307,7 +307,7 @@ Local GoodData SDK components
|
|
|
307
307
|
================================================================================
|
|
308
308
|
|
|
309
309
|
--------------------------------------------------------------------------------
|
|
310
|
-
Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.
|
|
310
|
+
Package Title: @gooddata/sdk-backend-spi (11.68.0-alpha.9)
|
|
311
311
|
Package Source: Local workspace
|
|
312
312
|
Package Depth: Direct
|
|
313
313
|
--------------------------------------------------------------------------------
|
|
@@ -325,7 +325,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
325
325
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
326
326
|
|
|
327
327
|
--------------------------------------------------------------------------------
|
|
328
|
-
Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.
|
|
328
|
+
Package Title: @gooddata/sdk-code-schemas (11.68.0-alpha.9)
|
|
329
329
|
Package Source: Local workspace
|
|
330
330
|
Package Depth: Transitive
|
|
331
331
|
--------------------------------------------------------------------------------
|
|
@@ -355,7 +355,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
355
355
|
SOFTWARE.
|
|
356
356
|
|
|
357
357
|
--------------------------------------------------------------------------------
|
|
358
|
-
Package Title: @gooddata/sdk-model (11.68.0-alpha.
|
|
358
|
+
Package Title: @gooddata/sdk-model (11.68.0-alpha.9)
|
|
359
359
|
Package Source: Local workspace
|
|
360
360
|
Package Depth: Direct
|
|
361
361
|
--------------------------------------------------------------------------------
|
|
@@ -373,7 +373,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
373
373
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
374
374
|
|
|
375
375
|
--------------------------------------------------------------------------------
|
|
376
|
-
Package Title: @gooddata/sdk-ui (11.68.0-alpha.
|
|
376
|
+
Package Title: @gooddata/sdk-ui (11.68.0-alpha.9)
|
|
377
377
|
Package Source: Local workspace
|
|
378
378
|
Package Depth: Direct
|
|
379
379
|
--------------------------------------------------------------------------------
|
|
@@ -391,7 +391,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
391
391
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
392
392
|
|
|
393
393
|
--------------------------------------------------------------------------------
|
|
394
|
-
Package Title: @gooddata/sdk-ui-kit (11.68.0-alpha.
|
|
394
|
+
Package Title: @gooddata/sdk-ui-kit (11.68.0-alpha.9)
|
|
395
395
|
Package Source: Local workspace
|
|
396
396
|
Package Depth: Direct
|
|
397
397
|
--------------------------------------------------------------------------------
|
|
@@ -409,7 +409,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
409
409
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
410
410
|
|
|
411
411
|
--------------------------------------------------------------------------------
|
|
412
|
-
Package Title: @gooddata/sdk-ui-theme-provider (11.68.0-alpha.
|
|
412
|
+
Package Title: @gooddata/sdk-ui-theme-provider (11.68.0-alpha.9)
|
|
413
413
|
Package Source: Local workspace
|
|
414
414
|
Package Depth: Direct
|
|
415
415
|
--------------------------------------------------------------------------------
|
|
@@ -427,7 +427,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
427
427
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
428
428
|
|
|
429
429
|
--------------------------------------------------------------------------------
|
|
430
|
-
Package Title: @gooddata/sdk-ui-vis-commons (11.68.0-alpha.
|
|
430
|
+
Package Title: @gooddata/sdk-ui-vis-commons (11.68.0-alpha.9)
|
|
431
431
|
Package Source: Local workspace
|
|
432
432
|
Package Depth: Direct
|
|
433
433
|
--------------------------------------------------------------------------------
|
|
@@ -445,7 +445,7 @@ The above copyright notice and this permission notice shall be included in all c
|
|
|
445
445
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
446
446
|
|
|
447
447
|
--------------------------------------------------------------------------------
|
|
448
|
-
Package Title: @gooddata/util (11.68.0-alpha.
|
|
448
|
+
Package Title: @gooddata/util (11.68.0-alpha.9)
|
|
449
449
|
Package Source: Local workspace
|
|
450
450
|
Package Depth: Direct
|
|
451
451
|
--------------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartDefinition.d.ts","sourceRoot":"","sources":["../../../src/charts/_commons/chartDefinition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chartDefinition.d.ts","sourceRoot":"","sources":["../../../src/charts/_commons/chartDefinition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAKnD,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAQ9F;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAC7B,YAAY,SAAS,MAAM,EAC3B,MAAM,SAAS,YAAY,GAAG,iBAAiB;IAE/C,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC/C;;OAEG;IACH,cAAc,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,OAAO,EAAE,CAAC;IACnD;;OAEG;IACH,eAAe,EAAE,KAAK,CAAC,MAAM,YAAY,CAAC,CAAC;IAC3C;;OAEG;IACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,kBAAkB,CAAC;IAC5E;;OAEG;IACH,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACzF;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED,eAAO,MAAM,iBAAiB,GACzB,YAAY,SAAS,MAAM,EAAE,MAAM,SAAS,YAAY,GAAG,iBAAiB,SAClE,gBAAgB,CAAC,YAAY,EAAE,MAAM,CAAC,aAEzC,MAAM,KAAG,eA6BhB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2019-2026 GoodData Corporation
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { buildTooltipExecutionFromConfig } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
/**
|
|
5
5
|
* Specifies props that are on bucket chart props but not on core chart props - these must not be passed
|
|
6
6
|
* down to core chart.
|
|
@@ -13,7 +13,7 @@ export const getCoreChartProps = (chart) => (props) => {
|
|
|
13
13
|
}
|
|
14
14
|
const buckets = chart.bucketsFactory(propsToUse);
|
|
15
15
|
const execution = chart.executionFactory(propsToUse, buckets);
|
|
16
|
-
const nonBucketProps =
|
|
16
|
+
const nonBucketProps = _omit(propsToUse, chart.bucketPropsKeys);
|
|
17
17
|
const propOverrides = chart.propOverridesFactory
|
|
18
18
|
? chart.propOverridesFactory(propsToUse, buckets)
|
|
19
19
|
: {};
|
|
@@ -26,7 +26,7 @@ export const getCoreChartProps = (chart) => (props) => {
|
|
|
26
26
|
enableExecutionCancelling: propsToUse.config?.enableExecutionCancelling ?? false,
|
|
27
27
|
};
|
|
28
28
|
const tooltipExecution = buildChartTooltipExecution(propsToUse, chart.chartName, coreChartProps.config, execution);
|
|
29
|
-
return
|
|
29
|
+
return _omit({ ...coreChartProps, tooltipExecution }, NON_CORE_PROPS);
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
32
|
* Builds the secondary execution resolving external custom-tooltip references, so that
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headline.d.ts","sourceRoot":"","sources":["../../../src/charts/headline/Headline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Headline.d.ts","sourceRoot":"","sources":["../../../src/charts/headline/Headline.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,EAEH,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAIrC,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAgB,KAAK,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAQlF;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,cAAc,EAAE,oBAAoB,CAAC;IAErC;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,oBAAoB,CAAC;IAExC;;OAEG;IACH,iBAAiB,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAE3C;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;OAEG;IACH,6BAA6B,CAAC,EAAE,GAAG,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB,EAAE,oBAAoB;CAAG;AAIlF;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAO7C;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAKlE;AAQD,KAAK,iBAAiB,GAAG,eAAe,GAAG,0BAA0B,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,iBAAiB,CAyB5E"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
4
3
|
import { newBucket } from "@gooddata/sdk-model";
|
|
5
4
|
import { BucketNames, useResolveValuesWithPlaceholders, withContexts, } from "@gooddata/sdk-ui";
|
|
5
|
+
import { _omit } from "@gooddata/util";
|
|
6
6
|
import { CoreHeadline } from "./CoreHeadline.js";
|
|
7
7
|
import { createHeadlineProvider } from "./HeadlineProviderFactory.js";
|
|
8
8
|
const WrappedHeadline = withContexts(RenderHeadline);
|
|
@@ -34,7 +34,7 @@ export function toCoreHeadlineProps(props) {
|
|
|
34
34
|
newBucket(BucketNames.MEASURES, primaryMeasure),
|
|
35
35
|
newBucket(BucketNames.SECONDARY_MEASURES, ...secondaryMeasures),
|
|
36
36
|
];
|
|
37
|
-
const newProps =
|
|
37
|
+
const newProps = _omit(props, [
|
|
38
38
|
"primaryMeasure",
|
|
39
39
|
"secondaryMeasure",
|
|
40
40
|
"filters",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Repeater.d.ts","sourceRoot":"","sources":["../../../src/charts/repeater/Repeater.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Repeater.d.ts","sourceRoot":"","sources":["../../../src/charts/repeater/Repeater.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAS1C,OAAO,EACH,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,aAAa,EAClB,KAAK,6BAA6B,EAClC,KAAK,iBAAiB,EAIzB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAS9F;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,SAAS,EAAE,sBAAsB,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,gCAAgC,CAAC;IAE3C;;OAEG;IACH,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAEhC;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;OAEG;IACH,6BAA6B,CAAC,EAAE,GAAG,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,iBAAiB,EAAE,oBAAoB;IAC3E;;;OAGG;IACH,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IAEjC;;OAEG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;CAC/B;AAID;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAO5D;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,YAAY,CAElE;AASD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,eAAe,CAwB1E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { useResolveValuesWithPlaceholders, withContexts, } from "@gooddata/sdk-ui";
|
|
3
|
+
import { _omit } from "@gooddata/util";
|
|
4
4
|
import { CoreRepeater } from "./CoreRepeater.js";
|
|
5
5
|
import { constructRepeaterBuckets, constructRepeaterDimensions } from "./internal/repeaterExecution.js";
|
|
6
6
|
const WrappedRepeater = withContexts(RenderRepeater);
|
|
@@ -17,7 +17,7 @@ export function RenderRepeater(props) {
|
|
|
17
17
|
export function toCoreRepeaterProps(props) {
|
|
18
18
|
const { attribute, columns = [], viewBy } = props;
|
|
19
19
|
const buckets = constructRepeaterBuckets(attribute, columns, viewBy, props.config?.inlineVisualizations);
|
|
20
|
-
const newProps =
|
|
20
|
+
const newProps = _omit(props, [
|
|
21
21
|
"attribute",
|
|
22
22
|
"columns",
|
|
23
23
|
"viewBy",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Xirr.d.ts","sourceRoot":"","sources":["../../../src/charts/xirr/Xirr.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Xirr.d.ts","sourceRoot":"","sources":["../../../src/charts/xirr/Xirr.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAa1C,OAAO,EACH,KAAK,sBAAsB,EAE3B,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAIrC,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAQ9F;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;OAKG;IACH,OAAO,EAAE,oBAAoB,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,sBAAsB,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,6BAA6B,CAAC;IAExC;;OAEG;IACH,6BAA6B,CAAC,EAAE,GAAG,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,iBAAiB,EAAE,gBAAgB;CAAG;AAI1E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,CAOpD;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,YAAY,CAE1D;AASD,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,eAAe,CAmBlE"}
|
package/esm/charts/xirr/Xirr.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { omit } from "lodash-es";
|
|
3
2
|
import { MeasureGroupIdentifier, bucketsAttributes, newBucket, newDimension, } from "@gooddata/sdk-model";
|
|
4
3
|
import { BucketNames, useResolveValuesWithPlaceholders, withContexts, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
5
5
|
import { CoreXirr } from "./CoreXirr.js";
|
|
6
6
|
const WrappedXirr = withContexts(RenderXirr);
|
|
7
7
|
/**
|
|
@@ -32,7 +32,7 @@ export function toCoreXirrProps(props) {
|
|
|
32
32
|
newBucket(BucketNames.MEASURES, props.measure),
|
|
33
33
|
newBucket(BucketNames.ATTRIBUTE, props.attribute),
|
|
34
34
|
];
|
|
35
|
-
const newProps =
|
|
35
|
+
const newProps = _omit(props, [
|
|
36
36
|
"measure",
|
|
37
37
|
"attribute",
|
|
38
38
|
"filters",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighChartsRenderer.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/HighChartsRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,YAAY,EAQpB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAEH,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,YAAY,EAEpB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAUpE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,iBAAiB,EAAwC,MAAM,iBAAiB,CAAC;AAE5G,OAAO,EAAE,KAAK,aAAa,EAA0C,MAAM,sBAAsB,CAAC;AAElG,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAIrD;;GAEG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,QAAQ,IAAI,MAAM,CAAC;IAEnB,eAAe,IAAI,WAAW,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,KAAK,GAAG,CAAC;IACpD,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,WAAW,KAAK,GAAG,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACrC,kBAAkB,EAAE,OAAO,EAAE,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAE5D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAE9D;AA4BD,eAAO,MAAM,kBAAkB,qOAe5B,wBAAwB,KAAG,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"HighChartsRenderer.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/HighChartsRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,YAAY,EAQpB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,KAAK,WAAW,EAAa,MAAM,eAAe,CAAC;AAG5D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAEH,KAAK,cAAc,EACnB,KAAK,YAAY,EAEjB,KAAK,YAAY,EAEpB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAUpE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,iBAAiB,EAAwC,MAAM,iBAAiB,CAAC;AAE5G,OAAO,EAAE,KAAK,aAAa,EAA0C,MAAM,sBAAsB,CAAC;AAElG,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAIrD;;GAEG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,QAAQ,IAAI,MAAM,CAAC;IAEnB,eAAe,IAAI,WAAW,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,YAAY,EAAE,aAAa,CAAC;IAC5B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,YAAY,KAAK,GAAG,CAAC;IACpD,aAAa,CAAC,EAAE,CAAC,UAAU,EAAE,WAAW,KAAK,GAAG,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,MAAM,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,wBAAwB;IACrC,kBAAkB,EAAE,OAAO,EAAE,CAAC;IAC9B,eAAe,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,YAAY,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAE5D;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CAE9D;AA4BD,eAAO,MAAM,kBAAkB,qOAe5B,wBAAwB,KAAG,YAAY,GAAG,IAAI,CAia/C,CAAC"}
|
|
@@ -3,12 +3,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { memo, useCallback, useEffect, useMemo, useRef, useState, } from "react";
|
|
4
4
|
import cx from "classnames";
|
|
5
5
|
import * as jsYaml from "js-yaml";
|
|
6
|
-
import { partial,
|
|
6
|
+
import { partial, throttle } from "lodash-es";
|
|
7
7
|
import { v4 } from "uuid";
|
|
8
8
|
import { LoadingComponent, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
9
9
|
import { Bubble, BubbleHoverTrigger, IconUndo } from "@gooddata/sdk-ui-kit";
|
|
10
10
|
import { Legend, getLegendDetails, } from "@gooddata/sdk-ui-vis-commons";
|
|
11
|
-
import { _isEqual } from "@gooddata/util";
|
|
11
|
+
import { _isEqual, _set } from "@gooddata/util";
|
|
12
12
|
import { alignChart } from "../chartTypes/_chartCreators/helpers.js";
|
|
13
13
|
import { isFunnel, isHeatmap, isOneOfTypes, isPieOrDonutChart, isSankeyOrDependencyWheel, isWaterfall, } from "../chartTypes/_util/common.js";
|
|
14
14
|
import { BOTTOM, LEFT, RIGHT, TOP } from "../typings/mess.js";
|
|
@@ -74,7 +74,7 @@ export const HighChartsRenderer = memo(function HighChartsRenderer({ chartOption
|
|
|
74
74
|
if (item.anomaly) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
setLegendItemsEnabled((prev) =>
|
|
77
|
+
setLegendItemsEnabled((prev) => _set([...prev], item.legendIndex, !prev[item.legendIndex]));
|
|
78
78
|
}, []);
|
|
79
79
|
const getItems = useCallback((items) => {
|
|
80
80
|
return items.map((i) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legendBuilder.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/legendBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAEH,KAAK,cAAc,EAGnB,KAAK,qBAAqB,EAC7B,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"legendBuilder.d.ts","sourceRoot":"","sources":["../../../src/highcharts/adapter/legendBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAEH,KAAK,cAAc,EAGnB,KAAK,qBAAqB,EAC7B,MAAM,8BAA8B,CAAC;AAiBtC,OAAO,EAAE,KAAK,aAAa,EAA0C,MAAM,sBAAsB,CAAC;AAgBlG,wBAAgB,qBAAqB,CAAC,YAAY,EAAE,aAAa,GAAG,OAAO,CAkD1E;AAED,wBAAgB,cAAc,CAC1B,YAAY,EAAE,aAAa,EAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,IAAI,CAAC,EAAE,SAAS,GACjB,qBAAqB,EAAE,CAiGzB;AA+BD,wBAAgB,kBAAkB,CAC9B,YAAY,EAAE,GAAG,YAAK,EACtB,YAAY,EAAE,aAAa,EAC3B,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,IAAI,CAAC,EAAE,SAAS,GACjB,cAAc,CAmEhB"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { pick,
|
|
2
|
+
import { pick, sortBy } from "lodash-es";
|
|
3
3
|
import { VisualizationTypes } from "@gooddata/sdk-ui";
|
|
4
4
|
import { DEFAULT_LEGEND_CONFIG, } from "@gooddata/sdk-ui-vis-commons";
|
|
5
|
+
import { _set, _uniqBy } from "@gooddata/util";
|
|
5
6
|
import { supportedDualAxesChartTypes } from "../chartTypes/_chartOptions/chartCapabilities.js";
|
|
6
7
|
import { isAreaChart, isBubbleChart, isComboChart, isHeatmap, isLineChart, isOneOfTypes, isSankeyOrDependencyWheel, isScatterPlot, isTreemap, isWaterfall, } from "../chartTypes/_util/common.js";
|
|
7
8
|
import { createDualAxesSeriesMapper, createWaterfallLegendItems, getComboChartSeries, isStackedChart, } from "./legendHelpers.js";
|
|
@@ -108,7 +109,7 @@ export function getLegendItems(chartOptions, theme, intl) {
|
|
|
108
109
|
pickedProps = [...pickedProps, "pointShape"];
|
|
109
110
|
}
|
|
110
111
|
if (isScatterPlot(type)) {
|
|
111
|
-
const uniqueItems = sortBy(
|
|
112
|
+
const uniqueItems = sortBy(_uniqBy(chartOptions.data?.series?.[0]?.data, (it) => it.legendIndex), (it) => it.legendIndex);
|
|
112
113
|
return uniqueItems.map((it) => {
|
|
113
114
|
return {
|
|
114
115
|
type: VisualizationTypes.SCATTER,
|
|
@@ -189,18 +190,18 @@ export function buildLegendOptions(legendConfig = {}, chartOptions, theme, intl)
|
|
|
189
190
|
];
|
|
190
191
|
if (legendConfig.position === "auto" || !legendConfig.position) {
|
|
191
192
|
if (isOneOfTypes(chartOptions.type, rightLegendCharts)) {
|
|
192
|
-
|
|
193
|
+
_set(defaultLegendConfigByType, "position", "right");
|
|
193
194
|
}
|
|
194
195
|
if (isOneOfTypes(chartOptions.type, defaultTopLegendCharts) && !chartOptions.hasStackByAttribute) {
|
|
195
|
-
|
|
196
|
+
_set(defaultLegendConfigByType, "position", "top");
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
if ((legendConfig.enabled === undefined || legendConfig.enabled === null) &&
|
|
199
200
|
isOneOfTypes(chartOptions.type, defaultHideLegendCharts)) {
|
|
200
|
-
|
|
201
|
+
_set(defaultLegendConfigByType, "enabled", false);
|
|
201
202
|
}
|
|
202
203
|
if (shouldUseResponsiveLegend(chartOptions.type, legendConfig.position)) {
|
|
203
|
-
|
|
204
|
+
_set(defaultLegendConfigByType, "responsive", "autoPositionWithPopup");
|
|
204
205
|
}
|
|
205
206
|
const baseConfig = {
|
|
206
207
|
...DEFAULT_LEGEND_CONFIG,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
2
|
import Highcharts from "highcharts/esm/highcharts.js";
|
|
3
|
-
import { invoke
|
|
4
|
-
import { _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { invoke } from "lodash-es";
|
|
4
|
+
import { _isEmpty, _set } from "@gooddata/util";
|
|
5
5
|
import { getBackplateLabelColor, getBackplateStackedLabelStyling, getBlackLabelStyle, getBlackStackedLabelStyle, } from "../../constants/label.js";
|
|
6
6
|
import { DEFAULT_CATEGORIES_LIMIT } from "../../constants/limits.js";
|
|
7
7
|
import { isHighContrastMode } from "../../utils/highContrastMode.js";
|
|
@@ -456,7 +456,7 @@ function getThemedConfiguration(theme, config, chartOptions, intl) {
|
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
function registerDrilldownHandler(configuration, chartOptions, drillConfig) {
|
|
459
|
-
|
|
459
|
+
_set(configuration, "chart.events.drilldown", function chartDrilldownHandler(event) {
|
|
460
460
|
this.tooltip?.hide();
|
|
461
461
|
chartClick(drillConfig, event, this.container, this.id, chartOptions.type);
|
|
462
462
|
});
|
|
@@ -475,7 +475,7 @@ export function handleChartLoad(chartType) {
|
|
|
475
475
|
}
|
|
476
476
|
function registerRenderHandler(configuration, chartOptions) {
|
|
477
477
|
if (isOneOfTypes(chartOptions.type, supportedDualAxesChartTypes)) {
|
|
478
|
-
|
|
478
|
+
_set(configuration, "chart.events.render", handleChartLoad(chartOptions.type));
|
|
479
479
|
}
|
|
480
480
|
return configuration;
|
|
481
481
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drilldownEventing.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/drilldownEventing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drilldownEventing.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/drilldownEventing.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,YAAY,EAOjB,KAAK,OAAO,EAGf,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAAE,KAAK,sBAAsB,EAA+B,MAAM,kCAAkC,CAAC;AAE5G,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,OAAO,GAAG,gBAAgB,CAyBlF;AA8JD,wBAAgB,UAAU,CACtB,WAAW,EAAE,YAAY,EACzB,KAAK,EAAE,UAAU,CAAC,oBAAoB,EACtC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,SAAS,GACrB,IAAI,CAEN;AAuCD,wBAAgB,cAAc,CAC1B,WAAW,EAAE,YAAY,EACzB,MAAM,EAAE,sBAAsB,EAAE,EAChC,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,SAAS,GACrB,IAAI,CAEN"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { debounce } from "lodash-es";
|
|
3
2
|
import { invariant } from "ts-invariant";
|
|
4
3
|
import { VisualizationTypes, getVisualizationType, } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
4
|
+
import { _cloneDeep, _debounce } from "@gooddata/util";
|
|
6
5
|
import { convertToChartType, isBulletChart, isComboChart, isHeatmap, isTreemap } from "../_util/common.js";
|
|
7
6
|
import { isGroupHighchartsDrillEvent } from "./isGroupHighchartsDrillEvent.js";
|
|
8
7
|
export function getClickableElementNameByChartType(type) {
|
|
@@ -113,7 +112,7 @@ function composeDrillContextPoint(point, chartType) {
|
|
|
113
112
|
...customProp,
|
|
114
113
|
};
|
|
115
114
|
}
|
|
116
|
-
const chartClickDebounced =
|
|
115
|
+
const chartClickDebounced = _debounce((drillConfig, event, target, chartId, chartType) => {
|
|
117
116
|
const originalEvent = event.originalEvent;
|
|
118
117
|
const { dataView, onDrill } = drillConfig;
|
|
119
118
|
const type = getVisualizationType(chartType);
|
|
@@ -151,7 +150,7 @@ const chartClickDebounced = debounce((drillConfig, event, target, chartId, chart
|
|
|
151
150
|
export function chartClick(drillConfig, event, target, chartId, chartType) {
|
|
152
151
|
chartClickDebounced(drillConfig, event, target, chartId, chartType);
|
|
153
152
|
}
|
|
154
|
-
const tickLabelClickDebounce =
|
|
153
|
+
const tickLabelClickDebounce = _debounce((drillConfig, points, target, chartId, chartType) => {
|
|
155
154
|
const { dataView, onDrill } = drillConfig;
|
|
156
155
|
const contextPoints = points.map((point) => {
|
|
157
156
|
const customProps = isBulletChart(chartType)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOptionalStackingConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/getOptionalStackingConfiguration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"getOptionalStackingConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/getOptionalStackingConfiguration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAqB,MAAM,oBAAoB,CAAC;AAClG,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACpB,MAAM,yBAAyB,CAAC;AAajC,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAsFrE;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,WAAW,EAAE,GAAG,WAAW,EAAE,CA8BlF;AA2BD,wBAAgB,qBAAqB,CACjC,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,iBAAiB,EACzB,WAAW,EAAE,YAAY,GAC1B,YAAY,CA+Bd;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CACzC,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,iBAAiB,EACzB,WAAW,EAAE,YAAY,GAC1B,oBAAoB,CAoBtB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAC3C,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,iBAAiB,EACzB,WAAW,CAAC,EAAE,YAAY,GAC3B;IACC,KAAK,EAAE,YAAY,EAAE,CAAC;CACzB,CA4BA;AAED,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,YAAY,GAAG;IAC9D,KAAK,EAAE;QACH,WAAW,EAAE,YAAY,CAAC;KAC7B,EAAE,CAAC;CACP,CAEA;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,CACzC,YAAY,EAAE,aAAa,YAAK,EAChC,WAAW,EAAE,YAAY,EACzB,OAAO,GAAE,iBAAsB,GAChC,iBAAiB,CA2BnB;AAED;;;GAGG;AACH,wBAAgB,gCAAgC,CAC5C,YAAY,EAAE,aAAa,EAC3B,MAAM,EAAE,iBAAiB,EACzB,WAAW,EAAE,YAAY,GAC1B,iBAAiB,CAkCnB;AAED,wBAAgB,gCAAgC,CAAC,EAC7C,YAAY,EACZ,iBAAiB,EAAE,MAAM,EACzB,WAAW,EACX,WAAW,GACd,EAAE,oBAAoB,GAAG,iBAAiB,CAa1C"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { merge, partial
|
|
2
|
+
import { merge, partial } from "lodash-es";
|
|
3
|
+
import { _set } from "@gooddata/util";
|
|
3
4
|
import { supportedStackingAttributesChartTypes } from "../_chartOptions/chartCapabilities.js";
|
|
4
5
|
import { getPrimaryChartType, isBarChart, isColumnChart, isComboChart, isInvertedChartType, isLineChart, isMekko, } from "../_util/common.js";
|
|
5
6
|
import { canComboChartBeStackedInPercent } from "../comboChart/comboChartOptions.js";
|
|
@@ -172,15 +173,15 @@ export function getParentAttributeConfiguration(chartOptions, config, chartConfi
|
|
|
172
173
|
// parent attribute in X axis
|
|
173
174
|
const parentAttributeOptions = {};
|
|
174
175
|
// only apply font-weight to parent label
|
|
175
|
-
|
|
176
|
+
_set(parentAttributeOptions, "style", {
|
|
176
177
|
fontWeight: "bold",
|
|
177
178
|
});
|
|
178
179
|
if (isInvertedChartType(type, chartConfig?.orientation?.position)) {
|
|
179
180
|
// distance more 5px for two groups of attributes for bar chart
|
|
180
|
-
|
|
181
|
+
_set(parentAttributeOptions, "x", -5);
|
|
181
182
|
}
|
|
182
183
|
// 'groupedOptions' is custom property in 'grouped-categories' plugin
|
|
183
|
-
|
|
184
|
+
_set(xAxisItem, "labels.groupedOptions", [parentAttributeOptions]);
|
|
184
185
|
return { xAxis: [xAxisItem] };
|
|
185
186
|
}
|
|
186
187
|
export function setDrillConfigToXAxis(drillConfig) {
|
|
@@ -233,10 +234,10 @@ export function convertMinMaxFromPercentToNumber(chartOptions, config, chartConf
|
|
|
233
234
|
const { min, max } = axis;
|
|
234
235
|
const newAxis = {};
|
|
235
236
|
if (!(min === null || min === undefined) && typeof min === "number") {
|
|
236
|
-
|
|
237
|
+
_set(newAxis, "min", min * 100);
|
|
237
238
|
}
|
|
238
239
|
if (!(max === null || max === undefined) && typeof max === "number") {
|
|
239
|
-
|
|
240
|
+
_set(newAxis, "max", max * 100);
|
|
240
241
|
}
|
|
241
242
|
const numberOfAxes = axes.length;
|
|
242
243
|
if (numberOfAxes === 1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/responsive.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartCreators/responsive.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,2BAA2B,EAAwC,MAAM,oBAAoB,CAAC;AAmH5G;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,cACxB,OAAO,eACL,MAAM,eACN,MAAM,KACnB,2BAEF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,2BA2CxC,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
3
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
2
|
+
import { _cloneDeep, _range } from "@gooddata/util";
|
|
4
3
|
const UPPER_LIMIT_RATIO = 35;
|
|
5
4
|
const BOTTOM_LIMIT_HEIGHT_RATIO = 15;
|
|
6
5
|
const BOTTOM_LIMIT_WIDTH_RATIO = 20;
|
|
@@ -30,7 +29,7 @@ const yAxisTitleDisabledOption = {
|
|
|
30
29
|
},
|
|
31
30
|
};
|
|
32
31
|
function forMultipleAxes(count, options) {
|
|
33
|
-
return
|
|
32
|
+
return _range(count).map(() => _cloneDeep(options));
|
|
34
33
|
}
|
|
35
34
|
const getResponsiveConfigOptions = (inverted, xAxesCount, yAxesCount) => {
|
|
36
35
|
const axisKeyX = inverted ? "yAxis" : "xAxis";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartAxes.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartAxes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chartAxes.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartAxes.ts"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAe,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGpE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AACjF,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAmCvE,wBAAgB,QAAQ,CACpB,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,YAAY,EACpB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,eAAe,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EACvE,qBAAqB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EAC7E,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,GAChC,KAAK,EAAE,CAqDT;AAsID,wBAAgB,QAAQ,CACpB,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,YAAY,EACpB,YAAY,EAAE,uBAAuB,CAAC,oBAAoB,CAAC,EAC3D,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,GACzE,KAAK,EAAE,CAoCT;AAuCD,wBAAgB,WAAW,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,WAAW,EAAE,CAgBhF"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import { range } from "lodash-es";
|
|
3
2
|
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
-
import { _compact, _isEmpty } from "@gooddata/util";
|
|
3
|
+
import { _compact, _isEmpty, _range } from "@gooddata/util";
|
|
5
4
|
import { isBarChart, isBubbleChart, isComboChart, isHeatmap, isLineChart, isMekko, isOneOfTypes, isScatterPlot, isSupportingJoinedAttributeAxisName, unwrap, } from "../_util/common.js";
|
|
6
5
|
import { getMekkoMeasures } from "../mekko/mekkoChartOptions.js";
|
|
7
6
|
import { supportedDualAxesChartTypes } from "./chartCapabilities.js";
|
|
@@ -94,7 +93,7 @@ function getMekkoYAxes(dv, config, measureGroup) {
|
|
|
94
93
|
{
|
|
95
94
|
label: config.yLabel || (heightItem?.name ?? ""),
|
|
96
95
|
format: config.yFormat || heightItem?.format,
|
|
97
|
-
seriesIndices:
|
|
96
|
+
seriesIndices: _range(measureGroup.items.length),
|
|
98
97
|
},
|
|
99
98
|
];
|
|
100
99
|
}
|
|
@@ -144,7 +143,7 @@ function getDefaultYAxes(config, measureGroup, measureGroupItems, firstMeasureGr
|
|
|
144
143
|
// Keep the first measure's metadata (e.g. format) and only override the title text.
|
|
145
144
|
...firstMeasureGroupItem,
|
|
146
145
|
label: getDefaultYAxisLabel(config, measureGroup, measureGroupItems),
|
|
147
|
-
seriesIndices:
|
|
146
|
+
seriesIndices: _range(measureGroupItems.length),
|
|
148
147
|
},
|
|
149
148
|
];
|
|
150
149
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chartDrilling.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartDrilling.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,OAAO,EAGf,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"chartDrilling.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/_chartOptions/chartDrilling.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,gBAAgB,EAErB,KAAK,OAAO,EAGf,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AA+DjF,wBAAgB,kBAAkB,CAC9B,EAAE,EAAE,cAAc,EAClB,MAAM,EAAE,GAAG,EAAE,EACb,cAAc,EAAE,gBAAgB,EAAE,EAClC,gBAAgB,EAAE,CAAC,mCAAmC,GAAG,SAAS,GAAG,IAAI,CAAC,EAAE,EAC5E,gBAAgB,EAAE,mCAAmC,GAAG,SAAS,GAAG,IAAI,EACxE,IAAI,EAAE,OAAO,GAAG,SAAS,EACzB,sBAAsB,GAAE,OAAe,EACvC,oBAAoB,GAAE,OAAe,GACtC,GAAG,CA0HL"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { without } from "lodash-es";
|
|
3
3
|
import { getDrillIntersection, isSomeHeaderPredicateMatched, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { _omit } from "@gooddata/util";
|
|
4
5
|
import { isBubbleChart, isHeatmap, isMekko, isOneOfTypes, isScatterPlot, isTreemap, unwrap, } from "../_util/common.js";
|
|
5
6
|
import { findMeasureGroupInDimensions } from "../_util/executionResultHelper.js";
|
|
6
7
|
import { multiMeasuresAlternatingTypes } from "./chartCapabilities.js";
|
|
@@ -14,7 +15,7 @@ function getViewBy(viewByAttribute, viewByIndex) {
|
|
|
14
15
|
...unwrap(viewByHeader),
|
|
15
16
|
attribute: viewByAttribute,
|
|
16
17
|
};
|
|
17
|
-
viewByAttributeDescriptor = { attributeHeader:
|
|
18
|
+
viewByAttributeDescriptor = { attributeHeader: _omit(viewByAttribute, "items") };
|
|
18
19
|
}
|
|
19
20
|
return {
|
|
20
21
|
viewByHeader,
|
|
@@ -32,7 +33,7 @@ function getStackBy(stackByAttribute, stackByIndex) {
|
|
|
32
33
|
...unwrap(stackByHeader),
|
|
33
34
|
attribute: stackByAttribute,
|
|
34
35
|
};
|
|
35
|
-
stackByAttributeDescriptor = { attributeHeader:
|
|
36
|
+
stackByAttributeDescriptor = { attributeHeader: _omit(stackByAttribute, "items") };
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
38
39
|
stackByHeader,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// (C) 2007-2026 GoodData Corporation
|
|
2
|
-
import {
|
|
2
|
+
import { unset } from "lodash-es";
|
|
3
3
|
import { isMeasure, measureLocalId, } from "@gooddata/sdk-model";
|
|
4
4
|
import { BucketNames, VisualizationTypes } from "@gooddata/sdk-ui";
|
|
5
|
-
import { _cloneDeep } from "@gooddata/util";
|
|
5
|
+
import { _cloneDeep, _set } from "@gooddata/util";
|
|
6
6
|
import { isSolidFill } from "../_chartOptions/patternFillOptions.js";
|
|
7
7
|
import { isAreaChart, isColumnChart, isLineChart } from "../_util/common.js";
|
|
8
8
|
export const CHART_ORDER = {
|
|
@@ -45,8 +45,8 @@ export function getComboChartSeries(config, measureGroup, series, dv) {
|
|
|
45
45
|
const chartType = CHART_ORDER[types[index]]
|
|
46
46
|
? types[index]
|
|
47
47
|
: DEFAULT_COMBO_CHART_TYPES[index];
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
_set(updatedSeries, [measureIndex, "type"], chartType);
|
|
49
|
+
_set(updatedSeries, [measureIndex, "zIndex"], CHART_ORDER[chartType]);
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
// Enforce solid color for any line series so that chart fill (pattern/outline) does not affect lines
|
|
@@ -60,13 +60,13 @@ export function getComboChartSeries(config, measureGroup, series, dv) {
|
|
|
60
60
|
if (isLineChart(series.type)) {
|
|
61
61
|
// For pattern/outline fills, base color is stored in borderColor; fallback to string color if present
|
|
62
62
|
if (baseColor) {
|
|
63
|
-
|
|
63
|
+
_set(updatedSeries, [index, "color"], baseColor);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
else if (isAreaChart(series.type) && !isSolidFill(config.chartFill)) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
_set(updatedSeries, [index, "color"], baseColor);
|
|
68
|
+
_set(updatedSeries, [index, "fillColor"], color);
|
|
69
|
+
_set(updatedSeries, [index, "borderColor"], baseColor);
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
return updatedSeries;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmapColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/heatmap/heatmapColoring.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"heatmapColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/heatmap/heatmapColoring.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAuD,MAAM,qBAAqB,CAAC;AAC9G,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAuB,MAAM,kBAAkB,CAAC;AAEnG,OAAO,EACH,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,iCAAiC,EAMzC,MAAM,8BAA8B,CAAC;AAYtC,qBAAa,oBAAqB,SAAQ,aAAa;IACnC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAErD;IAED,SAAS,CAAC,qBAAqB,CAC3B,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,GAAG,SAAS,EACzC,gBAAgB,EAAE,GAAG,EACrB,iBAAiB,EAAE,GAAG,EACtB,EAAE,EAAE,cAAc,GACnB,iCAAiC,CAuBnC;IAED,OAAO,CAAC,uBAAuB;IAI/B,OAAO,CAAC,kBAAkB;IAI1B,UAAmB,aAAa,CAC5B,YAAY,EAAE,aAAa,EAC3B,eAAe,EAAE,gBAAgB,EAAE,GACpC,MAAM,EAAE,CAkBV;IAED,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,yBAAyB;CA2BpC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { range } from "lodash-es";
|
|
3
2
|
import { darken, mix, saturate } from "polished";
|
|
4
3
|
import { isColorFromPalette, isRgbColor } from "@gooddata/sdk-model";
|
|
5
4
|
import { isDarkTheme } from "@gooddata/sdk-ui-theme-provider";
|
|
6
5
|
import { ColorStrategy, getColorByGuid, getColorFromMapping, getRgbStringFromRGB, isCustomPalette, normalizeColorToRGB, } from "@gooddata/sdk-ui-vis-commons";
|
|
7
|
-
import { _isEqual } from "@gooddata/util";
|
|
6
|
+
import { _isEqual, _range } from "@gooddata/util";
|
|
8
7
|
import { DEFAULT_HEATMAP_BLUE_BASE_COLOR, DEFAULT_HEATMAP_BLUE_COLOR, HEATMAP_BLUE_COLOR_PALETTE, } from "../_util/color.js";
|
|
9
8
|
import { findMeasureGroupInDimensions } from "../_util/executionResultHelper.js";
|
|
10
9
|
export class HeatmapColorStrategy extends ColorStrategy {
|
|
@@ -70,7 +69,7 @@ export class HeatmapColorStrategy extends ColorStrategy {
|
|
|
70
69
|
}
|
|
71
70
|
generatePalette(colorA, colorB, steps) {
|
|
72
71
|
const extendedSteps = steps + 1;
|
|
73
|
-
const generatedPaletteIncludingBg =
|
|
72
|
+
const generatedPaletteIncludingBg = _range(extendedSteps).map((step) => normalizeColorToRGB(mix((1 / (extendedSteps - 1)) * step, colorA, colorB)));
|
|
74
73
|
return generatedPaletteIncludingBg.slice(1); // Need to remove first color as it is the same as the background
|
|
75
74
|
}
|
|
76
75
|
getDefaultColorAssignment(colorPalette, headerItem) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sankeyChartColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/sankeyChart/sankeyChartColoring.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sankeyChartColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/sankeyChart/sankeyChartColoring.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACH,aAAa,EACb,KAAK,aAAa,EAClB,KAAK,iCAAiC,EAGzC,MAAM,8BAA8B,CAAC;AAGtC,qBAAa,wBAAyB,SAAQ,aAAa;IACvD,SAAS,CAAC,qBAAqB,CAC3B,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,GAAG,SAAS,EACzC,aAAa,EAAE,GAAG,EAClB,WAAW,EAAE,GAAG,EAChB,EAAE,EAAE,cAAc,GACnB,iCAAiC,CAqBnC;CACJ"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
// (C) 2023-2026 GoodData Corporation
|
|
2
|
-
import { uniqBy } from "lodash-es";
|
|
3
2
|
import { ColorStrategy, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
-
import { _compact } from "@gooddata/util";
|
|
3
|
+
import { _compact, _uniqBy } from "@gooddata/util";
|
|
5
4
|
export class SankeyChartColorStrategy extends ColorStrategy {
|
|
6
5
|
createColorAssignment(colorPalette, colorMapping, fromAttribute, toAttribute, dv) {
|
|
7
6
|
const attributeItems = _compact([...(fromAttribute?.items ?? []), ...(toAttribute?.items ?? [])]);
|
|
8
|
-
const uniqAttributeItems =
|
|
7
|
+
const uniqAttributeItems = _uniqBy(attributeItems, "attributeHeaderItem.uri");
|
|
9
8
|
const colorAssignment = uniqAttributeItems.map((headerItem, index) => {
|
|
10
9
|
const mappedColor = getColorFromMapping(headerItem, colorMapping, dv);
|
|
11
10
|
const color = mappedColor && isValidMappedColor(mappedColor, colorPalette)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scatterPlotColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/scatterPlot/scatterPlotColoring.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scatterPlotColoring.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/scatterPlot/scatterPlotColoring.ts"],"names":[],"mappings":"AAGA,OAAO,EAGH,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,cAAc,EAAyB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,iCAAiC,EAIzC,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,qBAAa,wBAAyB,SAAQ,oBAAoB;IAC9D,UAAmB,qBAAqB,CACpC,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,GAAG,SAAS,EACzC,eAAe,EAAE,GAAG,EACpB,gBAAgB,EAAE,GAAG,EACrB,EAAE,EAAE,cAAc,EAClB,YAAY,CAAC,EAAE,MAAM,GACtB,iCAAiC,CAuDnC;CACJ"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
// import { PointsChartColorStrategy } from "../_chartColoring/pointsChart.js";
|
|
3
|
-
import { uniq } from "lodash-es";
|
|
4
2
|
import { getAttributeColorAssignment, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { _uniq } from "@gooddata/util";
|
|
5
4
|
import { MeasureColorStrategy } from "../_chartColoring/measure.js";
|
|
6
5
|
export class ScatterPlotColorStrategy extends MeasureColorStrategy {
|
|
7
6
|
createColorAssignment(colorPalette, colorMapping, viewByAttribute, stackByAttribute, dv, clusterTitle) {
|
|
@@ -11,7 +10,7 @@ export class ScatterPlotColorStrategy extends MeasureColorStrategy {
|
|
|
11
10
|
let colorAssignment;
|
|
12
11
|
if (isClustering && isClusteringLoaded) {
|
|
13
12
|
// oxlint-disable-next-line @typescript-eslint/require-array-sort-compare
|
|
14
|
-
const uniqueClusters =
|
|
13
|
+
const uniqueClusters = _uniq(dv.dataView.clusteringResult.clusters).sort();
|
|
15
14
|
colorAssignment = uniqueClusters.map((clusterIndex, currentColorPaletteIndex) => {
|
|
16
15
|
const clusterHeaderItem = {
|
|
17
16
|
colorHeaderItem: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scatterPlotSeries.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/scatterPlot/scatterPlotSeries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scatterPlotSeries.d.ts","sourceRoot":"","sources":["../../../../src/highcharts/chartTypes/scatterPlot/scatterPlotSeries.ts"],"names":[],"mappings":"AAEA,OAAO,EAAyB,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAEH,KAAK,cAAc,EAGtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,8BAA8B,CAAC;AAG3F,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAsDlF,wBAAgB,oBAAoB,CAChC,EAAE,EAAE,cAAc,EAClB,eAAe,EAAE;IAAE,KAAK,EAAE,sBAAsB,EAAE,CAAA;CAAE,GAAG,SAAS,GAAG,IAAI,EACvE,gBAAgB,EAAE;IAAE,KAAK,EAAE,sBAAsB,EAAE,CAAA;CAAE,GAAG,SAAS,GAAG,IAAI,EACxE,aAAa,EAAE,cAAc,EAC7B,gBAAgB,EAAE,MAAM,GACzB,iBAAiB,EAAE,CAwFrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2020-2026 GoodData Corporation
|
|
2
|
-
import { debounce } from "lodash-es";
|
|
3
2
|
import { BucketNames, getMappingHeaderFormattedName, } from "@gooddata/sdk-ui";
|
|
4
3
|
import { valueWithEmptyHandling } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
+
import { _debounce } from "@gooddata/util";
|
|
5
5
|
import { parseValue } from "../_util/common.js";
|
|
6
6
|
function _decreaseOpacityOfOtherSegmentsOnMouseOver() {
|
|
7
7
|
const segmentName = this?.["segmentName"];
|
|
@@ -11,7 +11,7 @@ function _decreaseOpacityOfOtherSegmentsOnMouseOver() {
|
|
|
11
11
|
dp.graphic?.attr({ opacity: 0.3 });
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
const decreaseOpacityOfOtherSegmentsOnMouseOver =
|
|
14
|
+
const decreaseOpacityOfOtherSegmentsOnMouseOver = _debounce(_decreaseOpacityOfOtherSegmentsOnMouseOver, 50);
|
|
15
15
|
function _resetOpacityOfOtherSegmentsOnMouseOut() {
|
|
16
16
|
const segmentName = this?.["segmentName"];
|
|
17
17
|
const allDataPoints = this?.series?.data;
|
|
@@ -20,7 +20,7 @@ function _resetOpacityOfOtherSegmentsOnMouseOut() {
|
|
|
20
20
|
dp.graphic?.attr({ opacity: 1 });
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
const resetOpacityOfOtherSegmentsOnMouseOut =
|
|
23
|
+
const resetOpacityOfOtherSegmentsOnMouseOut = _debounce(_resetOpacityOfOtherSegmentsOnMouseOut, 50);
|
|
24
24
|
function _decreaseOpacityOfOtherClustersOnMouseOver() {
|
|
25
25
|
const clusterName = this?.["clusterName"];
|
|
26
26
|
const allDataPoints = this?.series?.data;
|
|
@@ -29,7 +29,7 @@ function _decreaseOpacityOfOtherClustersOnMouseOver() {
|
|
|
29
29
|
dp.graphic?.attr({ opacity: 0.3 });
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
const decreaseOpacityOfOtherClustersOnMouseOver =
|
|
32
|
+
const decreaseOpacityOfOtherClustersOnMouseOver = _debounce(_decreaseOpacityOfOtherClustersOnMouseOver, 50);
|
|
33
33
|
function _resetOpacityOfOtherClustersOnMouseOut() {
|
|
34
34
|
const clusterName = this?.["clusterName"];
|
|
35
35
|
const allDataPoints = this?.series?.data;
|
|
@@ -38,7 +38,7 @@ function _resetOpacityOfOtherClustersOnMouseOut() {
|
|
|
38
38
|
dp.graphic?.attr({ opacity: 1 });
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
const resetOpacityOfOtherClustersOnMouseOut =
|
|
41
|
+
const resetOpacityOfOtherClustersOnMouseOut = _debounce(_resetOpacityOfOtherClustersOnMouseOut, 50);
|
|
42
42
|
export function getScatterPlotSeries(dv, viewByAttribute, stackByAttribute, colorStrategy, emptyHeaderTitle) {
|
|
43
43
|
const primaryMeasuresBucketEmpty = dv.def().isBucketEmpty(BucketNames.MEASURES);
|
|
44
44
|
const secondaryMeasuresBucketEmpty = dv.def().isBucketEmpty(BucketNames.SECONDARY_MEASURES);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-charts",
|
|
3
|
-
"version": "11.68.0-alpha.
|
|
3
|
+
"version": "11.68.0-alpha.9",
|
|
4
4
|
"description": "GoodData.UI SDK - Charts",
|
|
5
5
|
"license": "LicenseRef-LICENSE",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
"ts-invariant": "0.10.3",
|
|
70
70
|
"tslib": "2.8.1",
|
|
71
71
|
"uuid": "11.1.1",
|
|
72
|
-
"@gooddata/sdk-
|
|
73
|
-
"@gooddata/sdk-
|
|
74
|
-
"@gooddata/sdk-
|
|
75
|
-
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.
|
|
76
|
-
"@gooddata/sdk-
|
|
77
|
-
"@gooddata/
|
|
78
|
-
"@gooddata/
|
|
72
|
+
"@gooddata/sdk-ui": "11.68.0-alpha.9",
|
|
73
|
+
"@gooddata/sdk-ui-kit": "11.68.0-alpha.9",
|
|
74
|
+
"@gooddata/sdk-backend-spi": "11.68.0-alpha.9",
|
|
75
|
+
"@gooddata/sdk-ui-theme-provider": "11.68.0-alpha.9",
|
|
76
|
+
"@gooddata/sdk-model": "11.68.0-alpha.9",
|
|
77
|
+
"@gooddata/sdk-ui-vis-commons": "11.68.0-alpha.9",
|
|
78
|
+
"@gooddata/util": "11.68.0-alpha.9"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@microsoft/api-documenter": "7.30.20",
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
"stylelint": "16.26.1",
|
|
117
117
|
"typescript": "7.0.2",
|
|
118
118
|
"vitest": "5.0.4",
|
|
119
|
-
"@gooddata/eslint-config": "11.68.0-alpha.
|
|
120
|
-
"@gooddata/
|
|
121
|
-
"@gooddata/
|
|
122
|
-
"@gooddata/
|
|
123
|
-
"@gooddata/
|
|
119
|
+
"@gooddata/eslint-config": "11.68.0-alpha.9",
|
|
120
|
+
"@gooddata/reference-workspace": "11.68.0-alpha.9",
|
|
121
|
+
"@gooddata/oxlint-config": "11.68.0-alpha.9",
|
|
122
|
+
"@gooddata/stylelint-config": "11.68.0-alpha.9",
|
|
123
|
+
"@gooddata/sdk-backend-mockingbird": "11.68.0-alpha.9"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"react": "^18.0.0 || ^19.0.0",
|