Welcome to mirror list, hosted at ThFree Co, Russian Federation.

DESIGN « sparkline « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d7a374d8b131814d570b5cdf3e6140b7f85b225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
# Sparkline PHP Graphing Library
# Copyright 2004 James Byers <jbyers@gmail.com>
# http://sparkline.org
#
# Dual-licensed under the BSD (LICENSE-BSD.txt) and GPL (LICENSE-GPL.txt)
# licenses.
#
# $Id: DESIGN,v 1.4 2008/03/11 19:12:49 jbyers Exp $
#

Not much to see.  It's 0.1, after all.

Flow
------------------------------------------------------------------------------

Instantiate appropriate Sparkline subclass
Load data, set parameters, all Set* calls
Render
  convert coordinates
  calculate image size
  create image handle
  set colors
  fill background
  draw graph
  draw features
Optionally call Draw* functions
Output / OutputFile