MCPcopy
hub / github.com/klinecharts/KLineChart / setSymbol

Method setSymbol

src/Chart.ts:701–706  ·  view source on GitHub ↗
(symbol: PickPartial<SymbolInfo, 'pricePrecision' | 'volumePrecision'>)

Source from the content-addressed store, hash-verified

699 }
700
701 setSymbol (symbol: PickPartial<SymbolInfo, 'pricePrecision' | 'volumePrecision'>): void {
702 if (symbol !== this.getSymbol()) {
703 this._resetYAxisAutoCalcTickFlag()
704 this._chartStore.setSymbol(symbol)
705 }
706 }
707
708 getSymbol (): Nullable<SymbolInfo> {
709 return this._chartStore.getSymbol()

Callers 15

mountChartFunction · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45

Calls 2

getSymbolMethod · 0.95

Tested by

no test coverage detected