From 56df0d87ee2393bcbf554ebf088e2da8d68eafe4 Mon Sep 17 00:00:00 2001 From: James Long Date: Mon, 5 Mar 2018 12:02:46 -0500 Subject: [PATCH] Render line on top of area so it isn't partially hidden --- src/victory-primitives/area.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/victory-primitives/area.js b/src/victory-primitives/area.js index 63c45d0..a70ce4e 100644 --- a/src/victory-primitives/area.js +++ b/src/victory-primitives/area.js @@ -84,6 +84,6 @@ export default class Area extends React.Component { key: "area-stroke", style: assign({}, style, { fill: "none" }), d: lineFunction(data) }, sharedProps)) : null; - return renderLine ? React.cloneElement(groupComponent, {}, [line, area]) : area; + return renderLine ? React.cloneElement(groupComponent, {}, [area, line]) : area; } }