Customizing Tick Label Formatting by Zoom Level does not seem to be working
Ouverte
Personne n'a encore pris cette issue.
- Langage dominant
- F#
- Étoiles
- 860
- Forks
- 99
- Merge moyen
- 22 min
- PR mergées (30 j)
- 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
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par la reproduction F# fournie, en particulier Chart.withXAxis et LinearAxis.init avec TickFormatStops, et vérifiez le comportement à différents niveaux de zoom. La tâche est considérée comme terminée lorsque les formats d’étiquette TickFormatStop configurés sont appliqués pendant le zoom du graphique.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Domaine
- data-visualization
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100