Graphs pure PHP

Draw graphs in PHP without external dependencies

Go to Exdomo Home

Go to the menu-list

30-day graph information:

This graph is an example of a diagram that means to show the number of visitors to your website (the values are randomly generated).

The layout is a css-grid with 30 columns, the css is generated by including a php-file containing css-code and php-script to generate the classnames and the height of the bars.

If you are interested in the code (for free ofcourse) then you can send me a Whatsapp-message (see contactpage) or click the comment-button on my blog.

Not an advertisement, but looks like it

Visitors last 30 days:

61
19
67
10
19
25
32
74
12
39
22
58
0
67
10
29
57
76
20
48
7
35
92
13
10
39
39
90
87
58

In text:

As you can see, the graph changes with every page-refresh. That's because the values are generated randomly each time.

Below the list of values in text-format:

 0:    61   
 1:    19   
 2:    67   
 3:    10   
 4:    19   
 5:    25   
 6:    32   
 7:    74   
 8:    12   
 9:    39   
 10:    22   
 11:    58   
 12:    0   
 13:    67   
 14:    10   
 15:    29   
 16:    57   
 17:    76   
 18:    20   
 19:    48   
 20:    7   
 21:    35   
 22:    92   
 23:    13   
 24:    10   
 25:    39   
 26:    39   
 27:    90   
 28:    87   
 29:    58   
 

Footnotes: