260319_01_ENH: 17일자 수정사항 적용
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { CHART_GRID_DEFAULTS, BAR_WIDTHS } from "@/const/chartConst";
|
||||
import {ChartData, NewNumber} from "@/components/lge-dashboard";
|
||||
import {AXIS_HIDE_Y_STYLE} from "@/const/lgConst";
|
||||
|
||||
export function reverseCategories<T extends ChartData>(data: T): T {
|
||||
const categories = [...data.categories].reverse();
|
||||
@@ -180,9 +181,7 @@ export function createValueAxis(
|
||||
if (hideStyle) {
|
||||
return {
|
||||
...base,
|
||||
axisLabel: { show: false },
|
||||
axisTick: { show: false },
|
||||
axisLine: { show: false },
|
||||
...AXIS_HIDE_Y_STYLE,
|
||||
splitLine: { show: false },
|
||||
...overrides,
|
||||
};
|
||||
|
||||
@@ -469,7 +469,7 @@ export const makeTotalBasePct = (t:number|string, f:number|string):number => {
|
||||
export const calcTotalBaseRow = (label:string, totalRow: ProductRow, targetRow: ProductRow): ProductRow => {
|
||||
const out: ProductRow = {
|
||||
year: targetRow?.year ?? "",
|
||||
rowLabel: `전체 ${label} 중 자사제품 비율`,
|
||||
rowLabel: `조사 년도 ${label} 중 자사제품 비율`,
|
||||
total: fixedDecimalPoint(makeTotalBasePct(totalRow.total, targetRow.total))
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user