Skip to content

Commit

Permalink
fix: fix chart config with params methods for Highcharts with split p…
Browse files Browse the repository at this point in the history
…ane (#447)
  • Loading branch information
mournfulCoroner authored Mar 12, 2024
1 parent 5108bd5 commit 7a7b2da
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const withSplitPane = <ComposedComponentProps extends {}>(
type WrapperComponentPropsWithForwardedRef = WrapperComponentProps & {
current: any;
forwardedRef: React.Ref<ComposedComponentProps>;
callback?: Highcharts.ChartCallbackFunction;
};

class WithSplitPane extends React.PureComponent<
Expand Down Expand Up @@ -200,6 +201,7 @@ export const withSplitPane = <ComposedComponentProps extends {}>(
private afterCreateCallback = (chart: Highcharts.Chart) => {
chart.tooltip.splitTooltip = true;
chart.tooltip.getTooltipContainer = this.getTooltipContainer;
this.props.callback?.(chart);
};

private setInitialPaneSize = (callback: () => void) => {
Expand Down

0 comments on commit 7a7b2da

Please sign in to comment.