Customizing Tick Label Formatting by Zoom Level does not seem to be working
未关闭
还没有人认领这个 Issue。
- 主要语言
- F#
- 星标
- 860
- 派生
- 99
- 平均合并
- 22 分钟
- 30 天内合并 PR
- 1
描述
open Plotly.NET
open Plotly.NET.LayoutObjects
let data =
CsvFile.Load("https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv")
let y = data.Rows |> Seq.map (fun row -> row.GetColumn("AAPL.Close"))
let x = data.Rows |> Seq.map (fun row -> row.GetColumn("Date"))
let tickFormatStops = [
TickFormatStop.init(DTickRange=[("nothing","1000")],Value="%H:%M:%S.%L ms")
TickFormatStop.init(DTickRange=[("1000","60000")],Value="%H:%M:%S s")
TickFormatStop.init(DTickRange=[("60000", "3600000")],Value="%H:%M m")
TickFormatStop.init(DTickRange=[("3600000", "86400000")],Value="%H:%M h")
TickFormatStop.init(DTickRange=[("86400000", "604800000")],Value="%e. %b d")
TickFormatStop.init(DTickRange=[("604800000", "M1")],Value="%e. %b w")
TickFormatStop.init(DTickRange=[("M1", "M12")],Value="%b %y M")
TickFormatStop.init(DTickRange=[("M12", "nothing")],Value="%Y Y")
]
Chart.Line(x=x,y=y)
|> Chart.withXAxisRangeSlider(RangeSlider.init(Visible=true))
|> Chart.withXAxis(LinearAxis.init(TickFormatStops=tickFormatStops))

TickFormatStop Label Format is not considered
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从提供的 F# 复现开始,重点检查 Chart.withXAxis 和带有 TickFormatStops 的 LinearAxis.init,并验证其在不同缩放级别下的行为。当图表缩放时应用了所配置的 TickFormatStop 标签格式,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 领域
- data-visualization
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100