Commit b8497fc3 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Modify brush init location

parent 04bf83bd
...@@ -836,7 +836,7 @@ ...@@ -836,7 +836,7 @@
/*-- Define brush --*/ /*-- Define brush --*/
var brush = d3.svg.brush().x(subX).on("brush", redrawForBrush); var brush = d3.svg.brush().on("brush", redrawForBrush);
var zoom = d3.behavior.zoom().on("zoom", redrawForZoom); var zoom = d3.behavior.zoom().on("zoom", redrawForZoom);
/*-- Draw Chart --*/ /*-- Draw Chart --*/
...@@ -875,6 +875,7 @@ ...@@ -875,6 +875,7 @@
orgXDomain = x.domain(); orgXDomain = x.domain();
// MEMO: must set x here for timeseries data // MEMO: must set x here for timeseries data
brush.x(subX);
zoom.x(x); zoom.x(x);
/*-- Main Region --*/ /*-- Main Region --*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment