php: library for drawing this specific graph - php

I would like to ask you if you know any concrete library that is capable of drawing graph like:
so this is variation of something I would call "doube bipartitiate graph". Vertical lines just illustrate columns and i do not mean to draw a graph that look like sequence graph - just all nodes should lay somewhere on them. This picture illustrates what I mean:
The only thing we have found so far is js.graph but it seems like it is a lot of work to make it look like it. Also, google charts does not seem appropriate. Any ideas?

check this graph may be useful
Thanks

Related

Add windy.js on leaflet map as a layer

i want to add wind data on my leaflet map as a layer
wind data like this https://danwild.github.io/leaflet-velocity/
I've been working on something similar. I found a pretty good looking
and intuitive method being used to represent vector information. Have
a look at the following examples:
http://earth.nullschool.net/
http://hint.fm/wind/
http://air.nullschool.net/
http://googlemapsmania.blogspot.com/2014/07/the-growth-of-slippy-wind-map.html
In my case, I still need to find a suitable format for the wind/ocean
data I want to plot on my Leaflet map. It's certainly not a quick fix,
but man, it looks great!
Maybe this can help you too. I hope to be able to post a working
solution soon.
This plugin takes input data in form of speed in knots (nautical miles
(1.852 km) per hour) and direction in degrees. It then generates the
wind barbs and outputs an icon. This icon can easily be added to a
Leaflet marker.
You can download it here:
https://github.com/JoranBeaufort/Leaflet.windbarb And you can see a
live example here: http://www.geonet.ch/leaflet-windbarb/

Chart plotting algorithms?

I am looking to plot charts using the PHP image create, what kind of algorithms are used to transform my terrible chart:
Into something better like:
and
How can I make the lines of my chart smooth and pretty like the 2 charts above?
edit: I don't want to use any library, I am trying to do this myself.
Try this best think, I use these charts all the time
http://www.highcharts.com
For "smoothing the lines", you have to refer to external sources about antialiasing (or let PHP do this part, see manual)
Then, you need to have an idea how exactly your graph should look like:
axis (scaling, labeling, ...)
grid (with differend line width for major and minor segments?)
representation of data (points, straight lines, smooth lines [getting rather hard again here])
description
And I think each point could be a quite well suited coding exercise. But without more specific questions, I can't help you better.

Map polygon coordinates on image

For a client I need to create a map (= image) with different polygon markers on it. It's an image of a small area with houses on it. My client wants to edit this themselves, so there has to be a way to map the polygons (4+ points) in a sort off visual editor (Google like 'My Maps').
I've searched for a couple off days on Google and on here, but I can not find any answer if this is even possible.
So my #1 question is, is this even possible or should I tell the client that its impossible to do something like this?
If question #1 == possible: question #2 is:
Does someone have some code, any tutorial or documentation to get me started? Prefferably complient with Typo3, not a must, but I should be able to parse the coordinates to PHP to save in MySQL.
Thanks in advance,
Jeroen
I'll suggest 2 solutions to solve this:
If you're using templavoila, then you may create an FCE(Flexible
Content Element) and implement image-map via typoscript as given in this
link:
https://sankartypo3.wordpress.com/2012/06/28/typoscript-for-image-map/.
The rest need to be handled using javascript.
Use MW Imagemap extension: http://typo3.org/extensions/repository/view/mwimagemap
For image maps, the extension "imagemap_wizard" has proven very useful to me.
I am the programmer of MW Imagemap and I can tell you that MW Imagemap has definitely not migrated to imagemap_wizard.

Easy way to make a line graph from MySQL results in Android?

I need to make an activity that displays results from a MySQL query in a line graph. Does anyone know a tutorial for beginners or sample code I could look at to accomplish this? All of my results are going to be integers of 0-10 to keep things simple if that matters.
Thanks!
This may get you started if you want to create a line graph from scratch:
How to draw a line in android
It really depends how much of this work you want to do yourself. You could probably find an open source line graph library somewhere as well.

Getting information from Gmaps like grassland, street, water etc

I'm thinking about a project, where I need such informations as described in the title. Does the Google Maps API provide something like this, or does anyone know how to get these informations?
Project will be done in PHP, HTML and Javascript.
AFAIK Google doesn't provide this information via the API. The only thing I can think of is getting the image, and then detecting the colour. A map of colour hex values against point type might give you what you need.
However, this may well break the Terms and Conditions, depending on what you're doing.

Categories