projects
/
dygraphs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e03f3a9
)
only apply optimization when stepPlot=false
range-selector-granularity
author
Dan Vanderkam
<danvdk@gmail.com>
Tue, 4 Nov 2014 23:51:57 +0000
(18:51 -0500)
committer
Dan Vanderkam
<danvdk@gmail.com>
Tue, 4 Nov 2014 23:51:57 +0000
(18:51 -0500)
plugins/range-selector.js
patch
|
blob
|
blame
|
history
diff --git
a/plugins/range-selector.js
b/plugins/range-selector.js
index
d8a3c7a
..
8e74ad9
100644
(file)
--- a/
plugins/range-selector.js
+++ b/
plugins/range-selector.js
@@
-597,7
+597,7
@@
rangeSelector.prototype.drawMiniPlot_ = function() {
// Skip points that don't change the x-value. Overly fine-grained points
// can cause major slowdowns with the ctx.fill() call below.
- if (prevX !== null && Math.round(x) == Math.round(prevX)) {
+ if (
!stepPlot &&
prevX !== null && Math.round(x) == Math.round(prevX)) {
continue;
}