Skip to content

Commit

Permalink
fix(scales): fix time scale instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte authored and Raphaël Benitte committed May 9, 2019
1 parent 747b369 commit c9abfae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/scales/src/timeScale.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const timeScale = (
maxValue = normalize(values.max)
}

const scale = useUTC ? scaleUtc : scaleTime
const scale = useUTC ? scaleUtc() : scaleTime()
scale.domain([minValue, maxValue]).range([0, size])

scale.type = 'time'
Expand Down

0 comments on commit c9abfae

Please sign in to comment.