Commit b63a86e2 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix undefined brush extent when zoom

parent 21039143
......@@ -1257,7 +1257,7 @@
subY2.domain(y2.domain());
// Update brush extent if zoom
if (d3.event !== null && d3.event.type === 'zoom') {
if (__subchart_show && d3.event !== null && d3.event.type === 'zoom') {
brush.extent(x.domain());
if ( ! brush.empty()) context.select('.x.brush').call(brush);
}
......
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