(options: Options)
| 49 | } |
| 50 | |
| 51 | function 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 | |
| 69 | function getThemeOptionsWithSeriesName( |
| 70 | options: Options, |
no test coverage detected