comparison of flot versus google charts - flot

I am starting up a website that needs a lot of sophisticated multi line charts. I see two top candidates for the job
Flot
Google Charts
Does anyone have any recommendations or preferences on this decision?

Google charts: You will need to call out to google every time you need to plot.
Is it acceptable to do this from your website?
Control: Flot is the clear winner in this category, as you have a very high degree of control over plots. Also, Flot is pretty fast! I have used it personally, and once you get the hang of the API, it is great. Further, there are many 'plugins' that can be written (and some are available) for flot. I think this is a great feature.
Overall, I would vote for Flot.
Edit: Also look at http://www.highcharts.com/, a great charting library (if you can figure out the licensing).

There are lots of nice plugins for features like radar graphs (spider graphs), Gantt charts, cluster graphs, 3D effects, gradients effects and lots more in Flot.
Flot is also open source and under the MIT license, which gives you complete freedom in using it (even commercially) without having to apply a similar license.

What if Google discontinues their chart service? In case you were wondering, they are well within their rights to do so, and in a few months' notice at that: https://developers.google.com/chart/terms.
Plus, client-side charts will naturally be far better for dynamic charts, which is essentially the standard these days.

Related

Rendering Networkx graphs dynamically

I am developing an application to show students various different of algorithms in action on graphs.
In order to achieve the results I was working with networkx, but did not manage to find a good way to render the graph I am working on dyamically displaying colorcoded changes, such as the next node being considered.
I was looking into mathplotlib, but most of the functions handling interactive plotting seem pretty deprecated.
Do you know of any good alternative that, ideally might even be embedded into something like pyqt?
Thanks!

VTK alternatives

I apologize if the answer was already somewhere, searching the interwebs did not return me the answer(s) I was looking for.
Situation : I have a small graph (a set of Edges and Nodes that is) - Now I want to display it in an interactive manner, and I would like to manipulate the display styles and symbols that are used for edges and nodes, programetically.
Hence kgraphviewer wont work - i want to do it programetically as stated.
I noticed VTK, comes with a lot of built is graph drawing algorithms. But seems to be a really large one.
Question : What are some alternatives to VTK ? Graphviz is probably one, but I can not confirm that graphviz comes with all the graph drawing algorithms as VTK - any other possibly smaller options, with all the built in graphs?
Side note : Some systems uses a static drawign widget, i.e. once the drawing is displayed, in an widget that the system comes with, you can not interact with the drawing using your mouse. The GNU implementation of IDL, GDL, has this problem. I would Like to avoid this.
Yes, I agree with you regarding the VTK's consideration: it's a powerful toolkit but it is (maybe) too much "big", and it's not so easy to configure a working VTK environment.
I don't have a great experience in the field of graphs, but a search leads to this other StackOverflow post. I think that Prefuse, listed under the Java section, could be of some interest. C++ itself seems to have a lot of choices, listed in various answers, here. I hope that it will help.
I used Gephi public domain graph visualization software on Linux. It was a quick way to get a 3 D. Picture which can be modified with line thickness to show an edge weight - good for comm network work.

Real Time Candle stick chart using javafx (and no jfreechart )

I want to make a candlestick chart which reads stream of data and then plot it (so it will be plotting either as data comes or after certain period it will update the previous plot).
I do not want to use any third party software as Jfree chart want it to be build from javafx directly.
Any help will be highly appreciated.
Thank you
Edit :
Can anyone tell me how stage.show() works like which class which method it involke.
The Ensemble application includes a candlestick chart implementation for JavaFX.
Download the sample Ensemble (Java 7) source or the Ensemble (Java 8) source from Oracle.
Ensemble is Oracle BSD licensed, so you are free to use it as you wish.
In case it may help, I have extracted from Ensemble source code a minimal code for AdvCandleStickChart: https://gist.github.com/Nicolas56/e02b29431b820d7c8c218c804f0269b0
There are only two files: .java and .css, which form together a stand-alone application
I have tried the ensemble example myself and customized. It does not perform well over 1000 bars. At least when your moving the 1000 bars and figure that out. Which is a huge shock since I wrote the same thing in swing a while ago with stellar performance.
I would recommend rolling your own in fx.

What kind of tool can be use to produce this graph?

I am new at graphing tools for big data analysis. Though the following is not from big data, I was wondering what kind of tools are used to create this kind of complex graph:
http://www.bitmover.com/lmbench/mem_lat3.pdf
Associated with the paper http://www.bitmover.com/lmbench/lmbench-usenix.pdf
The article is made in LaTeX (particulary groff project), according to metadata in the chart's PDF, it's saved to PDF from Photoshop (so this lead ends here). Anyway, the TikZ or Asymptote (see gallery) are capable of drawing charts like this..
Looks a little bit like gnuplot, but it can be perfectly done by matplotlib. An example can be found at this page.
Sorry, I never noticed this question before. Larry borrowed that graphic from me and it was created with Excel.
I was considering adding code to lmbench to create that plot automatically and Thorsten's suggestion of mplot3d sounds like a good place to start.

Colour blindness simulator

Like any responsible developer, I'd like to make sure that the sites I produce are accessible to the widest possible audience, and that includes the significant fraction of the population with some form of colour blindness.
There are many websites which offer to filter a URL you feed it, either by rendering a picture or by filtering all content. However, both approaches seem to fail when rendering even moderately complex layouts, so I'd be interested in finding a client-side approach.
The ideal solution would be a system filter over the whole screen that can be used to test any program. The next best thing would be a browser plugin.
I came across Color Oracle and thought it might help. Here is the short description:
Color Oracle is a colorblindness simulator for Windows, Mac and Linux. It takes the guesswork out of designing for color blindness by showing you in real time what people with common color vision impairments will see.
Color Oracle is great, but another option is KMag, which is part of KDE in Linux. It's ostensibly a screen magnifier, but can simulate protanopia, deuteranopia, tritanopia and achromatopsia.
It differs from Color Oracle by requiring an additional window in which to display the re-coloured image, but an advantage is that one can modify the underlying image at the same time as previewing the simulation.
Here is a screenshot showing the original figure on the left, and the KMag window on the right, simulating protanopia.
Here's a link to a website that simulates various kinds of color blindness:
http://www.vischeck.com/
They let you check URL's and Screenshots with three kinds of different color blindness types (URL checking is a bit dated though. Image-check works better).
I'd encourage everyone to check their applications btw. Seeing your own app with others eyes may be an eye opener (pun intended).
I know this is a quite old question, but I've recently found an interesting solution to transparently simulate color blindness.
When working with Linux, you can simulate color blindness using the Color Filter plugin for Compiz. It comes with profiles for deuteranopia and protonopia und changes the colors of the whole screen in real-time.
It's very nice because it works transparently in all applications (even within Youtube-Videos), but it will only work where Compiz is available, e.g. only under Linux.
Here's an article that has some guidelines for optimizing UI for color blind users:
Particletree ยป Be Kind to the Color Blind
It contains a link to another article with the kind of tools you were asking for:
10 colour contrast checking tools to improve the accessibility of your design | 456 Berea Street
A great paper that explains a conversion that preserves color differences is:
Detail Preserving Reproduction of color images for Monochromats and Dichromats.(PDF)
I haven't implemented the filter, but I plan to when I have some more free time.
I found Colour Simulations easy to use on Windows 10. This software can apply a color-blind filter to a part of the screen or the whole screen. And what's great is it allows me to interact with my PC normally as if it doesn't exist in fullscreen mode. It runs quite slow in my 4K screen using an integrated graphics card, though.

Resources