import { ExclusiveDrawerPlugin , ExclusiveDrawerPluginConstructor } from '../chart/drawer-plugin' ; import { createLinePlugin , DatumColorMap , TitleBarTheme } from './line-indicator-plugin' ; export function createEMAPlugin ( lineData ) { return createLinePlugin ( { dataObjectKey : 'ema' , title : 'EMA' , lineData , detailMapper ( key , datum , i ) { return `EMA ${ key }: ${ datum === 0 ? 0 : datum . toFixed ( 2 ) }` ; } , } ) ; }