Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

better tick spacing control for Y axis group

Open
#798 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start by locating setYAxisTickMarkSpacingHint() and the code that calculates tick marks for Y-axis groups. Add a per-axis-group spacing in the axis group's units while preserving pixel spacing as the minimum constraint when the chart is too small. Done means both spacing controls interact as described for grouped Y axes.

Written by the indexing model from the issue text.

Description

Feature Request

Hi,
in addition to setYAxisTickMarkSpacingHint() which defines a tick spacing in pixel, it would be great to have a tick spacing for each axis group in the same unit as the axis group min and max.

The idea is that the tick spacing in pixel would define the minimum possible tick spacing to display and would take precedence over the tick spacing in the axis unit, in case the chart window height is too small.

Dominant language
Java
Stars
1.6k
Forks
398
Avg merge
6d 15h
Merged PRs (30d)
4

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.