Coder Social home page Coder Social logo

yi-ge / svggraph Goto Github PK

View Code? Open in Web Editor NEW

This project forked from goat1000/svggraph

0.0 1.0 0.0 1.53 MB

PHP SVG graph library

Home Page: http://www.goat1000.com/svggraph.php

License: GNU Lesser General Public License v3.0

PHP 98.15% HTML 1.85%

svggraph's Introduction

SVGGraph PHP SVG graph library

SVGGraph generates a variety of graphs in SVG format. For examples, documentation, etc. please see: http://www.goat1000.com/svggraph.php

This library is released under LGPL-3.0.

Example usage:

<?php
// if you are using composer you can skip this
require 'svggraph/autoloader.php';

// set some options
$options = [
  'graph_title' => 'A simple graph',
  'bar_space' => 20,
];

// set up an array of values
$values = [ 100, 200, 140, 130, 160, 150 ];

// use full namespace to get SVGGraph instance
$graph = new Goat1000\SVGGraph\SVGGraph(600, 400, $options);

// assign the values
$graph->values($values);

// render a bar graph
$graph->render('BarGraph');

svggraph's People

Contributors

abcaeffchen avatar goat1000 avatar graham avatar gszy avatar stollr avatar tomgillett avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.