Questions tagged [knowm-xchart]

XChart by Knowm (previously Xeiam) is a light-weight Java library for plotting data. It is designed to go from data to chart in the least amount of time possible and to take the guess-work out of customizing the chart style.

More XChart information is available on the web:

Regarding Knowm / Xeiam history, see the NOTICE file in XChart's git repository.

12 questions
3
votes
2 answers

Java save XChart as a PDF

Using XChart I can make nice graphs. When I make the graph, I can right-click it, and an option to "save as" comes up. Then, I can save the image in a specified format, to a specified directory by clicking around. How could I write Java code that…
ineedahero
  • 488
  • 2
  • 7
  • 22
3
votes
0 answers

How do you add a XChart PieChart to an existing Java GUI?

Recently I asked a question similar to this but didn't give enough info and my code was too long for a code review. I have written a new file with the same bare bones as my previous post. Here I'm reaching the same issues once again. When I attempt…
3
votes
2 answers

How to make limits on the Y axis be the same using XChart?

I am trying to plot a series of functions that are similar. The domain is [0,1] and the range always in say [-3,3]. I want the limits on the Y axis to be the same for each graph. Trying to set the series y min and y max does not seem to work. Is…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
2
votes
1 answer

maven can't get dependency from transitive repository (sometimes)

I have following problem which sounds pretty crazy. I have a project A, which uses Lib B which uses Lib C. Lib C isn't in central. Lib B has a parent which defines a repository in which lib C can be found. Depending on mvn version and maybe some…
Leon
  • 1,141
  • 1
  • 10
  • 25
1
vote
1 answer

How to draw three lines with three different colours in a line chart using xChart Java

I'm using xChart and I would like to draw three different lines, each one with a different color on the same line chart. Up 'til now all I could do is draw them separately and it's not good at all :/ Tried using addSeries() and setting the line…
1
vote
0 answers

Java XChart points text labels

I am trying to add text labels to data points in xChart. But I have no any ideas how to add additional information. Series sc = chrGraph.addSeries("Scale", z, y); Here is the fragment of code of series data. z, y - arrays of double. I have a…
1
vote
1 answer

Java - Xeiam's XChart Marker With Values

I've been trying to figure out if it is possible to put the exact value for each Bar/Line Marker. Current Result : Desired Result :
Michael 'Maik' Ardan
  • 4,213
  • 9
  • 37
  • 60
0
votes
0 answers

Display problem when adding Swing node in JavaFX application

I have a JavaFX application for plotting a heatmap. The app is developed with Oracle's JDK 8 on a Windows 10 machine. I'm using xchart-3.8.0.jar library (https://knowm.org/downloads/xchart/xchart-3.8.0.zip) for plotting the data through a swing…
0
votes
0 answers

Empty PDF using XChart ChartPie as SVG ressource with PDFBoxGraphics2D and Salamander

I've been trying to compose a pie chart using XChart then vectorising it to SVG format to use it in a PDF built with PDFBox. To do that, I use: XChart for the pie chart building and vectorising it ; SVGSalamender for the Graphics2D building based…
0
votes
1 answer

Plot org.knowm.xchart.XYChart in same working JFrame

I want to plot org.knowm.xchart.XYChart data in same working JFrame but nothing happens in code below: final XYChart chart = new XYChartBuilder() .height(jPanel1.getHeight()) .width(jPanel1.getWidth()) …
user1801745
  • 391
  • 2
  • 18
0
votes
0 answers

xchart java swing not drawing data correctly when using updateOHLCSeries

Hi I have a weird issue with xChat lib(org.knowm.xchart) in java swing. I am able to create a chart(Candle) when I first time add data to it, but when I add data to it say 5 sec after it is not drawing the candles. In Init i used…
user614946
  • 599
  • 5
  • 10
  • 27
0
votes
1 answer

2d histogram java or pipe output from pig to another script

I need to create a 2d histogram using pig. I have created a standard histogram already using a UDF in java and xchart by xeiam (http://xeiam.com/xchart/). However I cannot find any java library for 2d histogram (I have checked probably about 20…
mrlarssen
  • 325
  • 8
  • 19