Multi-query MySQL Database SVG Graph

The same code from here was extended to make it possible to have up to 2 constraints. The two constraints here are (active/non-active) and (mobile/non-mobile). The main graph, which has the average bar chart behind it, is defined in the code, any of the four graphs could have their average shown instead.

The key is a part of the SVG, the legends can be easily edited by changing each variable.

Added: 07 Aug 2015

Web

PHP