Customizing Tick Label Formatting by Zoom Level does not seem to be working
Open
Nobody has claimed this yet.
- Dominant language
- F#
- Stars
- 860
- Forks
- 99
- Avg merge
- 22m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided F# reproduction, especially Chart.withXAxis and LinearAxis.init with TickFormatStops, and verify the behavior across zoom levels. Done means the configured TickFormatStop label formats are applied as the chart is zoomed.
Written by the indexing model from the issue text.
Assessment
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100