Skip to content
Snippets Groups Projects
Commit d5736ec0 authored by Tim Molter's avatar Tim Molter
Browse files

update simple realtime

parent d476a52e
No related branches found
No related tags found
No related merge requests found
......@@ -107,8 +107,8 @@ To make it real-time, simply call `updateXYSeries` on the `XYChart` instance to
## Features
* [x] No required additional dependencies
* [x] ~179KB Jar
* [x] No *required* additional dependencies
* [x] ~182KB Jar
* [x] Line charts
* [x] Scatter charts
* [x] Area charts
......
etc/XChart_SimpleRealtime.gif

2.32 MiB | W: | H:

etc/XChart_SimpleRealtime.gif

1.48 MiB | W: | H:

etc/XChart_SimpleRealtime.gif
etc/XChart_SimpleRealtime.gif
etc/XChart_SimpleRealtime.gif
etc/XChart_SimpleRealtime.gif
  • 2-up
  • Swipe
  • Onion skin
......@@ -45,15 +45,8 @@ public class SimpleRealTime {
final double[][] data = getSineData(phase);
javax.swing.SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
chart.updateXYSeries("sine", data[0], data[1], null);
sw.repaintChart();
}
});
chart.updateXYSeries("sine", data[0], data[1], null);
sw.repaintChart();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment