|
Maxious
|
1 |
Flotr 2 Architecture Notes |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
Global: |
|
|
5 |
====== |
|
|
6 |
|
|
|
7 |
Flotr.js - |
|
|
8 |
versioning information |
|
|
9 |
browser detection |
|
|
10 |
extension (plugins, graph types) |
|
|
11 |
draw |
|
|
12 |
clone / merge |
|
|
13 |
tick size |
|
|
14 |
tick formatter |
|
|
15 |
engineering notation |
|
|
16 |
magnitude |
|
|
17 |
rad, pixel, floor |
|
|
18 |
drawText |
|
|
19 |
measureText |
|
|
20 |
getBestTextAlign |
|
|
21 |
align map |
|
|
22 |
compatibility |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
Graph Architecture: |
|
|
26 |
=================== |
|
|
27 |
|
|
|
28 |
Axis - |
|
|
29 |
all series |
|
|
30 |
orientation |
|
|
31 |
ticks (major, minor) |
|
|
32 |
scale (d2p, p2d, logarithmic) |
|
|
33 |
notion of stacks |
|
|
34 |
|
|
|
35 |
Series - |
|
|
36 |
per 'data' |
|
|
37 |
notion of range (x, y, min, max) |
|
|
38 |
|
|
|
39 |
Graph - |
|
|
40 |
DOM constructon |
|
|
41 |
event attachment |
|
|
42 |
options initialization |
|
|
43 |
data range calculations |
|
|
44 |
canvas spacing calculations |
|
|
45 |
event normalization |
|
|
46 |
draw methods |
|
|
47 |
DOM cleanup |
|
|
48 |
event cleanup |
|
|
49 |
|
|
|
50 |
|
|
|
51 |
Utilities: |
|
|
52 |
========== |
|
|
53 |
|
|
|
54 |
Color |
|
|
55 |
build colors |
|
|
56 |
parse textual color data |
|
|
57 |
convert colors |
|
|
58 |
clone colors |
|
|
59 |
|
|
|
60 |
Text |
|
|
61 |
calculate text size |
|
|
62 |
canvas size |
|
|
63 |
html size |
|
|
64 |
|
|
|
65 |
Date |
|
|
66 |
formatting |
|
|
67 |
constants |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
Spacing Calculation |
|
|
71 |
=================== |
|
|
72 |
|
|
|
73 |
Flotr |
|
|
74 |
calculate data |
|
|
75 |
calculate margins |
|
|
76 |
|
|
|
77 |
Chart |
|
|
78 |
calculate Data Ranges - Explicit or auto data minimum, maximums |
|
|
79 |
calculate Data Range Extensions - By chart type, extend data range with needs of chart type (ie. stacked bars, stacked lines) |
|
|
80 |
add Chart Padding - By chart type |
|
|
81 |
|
|
|
82 |
Text |
|
|
83 |
use explicit margins |
|
|
84 |
calculate label margins |
|
|
85 |
calculate title margins |
|
|
86 |
|
|
|
87 |
|