MCPcopy Create free account

hub / github.com/difurious/lightweight-charts-line-tools / functions

Functions2,222 in github.com/difurious/lightweight-charts-line-tools

↓ 352 callersMethodsetData
* Sets or replaces series data. * * @param data - Ordered (earlier time point goes first) array of data items. Old data is fully replaced with the
src/api/iseries-api.ts:135
↓ 189 callersMethodtimeScale
* Returns API to manipulate the time scale * * @returns Target API
src/api/ichart-api.ts:367
↓ 188 callersFunctionensureNotNull
(value: T | null)
src/helpers/assertions.ts:39
↓ 158 callersMethodaddLineSeries
* Creates a line series with specified parameters. * * @param lineOptions - Customization parameters of the series being created. * @returns An
src/api/ichart-api.ts:165
↓ 115 callersMethodoptions
* Returns currently applied options * * @returns Full set of currently applied options, including defaults
src/api/ichart-api.ts:381
↓ 97 callersMethodmodel
()
src/model/iprice-data-source.ts:17
↓ 74 callersMethodapplyOptions
* Applies new options to the chart * * @param options - Any subset of options.
src/api/ichart-api.ts:374
↓ 69 callersFunctiondataItemAt
(time: Time)
tests/unittests/data-layer.spec.ts:28
↓ 66 callersMethodisEmpty
()
src/model/plot-list.ts:50
↓ 58 callersFunctiongenerateContrastColors
(backgroundColor: string)
src/helpers/color.ts:318
↓ 53 callersMethodpriceScale
* Returns API to manipulate a price scale. * * @param priceScaleId - ID of the price scale. * @returns Price scale API.
src/api/ichart-api.ts:360
↓ 51 callersMethodpoints
()
src/model/line-tool-parallel-channel.ts:33
↓ 49 callersMethodpriceToCoordinate
* Converts specified series price to pixel coordinate according to the series price scale * * @param price - Input price to be converted * @retu
src/api/iseries-api.ts:57
↓ 48 callersMethodfirstValue
()
src/model/iprice-data-source.ts:14
↓ 47 callersMethodsetSeriesData
(series: Series<TSeriesType>, data: SeriesDataItemTypeMap[TSeriesType][])
src/api/data-layer.ts:209
↓ 45 callersMethodaddAreaSeries
* Creates an area series with specified parameters. * * @param areaOptions - Customization parameters of the series being created. * @returns An
src/api/ichart-api.ts:105
↓ 45 callersMethodupdate
* Adds new data item to the existing set (or updates the latest item if times of the passed/latest items are equal). * * @param bar - A single dat
src/api/iseries-api.ts:160
↓ 39 callersMethoddestroy
()
src/model/idata-source.ts:27
↓ 37 callersFunctioncreateSeriesMock
(seriesType?: T)
tests/unittests/data-layer.spec.ts:17
↓ 36 callersMethodappend
(renderer: IPaneRenderer)
src/renderers/composite-renderer.ts:14
↓ 31 callersMethodfitContent
* Automatically calculates the visible range to fit all data from all series.
src/api/itime-scale-api.ts:102
↓ 31 callersMethodmeasureText
(ctx: CanvasCtxLike, text: string, optimizationReplacementRe?: RegExp)
src/model/text-width-cache.ts:24
↓ 30 callersMethodformat
* Formatting function * * @param price - Original price to be formatted * @returns Formatted price
src/formatters/iprice-formatter.ts:9
↓ 30 callersMethodmeasureText
(text: string)
tests/unittests/text-width-cache.spec.ts:9
↓ 29 callersMethodformatPrice
(price: number, firstValue: number)
src/model/price-scale.ts:746
↓ 29 callersMethodsubtract
(point: Point)
src/model/point.ts:41
↓ 29 callersFunctiontimePoint
(val: number)
tests/unittests/plot-list.spec.ts:9
↓ 28 callersMethodcreatePriceLine
* Creates a new price line * * @param options - Any subset of options. * @example * ```js * const priceLine = series.createPriceLine({ *
src/api/iseries-api.ts:220
↓ 27 callersMethodsubscribe
(callback: Callback<T1, T2>, linkedObject?: unknown, singleshot?: boolean)
src/helpers/isubscription.ts:6
↓ 26 callersMethodadd
(point: Point)
src/model/point.ts:33
↓ 26 callersFunctionclone
(object: T)
src/helpers/strict-type-checks.ts:132
↓ 26 callersMethodfire
(param1: T1, param2: T2)
src/helpers/delegate.ts:33
↓ 26 callersMethodsetVisibleLogicalRange
* Sets visible [logical range](/time-scale.md#logical-range) of data. * * @param range - Target visible logical range of data. * @example * ``
src/api/itime-scale-api.ts:92
↓ 25 callersFunctionmerge
(dst: Record<string, any>, ...sources: Record<string, any>[])
src/helpers/strict-type-checks.ts:47
↓ 24 callersMethodscaled
(scale: number)
src/model/point.ts:65
↓ 23 callersMethodaddBarSeries
* Creates a bar series with specified parameters. * * @param barOptions - Customization parameters of the series being created. * @returns An in
src/api/ichart-api.ts:129
↓ 23 callersMethodunsubscribeAll
(linkedObject: unknown)
src/helpers/isubscription.ts:8
↓ 22 callersMethodsetMarkers
* Allows to set/replace all existing series markers with new ones. * * @param data - An array of series markers. This array should be sorted by ti
src/api/iseries-api.ts:202
↓ 22 callersMethodstate
()
src/gui/pane-widget.ts:174
↓ 21 callersMethod_model
()
src/gui/pane-widget.ts:764
↓ 21 callersMethodaddCandlestickSeries
* Creates a candlestick series with specified parameters. * * @param candlestickOptions - Customization parameters of the series being created.
src/api/ichart-api.ts:141
↓ 21 callersMethodcoordinateToPrice
* Converts specified coordinate to price value according to the series price scale * * @param coordinate - Input coordinate to be converted * @r
src/api/iseries-api.ts:65
↓ 21 callersFunctiondeepCopy
(value: T)
src/helpers/deep-copy.ts:1
↓ 21 callersFunctionensureDefined
(value: T | undefined)
src/helpers/assertions.ts:22
↓ 21 callersMethodsearch
(index: TimePointIndex, searchMode: PlotRowSearchMode = PlotRowSearchMode.Exact)
src/model/plot-list.ts:62
↓ 20 callersMethodpriceScale
()
src/model/idata-source.ts:11
↓ 19 callersMethodaddHistogramSeries
* Creates a histogram series with specified parameters. * * @param histogramOptions - Customization parameters of the series being created. * @r
src/api/ichart-api.ts:153
↓ 19 callersFunctionformatDate
(date: Date, format: string, locale: string)
src/formatters/format-date.ts:16
↓ 19 callersMethodsetVisibleRange
* Sets visible range of data. * * Note that this method cannot extrapolate time and will use the only currently existent data. * Thus, for examp
src/api/itime-scale-api.ts:74
↓ 19 callersMethodvisible
()
src/model/idata-source.ts:25
↓ 18 callersFunctionsetLineStyle
(ctx: CanvasRenderingContext2D, style: LineStyle)
src/renderers/draw-line.ts:118
↓ 18 callersMethodtimeToIndex
(time: TimePoint, findNearest: boolean)
src/model/time-scale.ts:309
↓ 17 callersFunctionequalPoints
(a: Point, b: Point)
src/model/point.ts:117
↓ 17 callersMethodfinished
(time: number)
src/gui/kinetic-animation.ts:135
↓ 17 callersMethodlightUpdate
()
src/model/chart-model.ts:379
↓ 17 callersMethodpaneForSource
(source: IPriceDataSource)
src/model/chart-model.ts:777
↓ 16 callersMethodchart
()
src/gui/pane-widget.ts:199
↓ 16 callersMethodclone
()
src/model/point.ts:77
↓ 16 callersMethodleft
()
src/model/range-impl.ts:14
↓ 16 callersMethodlength
()
src/model/point.ts:61
↓ 16 callersMethodvisibleStrictRange
()
src/model/time-scale.ts:334
↓ 16 callersMethodwidth
* Returns a width of the time scale.
src/api/itime-scale-api.ts:139
↓ 15 callersMethod_invalidate
(mask: InvalidateMask)
src/model/chart-model.ts:964
↓ 15 callersMethodbarSpacing
()
src/model/time-scale.ts:546
↓ 15 callersFunctiondistanceToSegment
(point0: Point, point1: Point, point2: Point)
src/model/interesection.ts:156
↓ 15 callersMethodheight
(rendererOptions: PriceAxisViewRendererOptions, useSecondLine?: boolean)
src/views/price-axis/iprice-axis-view.ts:10
↓ 15 callersMethodright
()
src/model/range-impl.ts:18
↓ 14 callersFunctiondrawScaled
(ctx: CanvasRenderingContext2D, ratio: number, func: () => void)
src/helpers/canvas-helpers.ts:39
↓ 14 callersMethodminValue
()
src/model/price-range-impl.ts:25
↓ 14 callersMethodtimeToCoordinate
* Converts a time to local x coordinate. * * @param time - Time needs to be converted * @returns X coordinate of that time or `null` if no time
src/api/itime-scale-api.ts:126
↓ 13 callersFunctionassert
(condition: boolean, message?: string)
src/helpers/assertions.ts:7
↓ 13 callersMethodclear
()
src/renderers/composite-renderer.ts:22
↓ 13 callersFunctiongradientColorAtPercent
(topColor: string, bottomColor: string, percent: number)
src/helpers/color.ts:327
↓ 13 callersMethodindexToCoordinate
(index: TimePointIndex)
src/model/time-scale.ts:423
↓ 13 callersMethodminMaxOnRangeCached
(start: TimePointIndex, end: TimePointIndex, plots: readonly PlotRowValueIndex[])
src/model/plot-list.ts:78
↓ 12 callersMethod_makeCompatEvent
(event: MouseEvent | TouchEvent, touch?: Touch)
src/gui/mouse-event-handler.ts:823
↓ 12 callersFunctionapplyAlpha
(color: string, alpha: number)
src/helpers/color.ts:302
↓ 12 callersFunctioncheckVisibleRange
( { timeRange: oldTimeRange, logicalRange: oldLogicalRange }, what )
tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js:80
↓ 12 callersFunctioncheckVisibleRange
( { timeRange: oldTimeRange, logicalRange: oldLogicalRange }, what )
tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js:80
↓ 12 callersFunctiondefaultTickMarkFormatter
(timePoint: TimePoint, tickMarkType: TickMarkType, locale: string)
src/model/default-tick-mark-formatter.ts:6
↓ 12 callersFunctiongetContext2D
(canvas: HTMLCanvasElement)
src/gui/canvas-utils.ts:26
↓ 12 callersMethodid
()
src/model/price-scale.ts:242
↓ 12 callersMethodisPercentage
()
src/model/price-scale.ts:287
↓ 12 callersFunctionmakeFont
(size: number, family?: string, style?: string)
src/helpers/make-font.ts:16
↓ 12 callersMethodmaxValue
()
src/model/price-range-impl.ts:29
↓ 12 callersFunctionnormalizeRgbComponent
(component: number)
src/helpers/color.ts:186
↓ 11 callersMethod_getPane
()
src/api/chart-api.ts:656
↓ 11 callersMethoddraw
(ctx: CanvasRenderingContext2D, pixelRatio: number, isHovered: boolean, hitTestData?: unknown)
src/renderers/ipane-renderer.ts:5
↓ 11 callersMethodseriesType
* Return current series type. * * @returns Type of the series. * @example * ```js * const lineSeries = chart.addLineSeries(); * console.lo
src/api/iseries-api.ts:247
↓ 11 callersFunctiontime
(dateTimeStr: string)
tests/unittests/default-tick-mark-formatter.spec.ts:8
↓ 11 callersMethodupdateSeriesData
(series: Series<TSeriesType>, data: SeriesDataItemTypeMap[TSeriesType])
src/api/data-layer.ts:292
↓ 11 callersMethodvalueAt
(index: TimePointIndex)
src/model/plot-list.ts:58
↓ 11 callersFunctionvisibleTimedValuesCase
( rangeFrom: number, rangeTo: number, extendedRange: boolean, expectedFrom: number, expectedTo: number,
tests/unittests/timed-data.spec.ts:8
↓ 10 callersFunctionconvertTime
(time: Time)
src/api/data-layer.ts:56
↓ 10 callersMethodcoordinate
()
src/views/price-axis/iprice-axis-view.ts:8
↓ 10 callersMethoddefaultPriceScale
()
src/model/pane.ts:287
↓ 10 callersMethodgetElement
()
src/gui/pane-widget.ts:203
↓ 10 callersFunctiongetPosition
(eventLike: Touch | MouseEvent)
src/gui/mouse-event-handler.ts:876
↓ 10 callersMethodhasListeners
()
src/helpers/delegate.ts:39
↓ 10 callersMethodisIndexedTo100
()
src/model/price-scale.ts:291
next →1–100 of 2,222, ranked by callers