260312_03_ENH: 카테고리 파트 설문문항 노출 적용

This commit is contained in:
2026-03-12 16:05:47 +09:00
parent 1751a5071a
commit b39c3e8ef9
4 changed files with 55 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ import {createDefaultGrid, reverseCategories} from "@/lib/chart-options";
type CategoryByDataProps = {
selectedYear: string;
title?: string;
surveyTitle?: string;
chartMode: CategoryChartMode;
chartLegend?: LegendOption;
chartTopMargin?: number;
@@ -45,6 +46,7 @@ const signStyleGap: SignStyle<BannerRow> = {
const CategoryByData = ({
selectedYear,
title,
surveyTitle,
chartMode,
chartLegend,
chartTopMargin,
@@ -115,7 +117,6 @@ const CategoryByData = ({
<div className="flex gap-6 p-3">
<div className="flex-shrink-0" style={{ width: `${chartWidth ?? 400}px`}}>
{(() => {
console.log(chartTopMargin)
switch (chartMode) {
case "horizontal":
return (
@@ -145,7 +146,6 @@ const CategoryByData = ({
return null;
}
})()}
</div>
<div className="flex items-center">
@@ -166,6 +166,7 @@ const CategoryByData = ({
/>
</div>
</div>
<div className="flex content-text-sm ml-5 mb-5 -mt-4">{surveyTitle}</div>
</div>
);
};