Questions tagged [jfreechart-fx]

The jfreechart-fx library allows JFreeChart to be used in JavaFX applications.

The jfreechart-fx library allows to be used in JavaFX applications. It uses fxgraphics2d to target a JavaFX Canvas for rendering. Examples may be found here and here.

17 questions
3
votes
1 answer

How do I properly add a MouseHandler to my JFreeChart-FX to drag the chart from left to right

I managed to create a Candlestick Chart using JFreeChart-FX and display it using the fxgraphics2d API. But I am pretty much confused on how to enable any interaction with my chart and need some help to this. I'd be very grateful for any help in the…
parrott
  • 368
  • 4
  • 12
3
votes
1 answer

Are jfreechart-fx 1.0.1 charts interactable with or just an image built and presented by fxgraphics2d?

I am currently trying to figure out, howjfreechart's splitting into swing(1.5) and JavaFX (1.0.1) affects the JavaFX part. As far as I (very limited knowledge on this topic) understand The jfree-fx uses fxgraphics2d to draw its original swing…
parrott
  • 368
  • 4
  • 12
2
votes
1 answer

JFreeChart-FX time series vertical tick labels overlap

When using jfreechart-fx to render a time series chart with vertical tick labels, the labels unexpectedly overlap the domain axis and sometimes change on resize. I can't reproduce this with Swing or pure Java2D, shown here. I'd welcome any…
trashgod
  • 203,806
  • 29
  • 246
  • 1,045
1
vote
1 answer

How would I change the axis labels when I change the values of the choice boxes

The below code plot a graph which values can be plotted by inputting values into a Spinner. I've added choice boxes next to these spinners, and I'd like it where I change the values of the choicebox so the axis labels change according to the choice…
1
vote
1 answer

How to disable zoom in a ChartViewer

I'm working with jfreechart-fx. I created a scroll panel and I have a ChartViewer (not a ChartPanel) inside of it. Inside the chart, I plot data using a CombinedDomainXYPlot. I add some data to the combined plot at runtime: XYPlot subplot; for (int…
Andrea
  • 13
  • 3
1
vote
1 answer

how to listen to CTL key in combination with ChartMouseListenerFX

I managed to get together a code that allows me to pick a point on a Jfreechart and select the corresponding point on a JavaFX TableView and select one or multiple points. However it's one or the other situation. What I would like is to be able to…
JobouJP
  • 33
  • 6
1
vote
0 answers

Order of series in JFreeChart's StackedXYAreaChart

In the example below, Eden is the series at index 0, Survivor at index 1 and Old at index 2. It the examle, Old is the top-most series in the chart, while Eden is at the bottom. What I would like to achieve is that Eden is the top-most series in…
Markus Weninger
  • 11,931
  • 7
  • 64
  • 137
0
votes
1 answer

Create a checkbox that adds a line of best fit to the graph when checked and removes the best fit line when unchecked in real time

I would like to create a checkbox that adds a line of best fit when checked and removes the line of best fit when unchecked in real-time, below I've created a button which adds a best fit line when the series is longer than 2 items I would like to…
0
votes
0 answers

How would I create a table displaying the x and y values of the Spinners?

I would like to create a table which is by the right side of the graph which shows 2 columns of what x and y values have been inputted into the xSpin and ySpin spinners. I have drawn a picture of where I would like the table to reside. I have tried…
0
votes
1 answer

Adding a x and y axis line in jfreechart/crosshairs

I would like to add y and x axis lines to my graph. I have tried by setting domain cross hairs by true, but it doesn't appear. Please could i have some help? when I run the program the graph comes up the x and y lines don't appear at x = 0 and y =…
0
votes
2 answers

Problem with resizing a canvas with FXGraphics2D and StreamingRenderer

I'm in the same situation as here : https://sourceforge.net/p/geotools/mailman/message/35977998/ I am working on a Maps Application using geotools (WMS + WFS for grids) and resizing my JavaFX Canvas works well when I am reducing the size of the…
0
votes
1 answer

I want to input values to be plotted on a scatter plot graph

I would like to create an application in Java I can use to plot points onto a scatterplot. I'm using the JFreeChart external library for this. I've tried creating a text.box to input the values, however it wont let me use the variable in different…
0
votes
0 answers

Show stock split in candle chart jfreechart

Currently I'm working on charts and want to achieve an output. I wanted to achieve two things. To display candle stick chart of stocks data. [done] To display the stock split log above or below the candle. [pending] I'm using JFreeChart SDK to…
0
votes
0 answers

jfreechart control OHLC time series range for dynamic display

Using: java 17 JavaFX 17 JFreeCharts 1.5.3 JFreeCharts FX 2.0.1 I would like to feed dynamic data to an OHLC plot with OHLCSeries I used the MaxItemCount but this is only good if all your time series has same dimensions I need to show some trading…
Gadi
  • 1,539
  • 22
  • 37
0
votes
1 answer

Jfreechart-fx: How to size subplots in a combined domain plot

I'm trying to implement a "subplot height resize button" for a combined domain plot in a char panel. So I have a controller like this one: package org.my.jfxtestplots; import java.io.IOException; import java.time.Instant; import…
Andrea
  • 13
  • 3
1
2