Skip to content

Commit

Permalink
display tags accessor with icon and ramp
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 31, 2023
1 parent 45e03bc commit 27273f1
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,17 @@ export const getTagcloudVisualization = ({
defaultMessage: 'Tags',
}),
layerId: state.layerId,
accessors: state.tagAccessor ? [{ columnId: state.tagAccessor }] : [],
accessors: state.tagAccessor
? [
{
columnId: state.tagAccessor,
triggerIconType: 'colorBy',
palette: paletteService
.get(state.palette?.name || 'default')
.getCategoricalColors(10, state.palette?.params),
}
]
: [],
supportsMoreColumns: !state.tagAccessor,
filterOperations: (op: OperationMetadata) => op.isBucketed && op.dataType === 'string',
enableDimensionEditor: true,
Expand Down

0 comments on commit 27273f1

Please sign in to comment.