real-time-charts | Real Time Market Trading Platform | Cryptocurrency library
kandi X-RAY | real-time-charts Summary
kandi X-RAY | real-time-charts Summary
Real Time Market Trading Platform
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of real-time-charts
real-time-charts Key Features
real-time-charts Examples and Code Snippets
Community Discussions
Trending Discussions on real-time-charts
QUESTION
I am in charge of creating a GUI in Java to monitor heart rates of multiple people over regions (modified for confidentiality reasons).
There are a total of 8 regions, and each region contains 8 people. These are indicated by a JTabbedPane, 1 tab for each region. I'm attempting to draw and create 8 real-time graphs using the XChart library. The data will be read from a text file and be passed as two double arrays. One of the arrays being time in milliseconds (x-axis) and the second array being the heart rate data for 1 person (y-axis). Each person will have their own individual graph within their corresponding regional tab.
This is similar to watching several graphs to monitor vitals in the hospital to get an overview of what this application is supposed to simulate.
I am currently using Model-View-Controller architecture.
TLDR; To break it down, I'm only attempting to add multiple real-time XYChart within a tab within a JPanel inside a JTabbedPane. But for the time being, just adding ONE real-time chart would be great.
View.java
...ANSWER
Answered 2017-Mar-08 at 09:10Okay, you need to take a big step back and think about what it is you want to achieve, you then need to figure out how you can make it work for one chart, if you can make it work for one chart, you should be able to scale it.
Start with a simple concept of a model. The model should abstract the data in such away that it doesn't matter if it's coming from a file, a web service, a database, serial port or some other means, the other parts of your solution shouldn't care, they should only care about the data been presented in a common manner.
Something like...
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install real-time-charts
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page