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