Annotation for Date axis

Open
#715 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
java

Research direction

Start by tracing XYChart.addSeries() and the Annotation* constructors, then inspect how Date values are converted for the Date axis. Reproduce the reported mismatch with a Date-based chart and determine how annotation positions are calculated. Done means annotations align with the corresponding dates and the behavior is covered by a test or example.

Written by the indexing model from the issue text.

Description

Bug

XYChart.addSeries() accepts a list of java.util.Date, but Annotation* constructor only accepts a double. I tried to convert Date to millis, but annotation is always rendered before the actual date. There's nothing similar in tests or examples, so could someone please tell me what is the proper way to calc annotation position for the Date axis type?

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knowm/XChart

All issues in knowm/XChart

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.