I am reading data from serial port continually I want to show it in a graph that should shows continuous readings (Bar ,pie,Line any graph).
any Idea will be appreciated.
You are probably looking for some sort of real-time charting library. JFreeChart is pretty popular and is able to do real-time charts as well.
If you have the option of using the Netbeans Platfrom take a look at this post which explains how to use the real-time charting API that's present in VisualVM.
Related
I am able to retrieve data from my Cloud Firestore database but I am just wondering if there is anyway to display this data in a variety of forms. i.e a bar chart or in a pie chart for example?
Yes it is, actually there are a few different graphing libraries that are available for Android.
For one of my apps, I'm currently live-plotting sensor data using Android GraphView. It is quite customizable and it runs nice and smoothly. The video on the site looks basic, but you can change it the way it looks like to fit your design.
There is also another alternative named MPAndroidChart. It looks very good and is quite customizable, does also support live graphing. I've tested that and I recommend it. It has good documentation.
I want to plug in some realtime charts in my Vaadin application. I searched through the Vaadin sampler and addons and I was not able to find any. Are there any addons that are available that can provide real time charting (something like a continuous line graph, a counter)?
Vaadin Charts
Vaadin Charts is a very nice add-on to do just that, including live updating. Version 2 arrived 2014-12.
There is a free 30-day trial but after that you have to buy a license. If you're looking for something completely free, I'm afraid you have to do the integration yourself and then you could probably use most javascript charting libraries.
See this live demo of a line chart updating each second with random data. No complicated tricks involved; simply use the new Push features in Vaadin 7 to have any server-side updates to the chart data automatically pushed to the client-side.
For more info, see The Book Of Vaadin.
I am trying to find a chart and plotting api that can be used in GWT using java, not javascript. The only problem I am having is the ones I have found require an internet connection which where this code will go cannot have an internet connection. Does any one know of such an API? Here are that ones that I found, but again can't use.
https://code.google.com/p/charts4j I know this one requires a connection.
http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingStarted
Not 100% sure on this one. If anyone has used it and can let me know if it requires a connection let me know. Also if anyone know how to get java swing to work in GWT that would be awesome.
Thank you
I just finished a little presentation on that topic. In there, I'm taking a short and somewhat subjective look at:
clientsidegchart
gflot
dojox.charting
Ico (and other Raphael based libs)
GXT charts
Smart GWT HTML5 Charts
FusionCharts
amCharts JavaScript Charts
Google Chart Tools API
JFreeChart (and other server side libs)
Only the last two of them require an active internet connection.
Here's the link to a PDF snapshot of the presentation: https://docs.google.com/open?id=0B0oR9hvG2VjoRDZZR20zYjVLalU
Client-side GChart. All in your app - no loading visualizations from external servers.
This is another open source api for charts in GWT hosted on http://code.google.com/p/gwt-rcharts/ you may find it useful. The API works on SVG/VML specification. You may find it quite easy to implement and use. You may find the demo at http://gwt-rcharts.appspot.com/
I just had an idea for a cool website, but it would require an application that is fairly similar to the Google Maps interactive map. I was wondering what it was made in?
Is it a Java applet or a Flash application? Or something else?
Thanks a lot
Javascript. Lots and lots of javascript, with JSON for loading new data without refreshing the entire page.
If you'd like to know more, there's quite a community revolving around Greasemonkey that specialize in extending/reverse engineering the google maps codebase.
Another option for your mapping app: Program it it Java building off NASA's free WorldWind geospatial API. You could release it either as a standalone app, or as a JApplet that runs within browsers. The latter simplifies distribution and versioning.
Google API is Javascript. It is also available in Flash.
Bing map is using the same sytem and it is available in javascript or silverlight.
You may also be interested in openstreetmap (free alternative).
If you want to build a tile system from the ground, the easier is to use flash. You will avoid cross browser issues, and easely target large audiance. (I made one long time ago before gmap was out).
If your application require a map, you can use either Map API and build your application on top of it. Be aware that some kind of application and some uses require a licence fee and the entry ticket is quite high ($10k for gmap).
For the client side they are using the Google Closure Library, with a lot of extra javascript on top.
Rolling Thunder has had the flyby capability for many years. You load a gpx file then you can fly over or just slightly above group and can control the rate you fly and can pause and look around. It works on windows or the Mac OSX. You can find the Windows version at http://www.myuniportal.com/download.html Download the Map login version and then open a Map child window the select the foot button on the Map child window. You download a gpx file then press play and it will start at one end of the trail and fly over it.
I want to display graphs and charts generated from an Excel spreadsheet, on my Android device. As far as I can see, my choices are:
Export the number data from Excel, and graph it on the device using a package like AChartEngine.
Export XML data from Excel, and graph it on the PC (using some other graphing package?) or graph it on the device (using some other graphing package?)
Create the graphic interactively on a PC using Excel, and take a screen snaphot. Send that file to the device for display in an ImageView
arrange for the data to be a page on a web server, rather than in an Excel spreadsheet file. Read from the page from the server and graph on the device, as in step 1.
Are there other alternatives to consider?
Are there any approaches which could be shared on other platforms, too, like for iOS and RIM
Thanks for any suggestions - it seems like this should be a solved problem.
I looked into this a couple months back, and I found AChartEngine to be the easiest library to work with. Some benefits are it is open-source, it has a nice community, and it is actively maintained. It's free too, which is great considering that some native libraries such as Java Charts for Android cost something like $140! I definitely wouldn't suggest using Excel to generate and display an ImageView... definitely go with a native library if anything. (Some libraries such as AChartEngine allow you to dynamically resize/reposition the chart on the screen, which might be a nice option to have later on).
Other than AChartEngine, some other libraries you might consider:
ChartDroid
AndroidPlot