jeudi 28 septembre 2017

Array to SVG, flexible algorithm with PHP

problem: I've a couple of different arrays - e.g.:

  • [0.21, 0.001, 0.0245, 0.31, 0.05, ...]

  • [1234, 1342, 1232, 1625, 2200, 2205, 1804, ...]

  • [5, 12, 42, 2, 32, 42, ...]

my problem now is: I'm looking for an algorithm to calculate a SVG Path for a simple chart like: simple Chart

my current problem is the general algorithm and the calculating of the viewbox for each SVG. Hope someone can help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire