Mark pie charts on top of geoshape in Altair/Vega - altair

I love the recent developments to the Altair library and I was wondering if there was any advice for marking pie charts at different "latitudes" or "longitudes" of a geoshape. I have attached an image below showing a small example of what I'd like the rendered graphic to look similar to.
My understanding from the Altair/Vega documentation is that one can only mark symbols onto the marked geoshape. Would the best way forward be to create a new SVG for each of the slices of the pie chart and rotate them accordingly at each of the latitude/longitude coordinates? Any advice you can provide would be greatly appreciated! Alternatively, if there is another visualization library that is better suited for this task I would be happy to hear about it.

Related

How to render a polygon with CGAL?

I have my polygon read from a list of points on a text file, this works fine but I was wondering if there is a way to draw the Polygon read or at least the points. I couldn't find anything related on the documentation.
Is gnuplot the only solution? Hope you can help me.
You can use Geomview as mentioned in the documentation. But you will have to write the Polygon to OFF format, for which CGAL provides functions similar to write_off for many of its classes. You will have to open Geomview externally. Another option would be to write out a VTK file and visualize it with Paraview. This is what I use but you will have to write the code to convert from CGAL data structures to VTK data-structures.

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.

How do I connect two arcs with a line in this d3.js visual

I saw an infographic online that I wanted to use as a challenge to learn d3.js. The original infographic is here:
http://www.shah3d.com/wp-content/uploads/2012/11/IG-WWF-Dehahs.png
I've made a start here:
http://www.tips-for-excel.com/d3test/arc/arc%20test.html
You'll notice that the original has nice lines that link an arc from the bottom with an arc along the top. So far I can only think of painfully placing lots of circles to achieve this effect, hence the odd red circle currently in my visual. What would people's best methods be to replicate the original graphic? Which element would make this task easier? Arcs? Lines? I imagine I'll have to manipulate my data so that the lines go where they're meant to.
Happy to give more info if needed and thanks for taking time to read this.
There are a few existing diagrams to work off of from d3's galleries:
http://bl.ocks.org/4062006
http://bost.ocks.org/mike/uberdata/
Both use the length of the chord as the width of the stroke (initially), but you can tinker with that, for sure.
Graphically, you could use arcs, or full circles with a clip around it. As to the 'best' way to do it, that may come out of 'requirements' of how your graphic needs to behave (animation, relative arc placement, etc).
Personally, I'd go with path arcs.

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.

comparison of flot versus google charts

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.

Resources