Customizing Tick Label Formatting by Zoom Level does not seem to be working
オープン
まだ誰も着手していません。
- 主要言語
- F#
- スター
- 860
- フォーク
- 99
- 平均マージ
- 22分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
提供された F# の再現コードから始め、特に Chart.withXAxis と TickFormatStops を指定した LinearAxis.init を確認し、ズームレベルごとの動作を検証します。チャートをズームしたときに、設定した TickFormatStop のラベル形式が適用されれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 領域
- data-visualization
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100