Skip to content
Advertisement

Tag: charts

Creating a XYChart on button click

The purpose of the program is to display chart on click of the button with given parameters. However displayChart uses invokeAndWait, which cannot be executed inside ActionListener which makes sense. What is the proper way to solve this issue? I am using swing with XChart library Answer You have to create the frame and its content panel by yourself, note

Second Line in an Apache-POI chart with seperate axis

Hi this code taken from the answer here is working as expected, but I want exactly the same Chart but in an Excel-Sheet So I modified the code like this to get an XLSX document, but the Chart isn’t the same Answer The problem is that for a Word (XWPF) chart, the data are stored in a Excel workbook which

Create stylish charts in Java eg with JFreeChart

What’s the best way to create great looking charts in Java? It looks like the main option for charting is JFreeChart, but unfortunately by default they come out looking quite plain. Compare a sample of JFreeChart: http://www.jfree.org/jfreechart/images/PriceVolumeDemo1.png with one of the Javascript charting libraries, eg http://www.highcharts.com/demo/spline-symbols/grid or http://people.iola.dk/olau/flot/examples/graph-types.html The javascript ones look nicer – they have smooth lines, nice font

Advertisement