Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tradingview/lightweight-charts
/ functions
Functions
4,839 in github.com/tradingview/lightweight-charts
⨍
Functions
4,839
◇
Types & classes
1,320
↓ 7 callers
Function
setLineStyle
(ctx: CanvasRenderingContext2D, style: LineStyle)
src/renderers/draw-line.ts:81
↓ 7 callers
Method
setMarkers
(markers: InternalSeriesMarker<TimePointIndex>[])
src/plugins/series-markers/pane-view.ts:184
↓ 7 callers
Function
stringToBusinessDay
(value: string)
src/model/horz-scale-behavior-time/time-utils.ts:60
↓ 7 callers
Method
unsubscribe
(callback: Callback<T1, T2, T3>)
src/helpers/isubscription.ts:5
↓ 7 callers
Function
wrapWhitespaceData
(createPlotRowFn: GetPlotRowType)
src/model/get-series-plot-row-creator.ts:145
↓ 6 callers
Method
_drawSources
(target: CanvasRenderingTarget2D, paneViewsGetter: ViewsGetter<IDataSourcePaneViews>)
src/gui/pane-widget.ts:582
↓ 6 callers
Method
_firesTouchEvents
(e: MouseEvent)
src/gui/mouse-event-handler.ts:774
↓ 6 callers
Method
_makeSureItIsValid
()
src/model/price-scale.ts:923
↓ 6 callers
Method
_paneInvalidationMask
(pane: Pane | null, level: InvalidationLevel)
src/model/chart-model.ts:1226
↓ 6 callers
Method
_priceScale
()
src/api/price-scale-api.ts:80
↓ 6 callers
Method
_touchMouseMoveWithDownInfo
(currentPosition: Position, startPosition: Position)
src/gui/mouse-event-handler.ts:334
↓ 6 callers
Function
addDataToLeft
(data, areaSeries)
tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js:63
↓ 6 callers
Function
addDataToRight
(data, areaSeries)
tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js:63
↓ 6 callers
Method
baseIndex
()
src/model/time-scale.ts:870
↓ 6 callers
Function
clamp
(value: number, minVal: number, maxVal: number)
src/helpers/mathex.ts:1
↓ 6 callers
Function
convertPriceRangeFromLog
(priceRange: PriceRangeImpl | null, logFormula: LogFormula)
src/model/price-scale-conversions.ts:97
↓ 6 callers
Method
crosshairSource
()
src/model/chart-model.ts:467
↓ 6 callers
Method
drawBitmap
(ctx: CanvasRenderingContext2D, x: number, y: number, addTopLayer?: boolean)
src/gui/pane-widget.ts:457
↓ 6 callers
Function
ensureDefined
(value: T | undefined)
plugin-examples/src/helpers/assertions.ts:10
↓ 6 callers
Function
filterByExt
(files, ext)
scripts/githooks/pre-commit/lint.js:79
↓ 6 callers
Method
findClosestIndex
(target: number, direction: SearchDirection)
indicator-examples/src/helpers/closest-index.ts:11
↓ 6 callers
Function
generateData
()
tests/unittests/data-layer.spec.ts:554
↓ 6 callers
Method
height
()
src/model/price-scale.ts:417
↓ 6 callers
Method
hitTest
* Hit test method which will be called by the library when the cursor is moved. * Use this to register object ids being hovered for use within the c
src/model/ipane-primitive.ts:174
↓ 6 callers
Method
isInverted
()
src/model/price-scale.ts:641
↓ 6 callers
Method
isOverlay
(source: IPriceDataSource)
src/model/pane.ts:199
↓ 6 callers
Method
merge
(other: InvalidateMask)
src/model/invalidate-mask.ts:153
↓ 6 callers
Method
moveToPane
* Move the series to another pane. * * If the pane with the specified index does not exist, the pane will be created. * * @param paneIndex - T
src/api/iseries-api.ts:345
↓ 6 callers
Method
paneForSource
(source: IPriceDataSource)
src/model/chart-model.ts:456
↓ 6 callers
Method
paneWidgets
()
src/gui/chart-widget.ts:53
↓ 6 callers
Function
preventDefault
(event: Event)
src/gui/mouse-event-handler.ts:845
↓ 6 callers
Method
preventDefault
()
src/gui/mouse-event-handler.ts:50
↓ 6 callers
Method
renderer
(pane: Pane, addAnchors?: boolean)
src/views/pane/ipane-view.ts:6
↓ 6 callers
Method
rendererOptions
()
src/gui/price-axis-widget.ts:238
↓ 6 callers
Function
runESLintForFiles
(files)
scripts/githooks/pre-commit/lint.js:67
↓ 6 callers
Function
runForSuccess
(cmd)
scripts/compare-size-with-merge-base.js:25
↓ 6 callers
Method
scrollTo
(x: Coordinate)
src/model/time-scale.ts:802
↓ 6 callers
Method
serieses
()
src/model/chart-model.ts:437
↓ 6 callers
Method
setBarSpacing
(newBarSpacing: number)
src/model/time-scale.ts:599
↓ 6 callers
Function
shapeSize
(shape: SeriesMarkerShape, originalSize: number)
src/plugins/series-markers/utils.ts:16
↓ 6 callers
Method
size
()
src/model/plot-list.ts:59
↓ 6 callers
Method
updateAllSources
()
src/model/pane.ts:294
↓ 6 callers
Method
updateFormatter
* Update the formatter with the localization options. * * @param options - Localization options * @returns void
src/model/ihorz-scale-behavior.ts:91
↓ 6 callers
Method
updateFormatter
()
src/model/price-scale.ts:853
↓ 6 callers
Function
writeTestDataItem
( fileName: string, fileContent: string | Buffer )
tests/e2e/graphics/graphics-test-cases.ts:100
↓ 5 callers
Method
_bottomMarginPx
()
src/model/price-scale.ts:917
↓ 5 callers
Method
_clearLongTapTimeout
()
src/gui/mouse-event-handler.ts:496
↓ 5 callers
Method
_drawSourceImpl
( target: CanvasRenderingTarget2D, paneViewsGetter: ViewsGetter<IDataSourcePaneViews>, drawFn: DrawFunct
src/gui/pane-widget.ts:602
↓ 5 callers
Method
_firstIndex
()
src/model/time-scale.ts:988
↓ 5 callers
Method
_indexAt
(offset: PlotRowIndex)
src/model/plot-list.ts:121
↓ 5 callers
Method
_isLeftAxisVisible
()
src/gui/chart-widget.ts:883
↓ 5 callers
Method
_isRightAxisVisible
()
src/gui/chart-widget.ts:887
↓ 5 callers
Method
_lowerbound
(index: TimePointIndex)
src/model/plot-list.ts:169
↓ 5 callers
Method
_parseColor
(color: string)
src/model/colors.ts:158
↓ 5 callers
Method
addExpiringAlert
( price: number, startDate: number, endDate: number, parameters: ExpiringPriceAlertParameters )
plugin-examples/src/plugins/expiring-price-alerts/expiring-price-alerts.ts:83
↓ 5 callers
Function
applyStyle
(element: HTMLElement, styles: Record<string, string>)
plugin-examples/src/plugins/tooltip/tooltip-element.ts:205
↓ 5 callers
Method
barSpacing
()
src/model/time-scale.ts:595
↓ 5 callers
Function
convertPriceRangeToLog
(priceRange: PriceRangeImpl | null, logFormula: LogFormula)
src/model/price-scale-conversions.ts:72
↓ 5 callers
Method
coordinateToIndex
(x: Coordinate)
src/model/time-scale.ts:310
↓ 5 callers
Function
createChartEx
( container: string | HTMLElement, horzScaleBehavior: THorzScaleBehavior, options?: DeepPartial<ReturnType<
src/api/create-chart.ts:33
↓ 5 callers
Method
detached
* Detached Lifecycle hook. * * @returns void
src/model/ipane-primitive.ts:161
↓ 5 callers
Function
distanceByCoordinates
(p1x: number, p1y: number, p2x: number, p2y: number)
src/renderers/walk-line.ts:8
↓ 5 callers
Function
distanceToSegment
( x: number, y: number, x1: number, y1: number, x2: number, y2: number )
src/renderers/hit-test-common.ts:43
↓ 5 callers
Method
formatPrice
(price: number, firstValue: number)
src/model/price-scale.ts:788
↓ 5 callers
Method
formatter
()
src/model/price-scale.ts:780
↓ 5 callers
Function
fromLog
(logical: number, logFormula: LogFormula)
src/model/price-scale-conversions.ts:62
↓ 5 callers
Function
generateData
(count, from, empty = false)
tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js:1
↓ 5 callers
Function
generateData
(count, from, empty = false)
tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js:1
↓ 5 callers
Function
getRanges
()
tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js:58
↓ 5 callers
Function
getRanges
()
tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js:61
↓ 5 callers
Method
getRenderCoordinate
()
src/views/price-axis/iprice-axis-view.ts:10
↓ 5 callers
Method
height
(rendererOptions: PriceAxisViewRendererOptions, useSecondLine?: boolean)
src/views/price-axis/iprice-axis-view.ts:11
↓ 5 callers
Method
indices
()
src/model/plot-list.ts:117
↓ 5 callers
Method
internalHeight
()
src/model/price-scale.ts:431
↓ 5 callers
Method
isConflationEnabled
* Check if conflation is currently enabled for this series.
src/model/series.ts:357
↓ 5 callers
Method
isEmpty
()
src/model/time-scale.ts:450
↓ 5 callers
Function
isFulfilledData
( data: T )
src/model/data-consumer.ts:185
↓ 5 callers
Function
isInteger
(value: unknown)
src/helpers/strict-type-checks.ts:41
↓ 5 callers
Function
isSeriesPlotRow
(row: SeriesPlotRow | WhitespacePlotRow)
src/model/get-series-plot-row-creator.ts:119
↓ 5 callers
Function
isString
(value: unknown)
src/helpers/strict-type-checks.ts:45
↓ 5 callers
Function
isUTCTimestamp
(time: Time)
src/model/horz-scale-behavior-time/types.ts:79
↓ 5 callers
Method
lastValueData
(globalLast: boolean)
src/model/iseries.ts:81
↓ 5 callers
Method
leftPriceAxisWidget
()
src/gui/pane-widget.ts:523
↓ 5 callers
Function
numberToStringWithLeadingZero
(value: number, length: number)
src/formatters/price-formatter.ts:15
↓ 5 callers
Method
onDestroyed
()
src/model/pane.ts:423
↓ 5 callers
Method
options
()
src/model/chart-model.ts:435
↓ 5 callers
Method
paneIndex
()
src/api/pane-api.ts:56
↓ 5 callers
Method
pop
* Removes one or more data items from the end of the series. * * @param count - The number of data items to remove. * @returns The removed data
src/api/iseries-api.ts:203
↓ 5 callers
Method
priceAxisViews
(pane?: Pane, priceScale?: PriceScale)
src/model/idata-source.ts:48
↓ 5 callers
Method
removePriceLine
* Removes the price line that was created before. * * @param line - A line to remove. * @example * ```js * const priceLine = series.createPr
src/api/iseries-api.ts:285
↓ 5 callers
Method
resetTimeScale
* Restores default zoom level and scroll position of the time scale.
src/api/itime-scale-api.ts:90
↓ 5 callers
Method
rightOffset
()
src/model/time-scale.ts:305
↓ 5 callers
Function
rmRf
(dir: string)
tests/e2e/graphics/utils.ts:4
↓ 5 callers
Function
runForOutput
(cmd)
scripts/compare-size-with-merge-base.js:29
↓ 5 callers
Method
scrollPosition
* Return the distance from the right edge of the time scale to the lastest bar of the series measured in bars.
src/api/itime-scale-api.ts:25
↓ 5 callers
Method
setMode
(newMode: Partial<PriceScaleState>)
src/model/price-scale.ts:353
↓ 5 callers
Method
setRenderCoordinate
(value: number | null)
src/views/price-axis/iprice-axis-view.ts:16
↓ 5 callers
Method
stopTimeScaleAnimation
()
src/model/invalidate-mask.ts:128
↓ 5 callers
Method
stretchFactor
()
src/gui/pane-widget.ts:235
↓ 5 callers
Method
subscribeSizeChange
* Adds a subscription to time scale size changes * * @param handler - Handler (function) to be called when the time scale size changes
src/api/itime-scale-api.ts:216
← previous
next →
201–300 of 4,839, ranked by callers