Design adjustments on Bar chart (#15028)
- Make the ticks dynamic when we resize the graph - Fix formatting - Fix gradient color not working when the index have a space in it - Fix the maximum number of groups for a grouped by graph - Update the tooltip design and display the group Video: https://github.com/user-attachments/assets/9f304b6c-3dec-4ce2-9127-41d27f393d90 --------- Co-authored-by: Marie Stoppa <marie.stoppa@essec.edu>
This commit is contained in:
+7
-2
@@ -14,7 +14,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com
|
||||
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
|
||||
import { t } from '@lingui/core/macro';
|
||||
import { useState } from 'react';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { isDefined, isFieldMetadataDateKind } from 'twenty-shared/utils';
|
||||
import { useIcons } from 'twenty-ui/display';
|
||||
import { MenuItemSelect } from 'twenty-ui/navigation';
|
||||
import { filterBySearchQuery } from '~/utils/filterBySearchQuery';
|
||||
@@ -59,7 +59,12 @@ export const ChartFieldSelectionForAggregateOperationDropdownContent = () => {
|
||||
searchQuery,
|
||||
getSearchableValues: (item) => [item.label, item.name],
|
||||
// TODO: remove the relation filter once group by is supported for relation fields
|
||||
}).filter((field) => !isFieldRelation(field) && !field.isSystem);
|
||||
}).filter(
|
||||
(field) =>
|
||||
!isFieldRelation(field) &&
|
||||
!field.isSystem &&
|
||||
!isFieldMetadataDateKind(field.type),
|
||||
);
|
||||
|
||||
const { getIcon } = useIcons();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user