Search found 19 matches
- Tue Nov 05, 2019 9:25 pm
- Forum: JFreeChart
- Topic: JFreeChart EDT Issues?
- Replies: 2
- Views: 9028
Re: JFreeChart EDT Issues?
Hey there, I found the error. It seems that the 3d3 driver is buggy (geforce 1080 TI with latest drivers). Switching to opengl solved the problem. Are you by any chance the user trashgod on stackoverflow? This post (https://stackoverflow.com/questions/34316000/swing-ui-multiplying-panel-ghosting) fr...
- Wed Oct 30, 2019 3:25 pm
- Forum: JFreeChart
- Topic: JFreeChart EDT Issues?
- Replies: 2
- Views: 9028
JFreeChart EDT Issues?
Hey everyone, I have a problem with a swing application that uses live charts from jFreeChart. I am not sure if jFreeChart is the cause, to be honest, but I have looked everywhere else and did not find the problem so far. I am getting graphical glitches in my application, just like you would expect ...
- Thu Jan 10, 2019 10:42 pm
- Forum: JFreeChart
- Topic: Coordinates for XYShapeAnnotation?
- Replies: 3
- Views: 10328
Re: Coordinates for XYShapeAnnotation?
Thanks for your answer and the links. I really appreciate it. There is one thing I don't understand though. Shapes need int for x and y. But Epoch with milliseconds is long and too big for conversion to int (and y in my case is double, which would be the next problem). How can I use Shapes then? If ...
- Thu Jan 10, 2019 4:32 pm
- Forum: JFreeChart
- Topic: Coordinates for XYShapeAnnotation?
- Replies: 3
- Views: 10328
Coordinates for XYShapeAnnotation?
HI, I am trying to use XYShapeAnnotation to draw shapes in a candlestick chart, at coordinates of specific candles. But I got stuck at the coordinates that have to be given to a shape before it can be drawn. The DomainAxis consists of date objects. How can I translate those into java coordinates? th...
- Mon May 14, 2018 1:03 pm
- Forum: JFreeChart
- Topic: Getting data displayed by setting setRange()?
- Replies: 0
- Views: 5045
Getting data displayed by setting setRange()?
I have a CandlestickRenderer chart using OHLCSeries with a custom DateRange by using domainAxis.setRange(). So this means that only part of the data is displayed.
I would like to get only the data that is displayed for computation. How do I do that?
Thanks!
I would like to get only the data that is displayed for computation. How do I do that?
Thanks!
- Fri Apr 27, 2018 12:23 pm
- Forum: JFreeChart
- Topic: jfreechart changing the dataset and synchronize
- Replies: 1
- Views: 4850
jfreechart changing the dataset and synchronize
I am developing a swing application with jinternalframes, each of those containing a jfreechart chart. My problem is that all code for adding, removing data from a series is together in SwingUtilities.invokeLater(new Runnable() {...}); code. Since I add and remove a lot from the dataset, it's all be...
- Tue Nov 14, 2017 3:05 pm
- Forum: JFreeChart
- Topic: Getting chart and data area dimensions unreliable?
- Replies: 1
- Views: 4526
Re: Getting chart and data area dimensions unreliable?
Apparently chartPanel.setMaximumDrawWidth and chartPanel.setMaximumDrawHeight were set to their default of 1024x768 after which the chart would only stretch but not keep rendering. Setting chartPanel.setMaximumDrawWidth() and chartPanel.setMaximumDrawHeigh() to higher levels will push the rendering ...
- Tue Nov 14, 2017 2:37 pm
- Forum: JFreeChart
- Topic: Getting chart and data area dimensions unreliable?
- Replies: 1
- Views: 4526
Getting chart and data area dimensions unreliable?
Hey there, I`ve been trying to get the chart dimensions as described here: http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=28208 Basically I have a chartPanel inside a JFrame, using a CandlestickRenderer. I used Componentlistener to execute code each time I resize the window, to give me the Chart Di...
- Tue Oct 10, 2017 6:37 pm
- Forum: JFreeChart
- Topic: Two Windows, but only the second gets updated?
- Replies: 3
- Views: 9671
Re: Two Windows, but only the second gets updated?
Thanks for taking your time. I was baffled that it seemed to be like its the problem with jfreechart. However, I have now finally found out why I had the problem - the OHLCSeries was declared static, and therefore shared between all instances. So it was my error. Really happy about it actually even ...
- Mon Oct 09, 2017 7:22 pm
- Forum: JFreeChart
- Topic: Two Windows, but only the second gets updated?
- Replies: 3
- Views: 9671
Two Windows, but only the second gets updated?
Hey everybody, I am trying to have multiple windows using JFrame, each being updated as time goes on with more data(using OHLCSeries). The problem is: once I have more then one window (and more then one jfreechart object) open, and I try to update one of those objects with new data, only the last cr...
- Wed Aug 16, 2017 8:20 pm
- Forum: JFreeChart
- Topic: Number of visible DateAxis points?
- Replies: 1
- Views: 4389
Number of visible DateAxis points?
Let's say I have a DateAxis domainAxis. That dataset contains 10 days. I set a new range with domainAxis.setRange(), now containing less days. How can I find out how many data points / days are in that new Range?
Thanks!
Thanks!
- Wed Aug 16, 2017 7:51 pm
- Forum: JFreeChart
- Topic: Autoadjust vertial axis after zoom
- Replies: 1
- Views: 4732
Re: Autoadjust vertial axis after zoom
I was dead wrong, however now I`ve managed to get it working. This is the code to make the mouse zoom autoadjust to the Y (rangeAxis) axis: ChartPanel chartPanel = new ChartPanel(chart){ // makes the zoom from rightclick dropdown menu autoadjust the y axis @Override public void zoomInRange(double x,...
- Wed Aug 16, 2017 1:18 pm
- Forum: JFreeChart
- Topic: Autoadjust vertial axis after zoom
- Replies: 1
- Views: 4732
Autoadjust vertial axis after zoom
I`m trying to find out how to trigger the code that starts when doing rightclick-autoadjust-vertical axis (translated my me, might be called differently) after I have zoomed into the chart. Basically, after using mouse zoom, I want rightclick->autoadjust->vertical axis to be executed automatically. ...
- Wed Aug 16, 2017 12:03 pm
- Forum: JFreeChart
- Topic: Scrollable, autoadjustable financial chart
- Replies: 9
- Views: 16424
Re: Scrollable, autoadjustable financial chart
@paradoxoff Thank you so much for your time. I haven't had the chance to implement your suggestions until now. It works! Below the code snippet to make it work on candlestickdemo, insert right after ChartPanel chartPanel = new ChartPanel(chart); : chartPanel.addMouseMotionListener(new MouseMotionAda...
- Sat Jul 15, 2017 7:09 pm
- Forum: JFreeChart
- Topic: Scrollable, autoadjustable financial chart
- Replies: 9
- Views: 16424
Re: Scrollable, autoadjustable financial chart
setRangePannable(false) did have no effect on the Y axis range (The Y range goes from 15 to 70, which are the high/lows of the whole dataset, while the range should go from 15 to aproximately 40, which is the aprox. high/low of the part of the dataset that is visible (using setRange()) on the chart ...