this.chart.setScale 不能正常工作
private initializeScrollbar() { if (!this.scrollBar) { this.scrollBar = document.getElementById("xScrollbar") as HTMLInputElement; if (!this.scrollBar) { this.scrollBar = document.createElement("input") as HTMLInputElement; this.scrollBar.id = "xScrollbar"; this.scrollBar.type = "range"; this.scrollBar.min = 0; this.scrollBar.max = this.scrollWindowSize - 1; this.scrollBar.step = 1; this.scrollBar.value = 0; this.scrollBar.style.width = "100%"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.left = "0"; this.scrollBar.style.bottom = "0"; this.scrollBar.style.border = "0"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scrollBar.style.borderStyle = "solid"; this.scrollBar.style.borderRadius = "0"; this.scrollBar.style.height = "100%"; this.scrollBar.style.cursor = "pointer"; this.scrollBar.style.outline = "none"; this.scrollBar.style.outlineColor = "transparent"; this.scrollBar.style.outlineWidth = "0"; this.scrollBar.style.overflow = "hidden"; this.scrollBar.style.pointerEvents = "auto"; this.scrollBar.style.margin = "0"; this.scrollBar.style.padding = "0"; this.scrollBar.style.position = "absolute"; this.scrollBar.style.top = "0"; this.scrollBar.style.right = "0"; this.scrollBar.style.width = "100%"; this.scrollBar.style.zIndex = "10000"; this.scrollBar.style.backgroundColor = "transparent"; this.scrollBar.style.borderColor = "transparent"; this.scrollBar.style.borderWidth = "0"; this.scroll
内容来源: leeoniya/uPlot