Skip to content

Commit

Permalink
Fix typos in NumberFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
danielost committed Jul 11, 2023
1 parent 7132d28 commit 482d74e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/js/src/main/scala/chartreuse/NumberFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
package chartreuse

import scala.scalajs.js
import scala.scalajs.js.annotation._
import scala.scalajs.js.annotation.*

@js.native
@JSGlobal("Intl.NumberFormat")
class NumberFormat() extends js.Object {
class NumberFormat extends js.Object {
def format(value: Double): String = js.native
}
2 changes: 1 addition & 1 deletion core/js/src/main/scala/chartreuse/Plot.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ final case class Plot[Alg <: Algebra](
val xTicksSequence = ticksToSequence(xTicks, scale, asX)
val yTicksSequence = ticksToSequence(yTicks, scale, asY)

val numberFormat = new NumberFormat()
val numberFormat = new NumberFormat

val allLayers =
layers
Expand Down

0 comments on commit 482d74e

Please sign in to comment.