Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/difurious/lightweight-charts-line-tools
/ functions
Functions
2,222 in github.com/difurious/lightweight-charts-line-tools
⨍
Functions
2,222
◇
Types & classes
611
↓ 352 callers
Method
setData
* 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 callers
Method
timeScale
* Returns API to manipulate the time scale * * @returns Target API
src/api/ichart-api.ts:367
↓ 188 callers
Function
ensureNotNull
(value: T | null)
src/helpers/assertions.ts:39
↓ 158 callers
Method
addLineSeries
* 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 callers
Method
options
* Returns currently applied options * * @returns Full set of currently applied options, including defaults
src/api/ichart-api.ts:381
↓ 97 callers
Method
model
()
src/model/iprice-data-source.ts:17
↓ 74 callers
Method
applyOptions
* Applies new options to the chart * * @param options - Any subset of options.
src/api/ichart-api.ts:374
↓ 69 callers
Function
dataItemAt
(time: Time)
tests/unittests/data-layer.spec.ts:28
↓ 66 callers
Method
isEmpty
()
src/model/plot-list.ts:50
↓ 58 callers
Function
generateContrastColors
(backgroundColor: string)
src/helpers/color.ts:318
↓ 53 callers
Method
priceScale
* 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 callers
Method
points
()
src/model/line-tool-parallel-channel.ts:33
↓ 49 callers
Method
priceToCoordinate
* 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 callers
Method
firstValue
()
src/model/iprice-data-source.ts:14
↓ 47 callers
Method
setSeriesData
(series: Series<TSeriesType>, data: SeriesDataItemTypeMap[TSeriesType][])
src/api/data-layer.ts:209
↓ 45 callers
Method
addAreaSeries
* 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 callers
Method
update
* 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 callers
Method
destroy
()
src/model/idata-source.ts:27
↓ 37 callers
Function
createSeriesMock
(seriesType?: T)
tests/unittests/data-layer.spec.ts:17
↓ 36 callers
Method
append
(renderer: IPaneRenderer)
src/renderers/composite-renderer.ts:14
↓ 31 callers
Method
fitContent
* Automatically calculates the visible range to fit all data from all series.
src/api/itime-scale-api.ts:102
↓ 31 callers
Method
measureText
(ctx: CanvasCtxLike, text: string, optimizationReplacementRe?: RegExp)
src/model/text-width-cache.ts:24
↓ 30 callers
Method
format
* Formatting function * * @param price - Original price to be formatted * @returns Formatted price
src/formatters/iprice-formatter.ts:9
↓ 30 callers
Method
measureText
(text: string)
tests/unittests/text-width-cache.spec.ts:9
↓ 29 callers
Method
formatPrice
(price: number, firstValue: number)
src/model/price-scale.ts:746
↓ 29 callers
Method
subtract
(point: Point)
src/model/point.ts:41
↓ 29 callers
Function
timePoint
(val: number)
tests/unittests/plot-list.spec.ts:9
↓ 28 callers
Method
createPriceLine
* Creates a new price line * * @param options - Any subset of options. * @example * ```js * const priceLine = series.createPriceLine({ *
src/api/iseries-api.ts:220
↓ 27 callers
Method
subscribe
(callback: Callback<T1, T2>, linkedObject?: unknown, singleshot?: boolean)
src/helpers/isubscription.ts:6
↓ 26 callers
Method
add
(point: Point)
src/model/point.ts:33
↓ 26 callers
Function
clone
(object: T)
src/helpers/strict-type-checks.ts:132
↓ 26 callers
Method
fire
(param1: T1, param2: T2)
src/helpers/delegate.ts:33
↓ 26 callers
Method
setVisibleLogicalRange
* 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 callers
Function
merge
(dst: Record<string, any>, ...sources: Record<string, any>[])
src/helpers/strict-type-checks.ts:47
↓ 24 callers
Method
scaled
(scale: number)
src/model/point.ts:65
↓ 23 callers
Method
addBarSeries
* 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 callers
Method
unsubscribeAll
(linkedObject: unknown)
src/helpers/isubscription.ts:8
↓ 22 callers
Method
setMarkers
* 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 callers
Method
state
()
src/gui/pane-widget.ts:174
↓ 21 callers
Method
_model
()
src/gui/pane-widget.ts:764
↓ 21 callers
Method
addCandlestickSeries
* Creates a candlestick series with specified parameters. * * @param candlestickOptions - Customization parameters of the series being created.
src/api/ichart-api.ts:141
↓ 21 callers
Method
coordinateToPrice
* 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 callers
Function
deepCopy
(value: T)
src/helpers/deep-copy.ts:1
↓ 21 callers
Function
ensureDefined
(value: T | undefined)
src/helpers/assertions.ts:22
↓ 21 callers
Method
search
(index: TimePointIndex, searchMode: PlotRowSearchMode = PlotRowSearchMode.Exact)
src/model/plot-list.ts:62
↓ 20 callers
Method
priceScale
()
src/model/idata-source.ts:11
↓ 19 callers
Method
addHistogramSeries
* Creates a histogram series with specified parameters. * * @param histogramOptions - Customization parameters of the series being created. * @r
src/api/ichart-api.ts:153
↓ 19 callers
Function
formatDate
(date: Date, format: string, locale: string)
src/formatters/format-date.ts:16
↓ 19 callers
Method
setVisibleRange
* 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 callers
Method
visible
()
src/model/idata-source.ts:25
↓ 18 callers
Function
setLineStyle
(ctx: CanvasRenderingContext2D, style: LineStyle)
src/renderers/draw-line.ts:118
↓ 18 callers
Method
timeToIndex
(time: TimePoint, findNearest: boolean)
src/model/time-scale.ts:309
↓ 17 callers
Function
equalPoints
(a: Point, b: Point)
src/model/point.ts:117
↓ 17 callers
Method
finished
(time: number)
src/gui/kinetic-animation.ts:135
↓ 17 callers
Method
lightUpdate
()
src/model/chart-model.ts:379
↓ 17 callers
Method
paneForSource
(source: IPriceDataSource)
src/model/chart-model.ts:777
↓ 16 callers
Method
chart
()
src/gui/pane-widget.ts:199
↓ 16 callers
Method
clone
()
src/model/point.ts:77
↓ 16 callers
Method
left
()
src/model/range-impl.ts:14
↓ 16 callers
Method
length
()
src/model/point.ts:61
↓ 16 callers
Method
visibleStrictRange
()
src/model/time-scale.ts:334
↓ 16 callers
Method
width
* Returns a width of the time scale.
src/api/itime-scale-api.ts:139
↓ 15 callers
Method
_invalidate
(mask: InvalidateMask)
src/model/chart-model.ts:964
↓ 15 callers
Method
barSpacing
()
src/model/time-scale.ts:546
↓ 15 callers
Function
distanceToSegment
(point0: Point, point1: Point, point2: Point)
src/model/interesection.ts:156
↓ 15 callers
Method
height
(rendererOptions: PriceAxisViewRendererOptions, useSecondLine?: boolean)
src/views/price-axis/iprice-axis-view.ts:10
↓ 15 callers
Method
right
()
src/model/range-impl.ts:18
↓ 14 callers
Function
drawScaled
(ctx: CanvasRenderingContext2D, ratio: number, func: () => void)
src/helpers/canvas-helpers.ts:39
↓ 14 callers
Method
minValue
()
src/model/price-range-impl.ts:25
↓ 14 callers
Method
timeToCoordinate
* 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 callers
Function
assert
(condition: boolean, message?: string)
src/helpers/assertions.ts:7
↓ 13 callers
Method
clear
()
src/renderers/composite-renderer.ts:22
↓ 13 callers
Function
gradientColorAtPercent
(topColor: string, bottomColor: string, percent: number)
src/helpers/color.ts:327
↓ 13 callers
Method
indexToCoordinate
(index: TimePointIndex)
src/model/time-scale.ts:423
↓ 13 callers
Method
minMaxOnRangeCached
(start: TimePointIndex, end: TimePointIndex, plots: readonly PlotRowValueIndex[])
src/model/plot-list.ts:78
↓ 12 callers
Method
_makeCompatEvent
(event: MouseEvent | TouchEvent, touch?: Touch)
src/gui/mouse-event-handler.ts:823
↓ 12 callers
Function
applyAlpha
(color: string, alpha: number)
src/helpers/color.ts:302
↓ 12 callers
Function
checkVisibleRange
( { timeRange: oldTimeRange, logicalRange: oldLogicalRange }, what )
tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js:80
↓ 12 callers
Function
checkVisibleRange
( { timeRange: oldTimeRange, logicalRange: oldLogicalRange }, what )
tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js:80
↓ 12 callers
Function
defaultTickMarkFormatter
(timePoint: TimePoint, tickMarkType: TickMarkType, locale: string)
src/model/default-tick-mark-formatter.ts:6
↓ 12 callers
Function
getContext2D
(canvas: HTMLCanvasElement)
src/gui/canvas-utils.ts:26
↓ 12 callers
Method
id
()
src/model/price-scale.ts:242
↓ 12 callers
Method
isPercentage
()
src/model/price-scale.ts:287
↓ 12 callers
Function
makeFont
(size: number, family?: string, style?: string)
src/helpers/make-font.ts:16
↓ 12 callers
Method
maxValue
()
src/model/price-range-impl.ts:29
↓ 12 callers
Function
normalizeRgbComponent
(component: number)
src/helpers/color.ts:186
↓ 11 callers
Method
_getPane
()
src/api/chart-api.ts:656
↓ 11 callers
Method
draw
(ctx: CanvasRenderingContext2D, pixelRatio: number, isHovered: boolean, hitTestData?: unknown)
src/renderers/ipane-renderer.ts:5
↓ 11 callers
Method
seriesType
* Return current series type. * * @returns Type of the series. * @example * ```js * const lineSeries = chart.addLineSeries(); * console.lo
src/api/iseries-api.ts:247
↓ 11 callers
Function
time
(dateTimeStr: string)
tests/unittests/default-tick-mark-formatter.spec.ts:8
↓ 11 callers
Method
updateSeriesData
(series: Series<TSeriesType>, data: SeriesDataItemTypeMap[TSeriesType])
src/api/data-layer.ts:292
↓ 11 callers
Method
valueAt
(index: TimePointIndex)
src/model/plot-list.ts:58
↓ 11 callers
Function
visibleTimedValuesCase
( rangeFrom: number, rangeTo: number, extendedRange: boolean, expectedFrom: number, expectedTo: number,
tests/unittests/timed-data.spec.ts:8
↓ 10 callers
Function
convertTime
(time: Time)
src/api/data-layer.ts:56
↓ 10 callers
Method
coordinate
()
src/views/price-axis/iprice-axis-view.ts:8
↓ 10 callers
Method
defaultPriceScale
()
src/model/pane.ts:287
↓ 10 callers
Method
getElement
()
src/gui/pane-widget.ts:203
↓ 10 callers
Function
getPosition
(eventLike: Touch | MouseEvent)
src/gui/mouse-event-handler.ts:876
↓ 10 callers
Method
hasListeners
()
src/helpers/delegate.ts:39
↓ 10 callers
Method
isIndexedTo100
()
src/model/price-scale.ts:291
next →
1–100 of 2,222, ranked by callers