@@ -14,7 +14,7 @@ to populate the graph with series data.
1414
1515# The Graph
1616XYGraphWidget encapsulates XYPlot's graphing functionality. Given an instance of XYPlot, a reference
17- to XYGraphWidget can be retrieve via ` Plot .getGraph()` .
17+ to XYGraphWidget can be retrieve via ` XYPlot .getGraph()` .
1818
1919## Domain & Range Boundaries
2020By default, Androidplot will analyze all XYSeries instances registered with the Plot, determine the
@@ -23,8 +23,16 @@ plot contains dynamic data, especially if your plot can periodically contain eit
2323or data with no resolution on one or both axis (all identical values for either x or y) then you may
2424want to manually set your XYPlot's domain and range boundaries.
2525
26+ To set your plot's boundaries use:
27+
28+ * ` XYPlot.setDomainBoundaries(Number value, BoundaryMode mode) `
29+ * ` XYPlot.setRangeBoundaries(Number value, BoundaryMode mode) `
30+
31+ Note that the value argument is only used when setting ` BoundaryMode.FIXED ` . For all other
32+ modes, pass in null.
33+
2634### BoundaryMode
27- Androidplot provides four BoundaryMode options
35+ Androidplot provides four boundary modes:
2836
2937#### Fixed
3038The plot's boundaries on the specified axis are fixed to user defined values.
@@ -41,7 +49,23 @@ The plot's boundaries automatically shrink to the min value encountered by the p
4149determines the starting boundaries from which the Shrink behavior will be based.
4250
4351## Domain & Range Lines
44- TODO
52+ These are the horizontal lines drawn on a graph. These lines are configured via:
53+
54+ * ` XYPlot.setDomainStep(StepMode mode, Number value) `
55+ * ` XYPlot.setRangeStep(StepMode, Number value) `
56+
57+ Androidplot provides these step modes:
58+
59+ ### Subdivide
60+ When using ` BoundaryMode.SUBDIVIDE ` , the graph is subdivided into the specified number of sections.
61+
62+ ### IncrementByValue
63+ ` BoundaryMode.INCREMENT_BY_VALUE ` instructs Androidplot draw grid lines at the specified interval. This
64+ is the most commonly used modes as is produces an easy to read result.
65+
66+ ### IncrementByPixels
67+ ` BoundaryMode.INCREMENT_BY_PIXELS ` behaves identically to ` BoundaryMode.INCREMENT_BY_VALUE ` except that
68+ the increment quantity is expressed in pixels.
4569
4670## Domain & Range Labels
4771Androidplot supports labeling domain values on either or both the top and bottom graph edges
@@ -54,7 +78,13 @@ Sometimes it is desirable to display additional labels for a single axis, each u
5478TODO - [ f(x) plot example source] ( ../demoapp/src/main/java/com/androidplot/demos/FXPlotExampleActivity.java )
5579provides a reference implementation.
5680
57- ### StepMode
81+ ### Line Label Interval
82+ Androidplot allows you to configure the interval at which labels are rendered for domain and range lines:
83+
84+ * ` XYPlot.getGraph().setLinesPerDomainLabel(int interval) `
85+ * ` XYPlot.getGraph().setLinesPerRangeLabel(int interval) `
86+
87+ ### Line Label Format
5888TODO
5989
6090# Renderers
0 commit comments