Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tituomin committed Feb 9, 2022
1 parent 916a09d commit a660273
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions analytics/client/src/Plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,19 +249,18 @@ function TransportModePlotWrapper({traces, layout, config, weekSubset, Popup}) {
hover: false, event: null, point: null
})
const hoverHandler = ({event, point}) => {
setPopupState(
{area: {
name: point.label,
},
transportMode: point.data.name,
rel: point.customdata.rel ?? point.value,
abs: point.customdata.abs ?? point.value,
total: point.customdata.total,
weekSubset,
syntheticModes: point.customdata.syntheticModes,
selectedArea: point.customdata.selectedArea,
x: event.x,
y: event.y});
setPopupState({
area: { name: point.label },
transportMode: point.data.name,
rel: point.customdata.rel ?? point.value,
abs: point.customdata.abs ?? point.value,
total: point.customdata.total,
weekSubset,
syntheticModes: point.customdata.syntheticModes,
selectedArea: point.customdata.selectedArea,
x: event.x,
y: event.y
});
};
useEffect(() => {
let onHover, onUnhover;
Expand Down

0 comments on commit a660273

Please sign in to comment.