diff --git a/src/area_stack.jsx b/src/area_stack.jsx
index 4df9103..bee4403 100644
--- a/src/area_stack.jsx
+++ b/src/area_stack.jsx
@@ -27,7 +27,8 @@ export default class LineTooltip extends VoronoiEvt {
const {
width,
height,
- focus
+ focus,
+ showLegend
} = this.props;
var focusDom;
@@ -41,9 +42,12 @@ export default class LineTooltip extends VoronoiEvt {
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }
diff --git a/src/scatter.jsx b/src/scatter.jsx
index ad94e7c..78ce8c3 100644
--- a/src/scatter.jsx
+++ b/src/scatter.jsx
@@ -28,7 +28,8 @@ export default class LineTooltip extends VoronoiEvt {
const {
width,
height,
- focus
+ focus,
+ showLegend
} = this.props;
var focusDom;
@@ -42,9 +43,12 @@ export default class LineTooltip extends VoronoiEvt {
{this.props.children}
-
+ {showLegend?
+
+ : null
+ }