Skip to content
Main Navigation 指南
图表API
实例API
Pro预览定制赞助
9.x 文档
8.x 文档

🇨🇳 简体中文

🇬🇧 English

🇨🇳 简体中文

🇬🇧 English

主题

Sidebar Navigation

getDom

getSize

setStyles

getStyles

setFormatter

getFormatter

setLocale

getLocale

setTimezone

getTimezone

setThousandsSeparator

getThousandsSeparator

setDecimalFold

getDecimalFold

setOffsetRightDistance

getOffsetRightDistance

setMaxOffsetLeftDistance

setMaxOffsetRightDistance

setLeftMinVisibleBarCount

setRightMinVisibleBarCount

setBarSpace

getBarSpace

setSymbol

getSymbol

setPeriod

getPeriod

setDataLoader

resetData

getDataList

getVisibleRange

createIndicator

overrideIndicator

getIndicators

removeIndicator

createOverlay

overrideOverlay

getOverlays

removeOverlay

setPaneOptions

getPaneOptions

setZoomEnabled

isZoomEnabled

setScrollEnabled

isScrollEnabled

scrollByDistance

scrollToRealTime

scrollToDataIndex

scrollToTimestamp

zoomAtCoordinate

zoomAtDataIndex

zoomAtTimestamp

convertToPixel

convertFromPixel

executeAction

subscribeAction

unsubscribeAction

getConvertPictureUrl

resize

页面导航

zoomAtDataIndex(scale, dataIndex, animationDuration?) ​

zoomAtDataIndex 在指定数据索引位置缩放。

参考 ​

typescript
(
  scale: number,
  dataIndex: number, 
  animationDuration?: number
) => void

参数 ​

  • scale 缩放比例
  • dataIndex 数据索引。
  • animationDuration 动画持续时间,如果小于等于0,则无动画。

返回值 ​

zoomAtCoordinate 返回 undefined 。

用法 ​

基本用法 ​

在 GitHub 上编辑此页面

最后更新于:

Pager
上一篇zoomAtCoordinate
下一篇zoomAtTimestamp

Released under the Apache License V2.

Copyright © 2018-2025 liihuu