Switch ChartPanel from 3-column grid to single vertical stack
Deploy to git-pages / deploy (push) Successful in 10s
Deploy to git-pages / deploy (push) Successful in 10s
Charts and their titles/captions need more horizontal space for readability. Single column layout ensures each chart renders at full container width without cramped side-by-side placement.
This commit is contained in:
@@ -98,20 +98,13 @@ export default function ChartPanel({ district, state }) {
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
{/* Responsive grid: 3 columns on desktop, 1 on mobile */}
|
||||
{/* Single column layout: one chart per row with full-width cards */}
|
||||
<div style={{
|
||||
display: 'grid',
|
||||
gridTemplateColumns: 'repeat(3, 1fr)',
|
||||
gap: 'var(--space-4)'
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
gap: 'var(--space-5)'
|
||||
}}>
|
||||
{/* Row 1 — Observed & descriptive */}
|
||||
<ArrestsOverTime data={timeSeriesData} districtName={district.lea_name} />
|
||||
|
||||
<RateByGroupBar data={rateByGroup} />
|
||||
|
||||
<DistrictVsNational topGroup={topGroup} nationalRate={nationalTopRate} rateByGroup={rateByGroup} />
|
||||
|
||||
{/* Row 2 — Bayesian model distributions */}
|
||||
<ModelDrawsComparison data={chart4Data} waves={['15-16', '17-18', '21-22']} districtName={district.lea_name} />
|
||||
|
||||
<ObservedRateDensity quadData={chart5Data} />
|
||||
|
||||
Reference in New Issue
Block a user