Skip to content

Commit

Permalink
Fix waterfall chart top axis (#113281)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 authored Sep 29, 2021
1 parent 1459839 commit f7120d9
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ export const WaterfallChartWrapper: React.FC<Props> = ({ data, total }) => {
<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 f7120d9

Please sign in to comment.