Improve OHLCChart AnnotationLine and AnnotationText
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
- Ambito
- data-visualization
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
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di knowm/XChart
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
OHLC: first and last candles are clipped at the plot edgesForse già presa @timmolter l’ha presa 48 giorni fa. ApertaAesthetics
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
`CategoryChart.addSeries` could support additional call signature for interoperability with ScalaAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
-
AnnotationsAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
-
Aesthetics Feature Request
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Tutte le issue di knowm/XChart
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
C21 publishes `reactivemongo/core/SSL` as Java 23 bytecode — TLS connections fail on any JDK < 23Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ReactiveMongo/ReactiveMongo#1520 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
liquid-java/liquidjava#373 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
ga4gh/phenopacket-schema#465 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NationalSecurityAgency/ghidra#9748 ·
I maintainer di solito rispondono entro 1 giorno