(options: ApexOptions)
| 9 | import type { ThemeColorPresets, ThemeMode } from "@/types/enum"; |
| 10 | |
| 11 | export function useChart(options: ApexOptions) { |
| 12 | const { themeColorPresets, themeMode } = useSettings(); |
| 13 | |
| 14 | const baseOptions = baseCharOptions(themeMode, themeColorPresets) ?? {}; |
| 15 | return mergeDeepRight(baseOptions, options) as ApexOptions; |
| 16 | } |
| 17 | |
| 18 | const baseCharOptions = (themeMode: ThemeMode, themeColorPresets: ThemeColorPresets): ApexOptions => { |
| 19 | const LABEL_TOTAL = { |
no test coverage detected