html5 boiler plate
[scannr.git] / js / flotr2 / dev / notes.txt
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Flotr 2 Architecture Notes


Global:
======

Flotr.js -
  versioning information
  browser detection
  extension (plugins, graph types)
  draw
  clone / merge
  tick size
  tick formatter
  engineering notation
  magnitude
  rad, pixel, floor
  drawText
  measureText
  getBestTextAlign
  align map
  compatibility


Graph Architecture:
===================

Axis -
  all series
  orientation
  ticks (major, minor)
  scale (d2p, p2d, logarithmic)
  notion of stacks

Series -
  per 'data'
  notion of range (x, y, min, max)

Graph -
  DOM constructon
  event attachment
  options initialization
  data range calculations
  canvas spacing calculations
  event normalization
  draw methods
  DOM cleanup
  event cleanup


Utilities:
==========

Color
  build colors
  parse textual color data
  convert colors
  clone colors

Text
  calculate text size
  canvas size
  html size

Date
  formatting
  constants


Spacing Calculation
===================

Flotr
  calculate data
  calculate margins

Chart
  calculate Data Ranges - Explicit or auto data minimum, maximums
  calculate Data Range Extensions - By chart type, extend data range with needs of chart type (ie. stacked bars, stacked lines)
  add Chart Padding - By chart type

Text
  use explicit margins
  calculate label margins
  calculate title margins