Skip to content

Commit

Permalink
Fixed chart titles in demographic breakdown viz
Browse files Browse the repository at this point in the history
  • Loading branch information
nasaownsky committed May 31, 2022
1 parent 7167ce1 commit 8fddacf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export default function BarChartPair({
height={previewChartHeight}
highlighted={highlightedCategory}
setHighlighted={setHighlightedCategory}
showLegend={preview}
preview={preview}
/>
</>
Expand Down
20 changes: 10 additions & 10 deletions spotlight-client/src/charts/ProportionalBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ export default function ProportionalBar({
/>
</ResponsiveTooltipController>
</ProportionalBarChartWrapper>
{showLegend && (
<ProportionalBarMetadata>
{!preview && (
<ProportionalBarTitle>
{title}
{noData && ", No Data"}
</ProportionalBarTitle>
)}

<ProportionalBarMetadata>
{!preview && (
<ProportionalBarTitle>
{title}
{noData && ", No Data"}
</ProportionalBarTitle>
)}
{showLegend && (
<ProportionalBarLegendWrapper>
<ColorLegend
highlighted={highlighted}
Expand All @@ -157,8 +157,8 @@ export default function ProportionalBar({
}
/>
</ProportionalBarLegendWrapper>
</ProportionalBarMetadata>
)}
)}
</ProportionalBarMetadata>
</>
)}
</ProportionalBarContainer>
Expand Down

0 comments on commit 8fddacf

Please sign in to comment.