Improve OHLCChart AnnotationLine and AnnotationText
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- java
- Domain
- data-visualization
Research direction
Start by locating the OHLCChart, AnnotationLine, and AnnotationText APIs, then compare their behavior with the existing LineChart min/max methods. The requested scope includes OHLCChart extrema accessors, percentage-based chart dimensions, and positioning AnnotationText near an AnnotationLine; completion criteria would need to be clarified and tested for each part.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 400
- Avg merge
- 3d 9h
- Merged PRs (30d)
- 7
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from knowm/XChart
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 4 days
-
Difficulty 3/5 1-2 days Newbie friendliness 57/100
Maintainers usually reply within 4 days
-
Difficulty 3/5 1-2 days Newbie friendliness 67/100
Maintainers usually reply within 4 days
-
Cleanup: generate axis ticks in-range instead of pruning after the fact (follow-up to #634)Possibly taken @Sinkleberg claimed this 20 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Maintainers usually reply within 4 days
-
`CategoryChart.addSeries` could support additional call signature for interoperability with ScalaPossibly taken @Sinkleberg claimed this 20 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Maintainers usually reply within 4 days
Similar issues
-
documentation good first issue help wanted
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 2 days
-
bug key bindings
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Android Bug Core Drape
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
organicmaps/organicmaps#14449 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
openhab/openhab-addons#22512 ·
Maintainers usually reply within 1 day