MCPcopy
hub / github.com/nhn/tui.chart / getThemeAppliedSecondaryYAxis

Function getThemeAppliedSecondaryYAxis

apps/chart/src/store/theme.ts:51–67  ·  view source on GitHub ↗
(options: Options)

Source from the content-addressed store, hash-verified

49}
50
51function getThemeAppliedSecondaryYAxis(options: Options) {
52 const theme = { ...options.theme } as Theme;
53
54 if (!Array.isArray(theme.yAxis)) {
55 return theme;
56 }
57
58 const axisTitleTheme = makeAxisTitleTheme(options?.theme?.chart?.fontFamily);
59 const yAxis = (theme.yAxis as AxisTheme[]).map((yAxisTheme) =>
60 deepMergedCopy({ title: { ...axisTitleTheme } }, { ...yAxisTheme })
61 );
62
63 return {
64 ...theme,
65 yAxis,
66 };
67}
68
69function getThemeOptionsWithSeriesName(
70 options: Options,

Callers 1

Calls 2

makeAxisTitleThemeFunction · 0.90
deepMergedCopyFunction · 0.90

Tested by

no test coverage detected