问题描述
如题: dygraphs 绘制的时序图中悬浮提示的内容相互重叠
复现代吗
quantmod::getSymbols(
Symbols = c(
"PDD" # 拼多多
),
auto.assign = TRUE, src = "yahoo"
)
library(dygraphs)
dygraph(PDD['2018-07-26/2024-04-03', "PDD.Adjusted"], main = "拼多多") |>
dyRangeSelector(dateWindow = c("2022-01-01", "2024-04-03")) |>
dyAxis("y", label = "股价(美元)") |>
dySeries(label = "PDD") |>
dyLegend(width = 200, show = "always") |>
dyHighlight(highlightSeriesOpts = list(strokeWidth = 2)) |>
dyOptions(includeZero = TRUE, fillGraph = TRUE, drawGrid = FALSE, gridLineColor = "lightblue")
环境信息
R version 4.3.3 (2024-02-29)
Platform: x86_64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.4.1, RStudio 2023.12.1.402
Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
Package version:
dygraphs_1.1.1.6 quantmod_0.4.26