@@ -49,7 +49,7 @@ const defaultColorScheme = [
4949function applyDefaults ( {
5050 getSeriesStyle = ( ) => ( { } ) ,
5151 getDatumStyle = ( ) => ( { } ) ,
52- getSeriesOrder = ( d ) => d ,
52+ getSeriesOrder = d => d ,
5353 grouping = groupingPrimary ,
5454 focus = focusAuto ,
5555 showVoronoi = false ,
@@ -79,9 +79,9 @@ function useCreateStore(initialState) {
7979}
8080
8181export default function ChartState ( options ) {
82- let { Provider : StateProvider } = useCreateStore ( ( setState ) => {
83- const setOffset = ( updater ) =>
84- setState ( ( old ) => {
82+ let { Provider : StateProvider } = useCreateStore ( setState => {
83+ const setOffset = updater =>
84+ setState ( old => {
8585 const newOffset = functionalUpdate ( updater , old . offset ) ;
8686
8787 return {
@@ -142,7 +142,7 @@ export function Chart(options) {
142142 } = applyDefaults ( options ) ;
143143
144144 let [ { focused, element, axisDimensions, pointer } ] = useChartState (
145- ( d ) => ( {
145+ d => ( {
146146 focused : d . focused ,
147147 element : d . element ,
148148 axisDimensions : d . axisDimensions ,
@@ -193,7 +193,7 @@ export function Chart(options) {
193193 defaultColors,
194194 } ) ;
195195
196- const focusedElement = React . useMemo ( ( ) => {
196+ focused = React . useMemo ( ( ) => {
197197 // Get the closest focus datum out of the datum group
198198 if ( focused || element ) {
199199 let resolvedFocus = focus ;
@@ -251,7 +251,7 @@ export function Chart(options) {
251251
252252 const contextValue = {
253253 latestFocused,
254- focusedElement ,
254+ focused ,
255255 tooltip,
256256 width,
257257 height,
0 commit comments