Page 1 of 1

chart in real time

Posted: Wed Feb 25, 2015 3:09 pm
by 15354003
Can I with Steeama create dynamic chart per time period ? Example any speed of something in real time
Dmitry

Re: chart in real time

Posted: Fri Feb 27, 2015 9:21 am
by yeray
Hello Dimitry,

Having a series created on a chart, in this case tChart1, this code seems to work fine for me in a Swing application:

Code: Select all

    private void setTimer() {
        ActionListener taskPerformer = new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                tChart1.getSeries(0).fillSampleValues();
            }
        };

        new javax.swing.Timer(100, taskPerformer).start();
    }
If you still find problems with it, could you please arrange a simple example project we can run as-is to reproduce the situation you are experiencing?

Re: chart in real time

Posted: Fri Oct 16, 2015 12:46 pm
by 15354003
Yeray, help me realize classic speed chart
1. chart have to move left to right
2. datas must classes fifo

Dmitry

Re: chart in real time

Posted: Fri Oct 16, 2015 3:53 pm
by yeray
Hello Dimitry,

Take a look at the RealTime demo in the Swing Features Demo:
realtime.png
realtime.png (207.8 KiB) Viewed 3038 times

Re: chart in real time

Posted: Sat Oct 17, 2015 8:26 am
by 15354003
thank you
be sure to look
although I have already realized myself