Search found 10 matches

by Nisbo
Mon Jan 08, 2018 10:46 am
Forum: JFreeChart
Topic: XYStepChart / XYDataset / TimeSeries
Replies: 4
Views: 5229

Re: XYStepChart / XYDataset / TimeSeries

It's because I want to emulate a "Live View" and time is ticking
by Nisbo
Tue Jan 02, 2018 8:39 am
Forum: JFreeChart
Topic: XYStepChart / XYDataset / TimeSeries
Replies: 4
Views: 5229

Re: XYStepChart / XYDataset / TimeSeries

I did a combination of both. - at the beginning in pull all the data in the requested time frame, - after this I implemented a method to send new data to the Chart Window - on the chart window I store the last status in an integer - on the chart window I have a timer to addorupdate the last value ev...
by Nisbo
Sat Dec 30, 2017 11:00 am
Forum: JFreeChart
Topic: XYStepChart / XYDataset / TimeSeries
Replies: 4
Views: 5229

XYStepChart / XYDataset / TimeSeries

Hello, I have a XYStepChart with XYDataset and TimeSeries and I want to show the Status of an item (0 or 1) in a fixed range before the current time. Sometimes the status does not change for maybe a minute. Curretly I created a Timer to always get the last status from a "database" and add this statu...
by Nisbo
Tue Aug 16, 2016 1:35 pm
Forum: JFreeChart
Topic: Bug in Y Axis if I use AutoRange for X axis
Replies: 9
Views: 12260

Re: Bug in Y Axis if I use AutoRange for X axis

Hi Martin, I see you are from Austria, I am from Germany, we are both able to speak German as Native Speaker ;) How ever, thank you very much If someone wants to have a look to the code TimeSeriesCollection dataset = new TimeSeriesCollection(); for(TimeSeries s : series){ dataset.addSeries(s); } fin...
by Nisbo
Tue Aug 16, 2016 12:10 pm
Forum: JFreeChart
Topic: Bug in Y Axis if I use AutoRange for X axis
Replies: 9
Views: 12260

Re: Bug in Y Axis if I use AutoRange for X axis

OK martin thx for your support, my solution for the moment is to change only the format NumberAxis axis = (NumberAxis)chart.getXYPlot().getRangeAxis(); axis.setNumberFormatOverride(new DecimalFormat("0.###")); this will put the plot in the middle with the correct value So if I have a value of 0 - th...
by Nisbo
Tue Aug 16, 2016 9:53 am
Forum: JFreeChart
Topic: Bug in Y Axis if I use AutoRange for X axis
Replies: 9
Views: 12260

Re: Bug in Y Axis if I use AutoRange for X axis

Hi Martin, thx 4 your reply and you are right, I missed the meaning of Autoplot Now I tried axisY.setFixedAutoRange(1); this removed the xxE1 Values but now the plot is on the top and only the half width of the plot is visible (see screenshot) http://img5.fotos-hochladen.net/uploads/screenshot2rh5oj...
by Nisbo
Tue Aug 16, 2016 8:22 am
Forum: JFreeChart
Topic: Bug in Y Axis if I use AutoRange for X axis
Replies: 9
Views: 12260

Re: Bug in Y Axis if I use AutoRange for X axis

Hi Martin, I can not set a fixed Autorange for the Y axis because I am getting my data dynamically from a MySQL database, sometimes I have a value of 20 °C and sometimes a value of 450 Watt so if I set the range fixed to 500 I will see the plot for the temperature (of course in a different chart) at...
by Nisbo
Mon Aug 15, 2016 12:30 pm
Forum: JFreeChart
Topic: Bug in Y Axis if I use AutoRange for X axis
Replies: 9
Views: 12260

Bug in Y Axis if I use AutoRange for X axis

Hi, if I use AutoRange and I have only 1 Value for the Y axis it will show 7,8E1 instead of 78 I can NOT use a fixed range final XYPlot plot = chart.getXYPlot(); ValueAxis axisX = plot.getDomainAxis(); axisX.setAutoRange(true); axisX.setFixedAutoRange(360000.0); http://img5.fotos-hochladen.net/uploa...
by Nisbo
Sun Aug 14, 2016 9:13 pm
Forum: JFreeChart
Topic: get series from a chart
Replies: 1
Views: 5199

Re: get series from a chart

I solved the problem create a new class: AvailableTimeSeries import java.util.ArrayList; import org.jfree.data.time.TimeSeries; public class AvailableTimeSeries { private String nameOfTheSet; private ArrayList<TimeSeries> timeSerie = new ArrayList<TimeSeries>(); public AvailableTimeSeries(String nam...
by Nisbo
Sun Aug 14, 2016 6:07 pm
Forum: JFreeChart
Topic: get series from a chart
Replies: 1
Views: 5199

get series from a chart

Hello from Germany 1st, I am new on Java I create dynamically several Charts in several JInternalFrame's (on a JDesktopPane) 1 Chart per JInternalFrame This works with a fixed time range and of course also if I put it into a SwingWorker but in this case its blinking / flashing due to the UI repaint ...