From 6074491f996d1eb007ab371054536b5e5f914d0e Mon Sep 17 00:00:00 2001 From: yashvardhan-nehra Date: Mon, 2 Dec 2024 18:49:03 +0530 Subject: [PATCH 1/2] SCAL-200368 Dynamic Gradient Coloring --- src/main/custom-chart-context.spec.ts | 1 + src/main/custom-chart-context.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/main/custom-chart-context.spec.ts b/src/main/custom-chart-context.spec.ts index 0c59f2e..2b47fe5 100644 --- a/src/main/custom-chart-context.spec.ts +++ b/src/main/custom-chart-context.spec.ts @@ -115,6 +115,7 @@ describe('CustomChartContext', () => { allowedConfigurations: { allowColumnNumberFormatting: false, allowColumnConditionalFormatting: false, + allowGradientColoring: false, allowMeasureNamesAndValues: false, }, chartConfigParameters: { diff --git a/src/main/custom-chart-context.ts b/src/main/custom-chart-context.ts index 2e50524..7fb69c2 100644 --- a/src/main/custom-chart-context.ts +++ b/src/main/custom-chart-context.ts @@ -85,6 +85,14 @@ export type AllowedConfigurations = { */ allowColumnConditionalFormatting?: boolean; + /** + * Allows Gradient coloring at the column level. + * + * @default false + * @version SDK: 0.1 | ThoughtSpot: + */ + allowGradientColoring?: boolean; + /** * Enables measure_name and measure_values in the chart configuration. * @@ -269,6 +277,7 @@ const DEFAULT_CHART_CONTEXT_PROPS: Partial = { allowedConfigurations: { allowColumnNumberFormatting: false, allowColumnConditionalFormatting: false, + allowGradientColoring: false, allowMeasureNamesAndValues: false, }, chartConfigParameters: { From b3482a43c4e3a5173159572c86a2314803780f11 Mon Sep 17 00:00:00 2001 From: yashvardhan-nehra Date: Tue, 3 Dec 2024 12:05:12 +0530 Subject: [PATCH 2/2] updated version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ace97eb..2f6c37b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@thoughtspot/ts-chart-sdk", - "version": "0.0.2-alpha.20", + "version": "0.0.2-alpha.23", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@thoughtspot/ts-chart-sdk", - "version": "0.0.2-alpha.20", + "version": "0.0.2-alpha.23", "license": "ThoughtSpot Development Tools End User License Agreement", "dependencies": { "lodash": "^4.17.21", diff --git a/package.json b/package.json index 6c3f6b4..fbb6175 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@thoughtspot/ts-chart-sdk", "private": false, - "version": "0.0.2-alpha.22", + "version": "0.0.2-alpha.23", "module": "lib/index", "main": "lib/index", "types": "lib/index",