connect line chart to backend (#15657)
https://github.com/user-attachments/assets/b797c5a8-32a8-4d3e-9fb1-7541d107a19f optimizations: before: https://github.com/user-attachments/assets/bf45a3f1-5f89-40c1-9ce4-c2d912b77d63 after: https://github.com/user-attachments/assets/61bfd603-7b63-4695-8ae8-68fe7d3bfea0
This commit is contained in:
+5
-1
@@ -159,9 +159,13 @@ export const useChartSettingsValues = ({
|
||||
case CHART_CONFIGURATION_SETTING_IDS.DATA_LABELS:
|
||||
return configuration.displayDataLabel ?? undefined;
|
||||
case CHART_CONFIGURATION_SETTING_IDS.STACKED_BARS:
|
||||
return 'groupMode' in configuration
|
||||
return configuration.__typename === 'BarChartConfiguration'
|
||||
? configuration.groupMode !== 'GROUPED'
|
||||
: true;
|
||||
case CHART_CONFIGURATION_SETTING_IDS.STACKED_LINES:
|
||||
return configuration.__typename === 'LineChartConfiguration'
|
||||
? configuration.isStacked !== false
|
||||
: true;
|
||||
case CHART_CONFIGURATION_SETTING_IDS.OMIT_NULL_VALUES:
|
||||
return 'omitNullValues' in configuration
|
||||
? (configuration.omitNullValues ?? false)
|
||||
|
||||
Reference in New Issue
Block a user