projects
/
dygraphs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change x-axis pixel spacing default to 70.
[dygraphs.git]
/
dygraph.js
diff --git
a/dygraph.js
b/dygraph.js
index
d1d4a5d
..
43768a9
100644
(file)
--- a/
dygraph.js
+++ b/
dygraph.js
@@
-2318,7
+2318,7
@@
Dygraph.prototype.addXTicks_ = function() {
var xTicks = xAxisOptionsView('ticker')(
range[0],
range[1],
var xTicks = xAxisOptionsView('ticker')(
range[0],
range[1],
- this.
width_
, // TODO(danvk): should be area.width
+ this.
plotter_.area.w
, // TODO(danvk): should be area.width
xAxisOptionsView,
this);
// var msg = 'ticker(' + range[0] + ', ' + range[1] + ', ' + this.width_ + ', ' + this.attr_('pixelsPerXLabel') + ') -> ' + JSON.stringify(xTicks);
xAxisOptionsView,
this);
// var msg = 'ticker(' + range[0] + ', ' + range[1] + ', ' + this.width_ + ', ' + this.attr_('pixelsPerXLabel') + ') -> ' + JSON.stringify(xTicks);
@@
-2972,7
+2972,7
@@
Dygraph.prototype.computeYAxisRanges_ = function(extremes) {
var ticker = opts('ticker');
axis.ticks = ticker(axis.computedValueRange[0],
axis.computedValueRange[1],
var ticker = opts('ticker');
axis.ticks = ticker(axis.computedValueRange[0],
axis.computedValueRange[1],
- this.
height_, // TODO(danvk): should be area.height
+ this.
plotter_.area.h,
opts,
this);
// Define the first independent axis as primary axis.
opts,
this);
// Define the first independent axis as primary axis.
@@
-3003,7
+3003,7
@@
Dygraph.prototype.computeYAxisRanges_ = function(extremes) {
axis.ticks = ticker(axis.computedValueRange[0],
axis.computedValueRange[1],
axis.ticks = ticker(axis.computedValueRange[0],
axis.computedValueRange[1],
- this.
height_, // TODO(danvk): should be area.height
+ this.
plotter_.area.h,
opts,
this,
tick_values);
opts,
this,
tick_values);