import { ExclusiveDrawerPlugin , ExclusiveDrawerPluginConstructor } from '../chart/drawer-plugin' ; import { createLinePlugin , DatumColorMap , TitleBarTheme } from './line-indicator-plugin' ; export function createBOLLPlugin ( lineData = [ { key : 'mid' , color : '#FF8E29' , } , { key : 'upper' , color : '#ADE3F3' , } , { key : 'lower' , color : '#EC6ED9' , } , ] , dataObjectKey = 'boll' ) { return createLinePlugin ( { dataObjectKey , title : 'BOLL(20,2)' , lineData , detailMapper ( key , datum , i ) { return `${ key . toUpperCase ( ) }: ${ datum === 0 ? 0 : datum . toFixed ( 2 ) }` ; } , } ) ; }