While it could be implemented as a per-Y-axis setting, I think it probably
makes more sense to consider it as a global option. I'll experiment with it
on Monday, the expected effect should be that the pixel padding applies
consistently for both Y axes, i.e. if you have y=[0,10] and y2=[0,100], the
tick marks should line up as expected with y2=100 at the same position as
y=10. Providing different values would skew this.


On Sat, Feb 9, 2013 at 2:49 PM, Robert Konigsberg
<notifications@github.com>wrote:

> In dygraph-options-reference.js:
>
> > @@ -495,6 +495,18 @@ Dygraph.OPTIONS_REFERENCE =  // <JSON>
> >      "type": "boolean",
> >      "description": "When set, draw the X axis at the Y=0 position and the Y axis at the X=0 position if those positions are inside the graph's visible area. Otherwise, draw the axes at the bottom or left graph edge as usual."
> >    },
> > +  "xRangePad": {
> > +    "default": "0",
> > +    "labels": ["Axis display"],
> > +    "type": "float",
> > +    "description": "Add the specified amount of extra space (in pixels) around the X-axis value range to ensure points at the edges remain visible."
> > +  },
> > +  "yRangePad": {
>
> How does yRangePad work with the different axes? (That is, y vs y2. ) I
> wonder if this belongs in, say, axes : { x : { padding : n }, y : { padding
> : n } }
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/danvk/dygraphs/pull/210/files#r2954077>..
>
>