chart in real time

TeeChart for Java (NetBeans, Eclipse, Android Studio, etc)
Post Reply
Dmitry
Newbie
Newbie
Posts: 54
Joined: Mon Jul 27, 2009 12:00 am
Contact:

chart in real time

Post by Dmitry » Wed Feb 25, 2015 3:09 pm

Can I with Steeama create dynamic chart per time period ? Example any speed of something in real time
Dmitry

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: chart in real time

Post by Yeray » Fri Feb 27, 2015 9:21 am

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?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Dmitry
Newbie
Newbie
Posts: 54
Joined: Mon Jul 27, 2009 12:00 am
Contact:

Re: chart in real time

Post by Dmitry » Fri Oct 16, 2015 12:46 pm

Yeray, help me realize classic speed chart
1. chart have to move left to right
2. datas must classes fifo

Dmitry

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: chart in real time

Post by Yeray » Fri Oct 16, 2015 3:53 pm

Hello Dimitry,

Take a look at the RealTime demo in the Swing Features Demo:
realtime.png
realtime.png (207.8 KiB) Viewed 47733 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Dmitry
Newbie
Newbie
Posts: 54
Joined: Mon Jul 27, 2009 12:00 am
Contact:

Re: chart in real time

Post by Dmitry » Sat Oct 17, 2015 8:26 am

thank you
be sure to look
although I have already realized myself

Post Reply