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
↓ 5 callers
Function
toPercent
(value: number, baseValue: number)
src/model/price-scale-conversions.ts:21
↓ 5 callers
Function
undefinedIfNull
(t: T | null)
src/helpers/strict-type-checks.ts:96
↓ 5 callers
Method
unsubscribeCrosshairMove
* Unsubscribe a handler that was previously subscribed using {@link subscribeCrosshairMove}. * * @param handler - Previously subscribed handler
src/api/ichart-api.ts:279
↓ 5 callers
Function
waitNextFrame
()
tests/e2e/coverage/test-cases/chart/yield-curve.js:47
↓ 5 callers
Method
zorder
()
src/model/idata-source.ts:16
↓ 4 callers
Method
_addMouseEventListener
( target: HTMLDivElement, eventType: 'mouseleave' | 'mousemove' | 'mousedown' | 'mouseup', handler: (eve
plugin-examples/src/plugins/delta-tooltip/multi-touch-chart-events.ts:130
↓ 4 callers
Method
_addTouchEventListener
( target: HTMLDivElement, eventType: 'touchstart' | 'touchend' | 'touchmove' | 'touchcancel', handler: (
plugin-examples/src/plugins/delta-tooltip/multi-touch-chart-events.ts:143
↓ 4 callers
Method
_correctBarSpacing
()
src/model/time-scale.ts:1044
↓ 4 callers
Method
_formatNumber
(value: number)
src/formatters/volume-formatter.ts:32
↓ 4 callers
Method
_getBackgroundColor
(side: BackgroundColorSide)
src/model/chart-model.ts:1264
↓ 4 callers
Method
_getRendererOptions
()
src/gui/time-axis-widget.ts:487
↓ 4 callers
Method
_getUpdateResponse
(updatedSeries: Series<SeriesType>, firstChangedPointIndex: number, info?: SeriesUpdateInfo)
src/model/data-layer.ts:512
↓ 4 callers
Method
_lastIndex
()
src/model/time-scale.ts:992
↓ 4 callers
Method
_recalculatePriceScaleImpl
(priceScale: PriceScale)
src/model/pane.ts:456
↓ 4 callers
Method
_resetClickTimeout
()
src/gui/mouse-event-handler.ts:215
↓ 4 callers
Method
_sendUpdateToChart
(update: DataUpdateResponse)
src/api/chart-api.ts:411
↓ 4 callers
Method
_update
()
plugin-examples/src/plugins/expiring-price-alerts/expiring-price-alerts.ts:155
↓ 4 callers
Method
_upperbound
(index: TimePointIndex)
src/model/plot-list.ts:177
↓ 4 callers
Function
addDataToLeft
()
tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js:53
↓ 4 callers
Function
addDataToRight
()
tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js:53
↓ 4 callers
Method
appliedX
()
src/model/crosshair.ts:248
↓ 4 callers
Method
applyScaleOptions
(options: DeepPartial<ChartOptionsBase>)
src/model/pane.ts:76
↓ 4 callers
Function
assignIndexToPointData
(pointData: TimePointData, index: TimePointIndex)
src/model/data-layer.ts:556
↓ 4 callers
Function
awaitNewFrame
()
tests/e2e/coverage/test-cases/price-scale/change-scales.js:5
↓ 4 callers
Function
awaitNewFrame
()
tests/e2e/coverage/test-cases/series/update-data.js:5
↓ 4 callers
Method
backgroundBottomColor
()
src/model/chart-model.ts:452
↓ 4 callers
Method
barColorer
()
src/model/iseries.ts:82
↓ 4 callers
Method
changeChartTheme
(isDark)
website/tutorials/webcomponents/assets/wc-example.js:262
↓ 4 callers
Function
changedDataItemAt
(time: Time)
tests/unittests/data-layer.spec.ts:46
↓ 4 callers
Method
chart
()
plugin-examples/src/plugins/tooltip/tooltip.ts:143
↓ 4 callers
Method
chart
()
plugin-examples/src/plugins/highlight-bar-crosshair/highlight-bar-crosshair.ts:125
↓ 4 callers
Function
checkSeries
(series, data, compareItemsFn)
tests/e2e/graphics/test-cases/api/series-data-by-index.js:56
↓ 4 callers
Function
clearRect
(ctx: CanvasRenderingContext2D, x: number, y: number, w: number, h: number, clearColor: string)
src/helpers/canvas-helpers.ts:39
↓ 4 callers
Method
clicked
()
src/gui/pane-widget.ts:334
↓ 4 callers
Method
clone
()
src/model/price-range-impl.ts:37
↓ 4 callers
Function
convertPrimitiveHitResult
( primitiveHit: BestPrimitiveHit )
src/model/pane-hit-test.ts:91
↓ 4 callers
Function
copyDir
(srcDir, destDir, contentReplacer)
plugin-examples/build-website.mjs:40
↓ 4 callers
Function
copyDir
(srcDir, destDir, contentReplacer)
indicator-examples/build-website.mjs:40
↓ 4 callers
Function
createChart
(container: string | HTMLElement, options?: DeepPartial<ChartOptions>)
src/api/create-chart.ts:68
↓ 4 callers
Function
createCustomTestData
(count: number, baseTime: number = 1000)
tests/unittests/conflation.spec.ts:57
↓ 4 callers
Function
createTextWatermark
(pane: IPaneApi<T>, options: DeepPartial<TextWatermarkOptions>)
src/plugins/text-watermark/primitive.ts:117
↓ 4 callers
Method
customSeriesPlotValuesBuilder
()
src/model/series.ts:617
↓ 4 callers
Method
dblClicked
()
src/gui/pane-widget.ts:338
↓ 4 callers
Function
delay
(time)
tests/e2e/coverage/test-cases/time-scale/general.js:41
↓ 4 callers
Function
eventTimeStamp
(e: TouchEvent | MouseEvent)
src/gui/mouse-event-handler.ts:858
↓ 4 callers
Method
fontSize
()
src/model/price-scale.ts:413
↓ 4 callers
Method
full
()
src/model/invalidate-mask.ts:168
↓ 4 callers
Function
generateAlternativeCandleData
( numberOfPoints: number = 250 )
plugin-examples/src/sample-data.ts:84
↓ 4 callers
Function
generateData
()
tests/e2e/memleaks/test-cases/series.js:26
↓ 4 callers
Function
generateDataLine
(offset)
tests/e2e/graphics/test-cases/two-scales/two-groups-of-overlays.js:27
↓ 4 callers
Method
getElement
()
src/gui/time-axis-widget.ts:150
↓ 4 callers
Method
getStretchFactor
* Returns the stretch factor of the pane. * Stretch factor determines the relative size of the pane compared to other panes. * * @returns The st
src/api/ipane-api.ts:99
↓ 4 callers
Function
greaterOrEqual
(x1: number, x2: number, epsilon: number)
src/helpers/mathex.ts:24
↓ 4 callers
Function
hours
(count: number)
src/model/horz-scale-behavior-time/time-scale-point-weight-generator.ts:7
↓ 4 callers
Function
hoveredSeriesHitTestResult
( distance: number, priority: HitTestPriority, itemType: InternalHitTestCandidate['itemType'] )
src/renderers/hit-test-common.ts:31
↓ 4 callers
Method
hoveredSource
()
src/model/chart-model.ts:464
↓ 4 callers
Method
id
()
src/model/price-scale.ts:283
↓ 4 callers
Method
indexesToCoordinates
(points: T[], visibleRange?: SeriesItemsIndexesRange)
src/model/time-scale.ts:307
↓ 4 callers
Function
isBoolean
(value: unknown)
src/helpers/strict-type-checks.ts:49
↓ 4 callers
Function
isDefaultPriceScale
(priceScaleId: string)
src/model/default-price-scale.ts:6
↓ 4 callers
Method
isEmpty
()
src/model/price-scale.ts:464
↓ 4 callers
Method
leftPriceScale
()
src/model/pane.ts:258
↓ 4 callers
Function
mergeMinMax
(first: MinMax | null, second: MinMax | null)
src/model/plot-list.ts:273
↓ 4 callers
Method
modeChanged
()
src/model/price-scale.ts:409
↓ 4 callers
Function
multipleBarData
( groups: number, numberPoints: number, shuffleLimit = 0 )
plugin-examples/src/sample-data.ts:136
↓ 4 callers
Function
pageTimeout
(page: Page, delay: number)
tests/e2e/helpers/page-timeout.ts:4
↓ 4 callers
Method
paneForSource
(source: IPriceDataSource | IPrimitiveHitTestSource)
src/model/chart-model.ts:992
↓ 4 callers
Method
paneViews
(pane: Pane)
src/model/idata-source.ts:49
↓ 4 callers
Method
priceScale
* Returns the price scale with the given id. * * @param priceScaleId - ID of the price scale to find * @throws If the price scale with the given
src/api/ipane-api.ts:77
↓ 4 callers
Method
priceScalesOptionsChanged
()
src/model/chart-model.ts:462
↓ 4 callers
Function
randomNumber
(min: number, max: number)
plugin-examples/src/sample-data.ts:61
↓ 4 callers
Function
randomNumber
(min: number, max: number)
indicator-examples/src/sample-data.ts:67
↓ 4 callers
Function
randomNumber
(min, max)
website/tutorials/demos/moving-average.js:37
↓ 4 callers
Function
randomNumber
(min, max)
website/tutorials/demos/infinite-history.js:37
↓ 4 callers
Method
renderer
* This method returns a renderer - special object to draw data * * @returns an renderer object to be used for drawing, or `null` if we have nothin
src/model/ipane-primitive.ts:55
↓ 4 callers
Method
requestUpdate
()
src/plugins/series-markers/primitive.ts:63
↓ 4 callers
Method
rightPriceAxisWidget
()
src/gui/pane-widget.ts:527
↓ 4 callers
Method
rightPriceScale
()
src/model/pane.ts:262
↓ 4 callers
Function
run
(cmd)
scripts/githooks/pre-commit/lint.js:33
↓ 4 callers
Function
runTests
( testFiles: string[], filesToServe: FileToServe[], timeoutLimit?: number )
tests/e2e/runner.ts:18
↓ 4 callers
Method
scrollToRealTime
* Restores default scroll position of the chart. This process is always animated.
src/api/itime-scale-api.ts:38
↓ 4 callers
Method
setPreserveEmptyPane
* Sets whether to preserve the empty pane * * @param preserve - Whether to preserve the empty pane
src/api/ipane-api.ts:84
↓ 4 callers
Method
setRenderers
(renderers: readonly IPaneRenderer[])
src/renderers/composite-renderer.ts:8
↓ 4 callers
Method
setSize
(newSize: Size)
src/gui/pane-widget.ts:417
↓ 4 callers
Method
setTimeScaleAnimation
(animation: ITimeScaleAnimation)
src/model/chart-model.ts:483
↓ 4 callers
Function
shiftTimeScale
({ from, to })
tests/e2e/graphics/test-cases/time-scale/add-data-to-right-two-series.js:57
↓ 4 callers
Function
shiftTimeScale
({ from, to })
tests/e2e/graphics/test-cases/time-scale/add-data-to-left.js:47
↓ 4 callers
Function
shiftTimeScale
({ from, to })
tests/e2e/graphics/test-cases/time-scale/add-data-to-left-two-series.js:57
↓ 4 callers
Function
shiftTimeScale
({ from, to })
tests/e2e/graphics/test-cases/time-scale/add-data-to-right.js:47
↓ 4 callers
Method
strictRange
()
src/model/time-scale-visible-range.ts:11
↓ 4 callers
Method
swapPanes
* swap the position of two panes. * * @param first - the first index * @param second - the second index
src/api/ichart-api.ts:347
↓ 4 callers
Function
text
()
src/views/price-axis/price-axis-view.ts:52
↓ 4 callers
Function
toIndexedTo100
(value: number, baseValue: number)
src/model/price-scale-conversions.ts:41
↓ 4 callers
Function
toLog
(price: number, logFormula: LogFormula)
src/model/price-scale-conversions.ts:52
↓ 4 callers
Method
updateSource
(source: IPriceDataSource)
src/model/chart-model.ts:441
↓ 4 callers
Function
whiskerDataSection
( startDate: number, basePoint: number )
plugin-examples/src/plugins/box-whisker-series/sample-data.ts:45
↓ 4 callers
Function
whiskerDataSection
(startDate, basePoint)
tests/e2e/interactions/test-cases/plugins/custom-series-mouse-params.js:13
↓ 4 callers
Function
whiskerDataSection
(startDate, basePoint)
tests/e2e/coverage/test-cases/plugins/custom-series-conflation.js:13
↓ 4 callers
Function
whiskerDataSection
(startDate, basePoint)
tests/e2e/coverage/test-cases/plugins/custom-series.js:13
↓ 4 callers
Function
whiskerDataSection
(startDate, basePoint)
tests/e2e/graphics/test-cases/plugins/custom-series.js:13
← previous
next →
301–400 of 4,839, ranked by callers