import { DeepPartial, ISeriesApi, SeriesDataItemTypeMap, SeriesMarker, SeriesOptionsMap, SeriesType, Time } from 'lightweight-charts'; import * as React from 'react'; export interface SeriesProps { /** * Data for display, used for `series.setData()`. * Memoization is recommended to prevent setting multiple times. */ data?: SeriesDataItemTypeMap[TSeriesType][]; /** * Used to pass the incremental data, used for `series.update()`. */ latestItem?: SeriesDataItemTypeMap[TSeriesType]; /** * Series options, please refer to `lightweight-charts` documents. * Memoization is recommended to prevent calling `series.applyOptions()` multiple times. */ options?: DeepPartial; /** * Used to display series marker via `series.setMarkers()` * Memoization is recommended to prevent calling `series.setMarkers()` multiple times. */ markers?: SeriesMarker