Skip to content

Commit

Permalink
change to custom plots
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-hodgson committed Oct 11, 2023
1 parent 32f4e79 commit 3fb7f0f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const individualsView: SynapseConfig = {
minFacetColumn: 'minAge',
maxFacetColumn: 'maxAge',
},
synapsePlots: [getPlotConfig(participantsTableId)],
customPlots: [getPlotConfig(participantsTableId)],
tableConfiguration: {
showAccessColumn: false,
showDownloadColumn: false,
Expand Down Expand Up @@ -118,7 +118,7 @@ export const filesView: SynapseConfig = {
minFacetColumn: 'minAge',
maxFacetColumn: 'maxAge',
},
synapsePlots: [getPlotConfig(filesTableId)],
customPlots: [getPlotConfig(filesTableId)],
tableConfiguration: {
showAccessColumn: true,
showDownloadColumn: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Cards: Story = {
args: {
name: 'Tools',
sql: 'SELECT * FROM syn26438037',
synapsePlots: [
customPlots: [
{
query:
'SELECT resourceType, count(resourceType) FROM syn26438037 GROUP BY resourceType ',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ type QueryWrapperPlotNavOwnProps = {
>
facetsToPlot?: string[]
availableFacets?: FacetFilterControlsProps['availableFacets']
synapsePlots?: QueryWrapperSynapsePlotProps[]
customPlots?: QueryWrapperSynapsePlotProps[]
defaultColumn?: string
defaultShowSearchBox?: boolean
lockedColumn?: QueryWrapperProps['lockedColumn']
Expand Down Expand Up @@ -113,7 +113,7 @@ type QueryWrapperPlotNavContentsProps = Pick<
| 'fileIdColumnName'
| 'fileNameColumnName'
| 'fileVersionColumnName'
| 'synapsePlots'
| 'customPlots'
> & {
isFullTextSearchEnabled: boolean
remount: () => void
Expand All @@ -138,7 +138,7 @@ function QueryWrapperPlotNavContents(props: QueryWrapperPlotNavContentsProps) {
customControls,
remount,
isFullTextSearchEnabled,
synapsePlots,
customPlots,
} = props
const queryContext = useQueryContext()
const [showExportMetadata, setShowExportMetadata] = React.useState(false)
Expand Down Expand Up @@ -209,9 +209,9 @@ function QueryWrapperPlotNavContents(props: QueryWrapperPlotNavContentsProps) {
<FacetFilterControls availableFacets={availableFacets} />
</>
)}
{synapsePlots && (
{customPlots && (
<div className="SynapsePlots">
{synapsePlots.map((plotProps, index) => {
{customPlots.map((plotProps, index) => {
return <QueryWrapperSynapsePlot key={index} {...plotProps} />
})}
</div>
Expand Down

0 comments on commit 3fb7f0f

Please sign in to comment.