XChart icon indicating copy to clipboard operation
XChart copied to clipboard

XChart is a light-weight Java library for plotting data.

Results 188 XChart issues
Sort by recently updated
recently updated
newest added

![image](https://github.com/knowm/XChart/assets/137610642/3a4ce68f-39c8-48ce-8ea0-dda27b1c8692) The below code assumes https://github.com/knowm/XChart/blob/69db855f972483edd8d4532ddcf8d41b834d38f7/xchart/src/main/java/org/knowm/xchart/internal/chartpart/PlotContent_OHLC.java#L268-L269 Please review this code, I think even if height is zero of the rectangle it should display a line, which means somehow it has...

Improvement

When creating a CategoryChart with bar styling and visible labels, the label of the last bar in the series is not visible. This is a new bug introduced in the...

Bug

This file is produced by XChart/OpenHAB. It is 45kb. If I convert it to AVIF format, then the new size is 10kb. Please consider extending the software to support export...

Feature Request

After a `chart.getSeriesMap().clear();`, NoSuchElementException is thrown when attempting to draw the component: ``` java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:758) at java.base/java.util.LinkedHashMap$LinkedValueIterator.next(LinkedHashMap.java:783) at org.knowm.xchart.internal.chartpart.Axis.getAxisTickCalculator(Axis.java:442) at org.knowm.xchart.internal.chartpart.Axis.getXAxisHeightHint(Axis.java:287) at org.knowm.xchart.internal.chartpart.Axis.preparePaint(Axis.java:155) at org.knowm.xchart.internal.chartpart.AxisPair.paint(AxisPair.java:123) at org.knowm.xchart.CategoryChart.paint(CategoryChart.java:311) at org.knowm.xchart.XChartPanel.paintComponent(XChartPanel.java:168)...

Bug

So as I was programming with XChart implementing an `OHLCChart`, I wanted to have a zoom in and out feature since the data set that I was entering into `.addSeries()`...

Feature Request

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,...

Improvement

- The project claims compatibility with Java 8. - Yet our only CI in PRs executes against Java 11: https://github.com/knowm/XChart/blob/develop/.github/workflows/maven_on_pull_request.yml#L20 Thus we risk bringing in something which won't work with...

I noticed that the `addSeries()` method takes in Java's Data class. Even though Java's Date class may suffice, there are new classes from Java 8+ that could be implemented to...

Improvement

Where is 'setChartTitleFontColor' method ?

Hi, I am using `XChartPanel` to display a chart using its `paint()` method. This panel is put in a frame. However, when the frame width becomes too small (for instance...

Bug