Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Improve OHLCChart AnnotationLine and AnnotationText

Aperta
#768 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Inizia individuando le API OHLCChart, AnnotationLine e AnnotationText, quindi confronta il loro comportamento con i metodi min/max esistenti di LineChart. L’ambito richiesto include accessor degli estremi per OHLCChart, dimensioni del grafico basate su percentuali e il posizionamento di AnnotationText vicino a una AnnotationLine; i criteri di completamento dovrebbero essere chiariti e testati per ogni parte.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Improvement

I was trying to get the min and max values from my list and display those values as an AnnotationLine for my OHLCChart. Especially useful when plotting Fibonacci Retracements. However, I found out that Line Charts have getXMax(), getXMin(), getYMax(), getYMin() and not OHLCCharts even though OHLCCharts display the highs and lows of each candlestick. Intuitively, it would make sense that OHLCCharts can get a data's highest and lowest X and Y values but unfortunately it is not the case at the moment.

Additionally, chart.getHeight() and chart.getWidth() could get a double parameter where it gets a percentage of the chart height and width. Example: AnnotationLine lineY = new AnnotationLine(chart.getHeight(0.33), false, true); where 0.33 is 33% of the chart height so that the AnnotationLine can be placed at a position of 1/3 the chart height.

I also noticed that there is no method call that enables AnnotationText to be set at or near AnnotationLine. Instead a programmer would have to manually set the position of AnnotationText near a AnnotationLine if he or she does not use getXMax(), getXMin(), getYMax(), or getYMin(). Maybe a method call such as AnnotationText lineYText = new AnnotationText("FirstY", 0.0, AnnotationTextAlignment.AtAnnotationLineY, false); could help.

Lingua principale
Java
Stelle
1.6k
Fork
398
Merge medio
6g 15h
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di knowm/XChart

Tutte le issue di knowm/XChart

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.