I am using JFreeChart with JavaFX.
For the needs of my application I have to redraw the whole chart several times. At the first time, all chart functions (zooming, panning, etc.) perform pretty well. However, after several times of redrawing, these functionalities become very sluggish. Keep in mind that every time I redraw the chart, I create everything from scratch (ChartViewer, Chart, etc.), so I cannot find a good reason why this gradual slow down is happening.
My second problem is quite strange. When I try to use dashed lines in my TimeSeries chart, they appear as solid lines, or to be more precise, they appear as two lines, one dashed and one solid on top of the dashed one! When I save the plot as jpeg for example, dashed lines appear correctly! I guess there must be a problem with the ChartViewer (but I can't detect where!) since outside JavaFX, dashed lines work properly using the exact same code.
I have also used setDrawSeriesLineAsPath() with both TRUE and FALSE arguments without any change.
I would appreciate a lot any help or ideas on these two issues.
Last edited by SystemsEngineer
on Thu Mar 16, 2017 10:36 am, edited 1 time in total.