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

X-Axis Line not visible

Open
#1,024 1 comment 0 reactions 0 assignees View on GitHub

@timmolter is already working on this.

Since Aug 8, 2026.

  • #1025 by @timmolter — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java

Research direction

Start by reproducing the chart with the shown chart.getStyler() calls on XChart 3.8.8 and 4.0.4, then compare the axis rendering and layout behavior between versions. Trace the X-axis line positioning from the styling configuration; done means the line is visible with the 4.0.4 setup as it was in 3.8.8.

Written by the indexing model from the issue text.

Description

Describe the bug
After the upgrade from 3.8.8 to 4.0.4 the X-Axis Line is moved up and therefore it is behind the chart and invisible.

To Reproduce

chart.getStyler()
	.setPlotGridLinesColor(ChartColor.WHITE.getColor());

chart.getStyler()
	.setLocale(locale)
	.setChartTitleVisible(true)
	.setPlotBorderVisible(false)
	.setLegendBorderColor(null)
	.setPlotBackgroundColor(ChartColor.LIGHT_GREY.getColor())
	.setChartBackgroundColor(ChartColor.WHITE.getColor())
	.setLegendPadding(5)
	.setLegendPosition(LegendPosition.OutsideS)
	.setLegendLayout(LegendLayout.Horizontal);

Screenshots
With version 3.8.8:

Image

With version 4.0.4:

Image

Expected behavior
The X-Axis Line is visible as it was with version 3.8.8

Dominant language
Java
Stars
1.6k
Forks
398
PR merge metrics
No merged PRs in 30d

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.