260330_02_ENH: 연도별 사례수 row에서 Column으로 이동
This commit is contained in:
@@ -75,13 +75,15 @@ export default function TopChartTable({
|
||||
<table className={cn("lg-table", tableClassName)} style={{ minWidth: `${minWidth ?? minWidthPx}px` }}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th rowSpan={2} className="lg-table__sep-r w-31" style={{ whiteSpace: "nowrap" }} />
|
||||
<th colSpan={2} className="w-40" style={{ whiteSpace: "nowrap" }} />
|
||||
<td colSpan={categories.length} style={{ padding: 0, height: chartNode ? chartHeight : 0 }}>
|
||||
{chartNode ? <div style={{ width: "100%", height: "100%" }}>{chartNode}</div> : null}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr className="lg-table__subhead">
|
||||
<th className="lg-table__sep-r"></th>
|
||||
<th className="content-text-xs">사례수</th>
|
||||
{categories.map((category) => (
|
||||
<th key={category} className="content-text-xs">
|
||||
{category}
|
||||
@@ -102,6 +104,9 @@ export default function TopChartTable({
|
||||
<th scope="row" className="lg-table__rowhead lg-table__sep-r content-text-sm">
|
||||
{row.label}
|
||||
</th>
|
||||
<td>
|
||||
{row.sample}
|
||||
</td>
|
||||
|
||||
{categories.map((_, categoryIndex) => {
|
||||
const rawValue = row.values?.[categoryIndex];
|
||||
|
||||
Reference in New Issue
Block a user