Skip to content

Commit

Permalink
Merge branch 'fix-waterfall-chart-axis' into waterfall-annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Sep 28, 2021
2 parents cc3f0cb + db60bd4 commit a1b00db
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,16 +128,16 @@ export const WaterfallChartWrapper: React.FC<Props> = ({ data, total, markerItem
<WaterfallChart
tickFormat={useCallback((d: number) => `${Number(d).toFixed(0)} ms`, [])}
domain={domain}
barStyleAccessor={useCallback((datum) => {
if (!datum.datum.config.isHighlighted) {
barStyleAccessor={useCallback(({ datum }) => {
if (!datum.config?.isHighlighted) {
return {
rect: {
fill: datum.datum.config.colour,
fill: datum.config?.colour,
opacity: '0.1',
},
};
}
return datum.datum.config.colour;
return datum.config.colour;
}, [])}
renderSidebarItem={renderSidebarItem}
renderLegendItem={renderLegendItem}
Expand Down

0 comments on commit a1b00db

Please sign in to comment.