Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

Commit bff54fe

Browse files
Minishlinkmarzolfb
authored andcommitted
Fix default pointRadius and add parameters to renderPoint (#196)
1 parent 88b76ce commit bff54fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Line.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ export default class LineChart extends Component {
145145
return (
146146
<G key={'k' + pointIndex} x={p[0]} y={p[1]}>
147147
{typeof this.props.options.renderPoint === 'function'
148-
? this.props.options.renderPoint()
148+
? this.props.options.renderPoint(graphIndex, pointIndex)
149149
: <Circle
150150
fill={this.color(graphIndex)}
151151
cx={0}
152152
cy={0}
153-
r={options.pointRadius || 5}
153+
r={this.props.options.pointRadius || 5}
154154
fillOpacity={1}
155155
/>}
156156
</G>

0 commit comments

Comments
 (0)