Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(SimpleChart): Pass through new tooltip props
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Jul 7, 2020
1 parent 46305e6 commit 39385de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/charts/SimpleChart/ChartTooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ChartTooltips.propTypes = {
labels: PropTypes.array,
name: PropTypes.string,
getReadout: PropTypes.func,
tooltipComponent: PropTypes.object,
tooltipComponent: PropTypes.elementType,
tooltipProps: PropTypes.object,
};

Expand Down
6 changes: 4 additions & 2 deletions src/charts/SimpleChart/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ function SimpleChart({
height,
name,
color = 'links',
tooltipRenderer,
tooltipComponent,
tooltipProps,
getTooltipReadout,
isEmpty,
emptyContent = 'No data to display',
Expand Down Expand Up @@ -120,7 +121,8 @@ function SimpleChart({
data={data}
labels={labels}
name={name}
tooltipRenderer={tooltipRenderer}
tooltipComponent={tooltipComponent}
tooltipProps={tooltipProps}
getReadout={getTooltipReadout}
/>
) : (
Expand Down

0 comments on commit 39385de

Please sign in to comment.