diff --git a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/BarPlotMarkerConfigurationMenu.tsx b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/BarPlotMarkerConfigurationMenu.tsx index ae67024c10..150b39e35d 100644 --- a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/BarPlotMarkerConfigurationMenu.tsx +++ b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/BarPlotMarkerConfigurationMenu.tsx @@ -16,7 +16,6 @@ import { CategoricalMarkerConfigurationTable } from './CategoricalMarkerConfigur import { CategoricalMarkerPreview } from './CategoricalMarkerPreview'; import Barplot from '@veupathdb/components/lib/plots/Barplot'; import { SubsettingClient } from '../../../core/api'; -import LabelledGroup from '@veupathdb/components/lib/components/widgets/LabelledGroup'; import { Toggle } from '@veupathdb/coreui'; import { SharedMarkerConfigurations } from './PieMarkerConfigurationMenu'; import { useUncontrolledSelections } from '../hooks/uncontrolledSelections'; @@ -25,6 +24,7 @@ import { SelectedCountsOption, SelectedValues, } from '../appState'; +import { gray } from '@veupathdb/coreui/lib/definitions/colors'; interface MarkerConfiguration { type: T; @@ -185,26 +185,31 @@ export function BarPlotMarkerConfigurationMenu({ > Color:

- + {/* limit inputVariables width */} +
+ +
- +
Summary marker (all filtered data) - +
{overlayConfiguration?.overlayType === 'categorical' ? ( <> - +
+
+ Marker X-axis controls +
- - +
+
+
+ Marker Y-axis controls +
- +
{overlayConfiguration?.overlayType === 'categorical' && ( - +
+ +
)} {overlayConfiguration?.overlayType === 'continuous' && barplotData.value && (
@@ -301,8 +324,8 @@ export function BarPlotMarkerConfigurationMenu({ marginBottom: 0, }} containerStyles={{ - height: 250, - width: 400, + height: '300px', + maxWidth: '360px', }} />
diff --git a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerConfigurationTable.tsx b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerConfigurationTable.tsx index 9059f8d10f..07bce43224 100644 --- a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerConfigurationTable.tsx +++ b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerConfigurationTable.tsx @@ -169,6 +169,10 @@ export function CategoricalMarkerConfigurationTable({ */ key: 'label', name: 'Values', + style: { + wordBreak: 'break-word', + hyphens: 'auto', + }, sortable: true, renderCell: (data: { row: AllValuesDefinition }) => ( <>{data.row.label} @@ -194,14 +198,14 @@ export function CategoricalMarkerConfigurationTable({ return (
({ options={['filtered', 'visible']} optionLabels={['Filtered', 'Visible']} buttonColor={'primary'} - // margins={['0em', '0', '0', '1em']} + margins={['1em', '0', '0', '0em']} onOptionSelected={handleCountsSelection} />
diff --git a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerPreview.tsx b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerPreview.tsx index 4b1f0e2f96..c15e144a9b 100644 --- a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerPreview.tsx +++ b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/CategoricalMarkerPreview.tsx @@ -19,7 +19,7 @@ type Props = { }; export const sharedStandaloneMarkerProperties = { - markerScale: 3, + markerScale: 2.5, containerStyles: { width: 'fit-content', height: 'fit-content', diff --git a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/PieMarkerConfigurationMenu.tsx b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/PieMarkerConfigurationMenu.tsx index 29e30a9994..044a66505d 100644 --- a/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/PieMarkerConfigurationMenu.tsx +++ b/packages/libs/eda/src/lib/map/analysis/MarkerConfiguration/PieMarkerConfigurationMenu.tsx @@ -17,7 +17,6 @@ import { CategoricalMarkerPreview } from './CategoricalMarkerPreview'; import Barplot from '@veupathdb/components/lib/plots/Barplot'; import { SubsettingClient } from '../../../core/api'; import RadioButtonGroup from '@veupathdb/components/lib/components/widgets/RadioButtonGroup'; -import LabelledGroup from '@veupathdb/components/lib/components/widgets/LabelledGroup'; import { useUncontrolledSelections } from '../hooks/uncontrolledSelections'; import { BinningMethod, @@ -172,26 +171,31 @@ export function PieMarkerConfigurationMenu({ > Color:

- + {/* limit inputVariables width */} +
+ +
- +
Summary marker (all filtered data) - +
{overlayConfiguration?.overlayType === 'categorical' ? ( - + {overlayConfiguration?.overlayType === 'continuous' && ( - + )} {overlayConfiguration?.overlayType === 'categorical' && (