Skip to content

Commit 81ad6b2

Browse files
committed
flow
1 parent b40a986 commit 81ad6b2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/XYFrame.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,11 @@ class XYFrame extends React.Component<XYFrameProps, State> {
521521
annotatedSettings.lineType.type === "line" &&
522522
!annotatedSettings.lineType.y1 &&
523523
annotatedSettings.lineType.simpleLine !== false
524+
525+
console.log("annotatedSettings.lineType", annotatedSettings.lineType)
526+
if (annotatedSettings.lineType.type === "area") {
527+
annotatedSettings.lineType.y1 = () => 0
528+
}
524529

525530
const margin = calculateMargin({
526531
margin: currentProps.margin,

src/components/svg/lineDrawing.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,8 @@ export const stackedArea = ({
274274
}
275275

276276
export const lineChart = ({
277-
type = "line",
278277
data,
279-
y1 = type === "area" && (() => 0),
278+
y1,
280279
yPropTop,
281280
yPropMiddle,
282281
yPropBottom

0 commit comments

Comments
 (0)