Merge pull request #296 from danvk/xlog
[dygraphs.git] / NOTES
CommitLineData
f09fc545
DV
1Axis-related properties:
2includeZero
3valueRange
4labelsKMB
5labelsKMG2
6pixelsPerYLabel
7yAxisLabelWidth
8axisLabelFontSize
9axisTickSize
10
11How is the y-axis determined?
12
13Dygraph.numericTicks: min, max -> set of ticks for axis
14tick = { label: label, v: value }
15
16addYTicks_: min, max -> void
17sets the yAxis and yTicks properties of layout_
18
19drawGraph_:
20if set, uses this.valueRange_ ([low, high] array)
21 -> adds ticks via addYTicks_
22 -> sets displayedYRange_
23
24otherwise, calculates a good axis based on minY and maxY.
25
26this.displayedYRange_ is returned by the yAxisRange function.
27this is, in turn, used by the toDataCoords and toDomCoords methods.
28
29Path of least resistance:
30- in drawGraph_, calculate [minY, maxY] per-series
31- write a function to compute y-axes for all series, ensure only two axes.
32- make yAxis, yTicks into arrays in layout_
33- add a series -> axis mapping to layout_, dygraph
34- add code to Renderer to add second axis.
35- add optional 'series' parameter to toDomCoords/toDataCoords
36
37This won't be compatible with stacked charts.