Skip to content
Source
Sign inSign up
TanStack/react-charts

Add shouldNice option to AxisOptionsBase #235

MergedBrodzko(GitHub profile, opens in a new tab)merged 1 commit intobeta fromrefs/pull/235/headmerged by tannerlinsley

  • added shouldNice: boolean option to AxisOptionsBase type
  • using this value as default when deciding whether to nice or not
  • fixed checks for extrema when building a time axis
    1. Someone is attempting to deploy a commit to a Personal Account owned by @tannerlinsley on Vercel.

      @tannerlinsley first needs to authorize it.

    2. tannerlinsley requested changes

      @@ -117,4 +118,4 @@
      117118 return value
      118119 })
      119120
      120- let shouldNice = true
      121+ let shouldNice = options.shouldNice
      tannerlinsleycommented

      This let is probably unnecessary now. We can just reference the options.shouldNice :)

      Brodzko(GitHub profile, opens in a new tab)commented

      @tannerlinsley I left it there intentionally so that even if it's set to true, it gets overridden in case min/max/hardMin/hardMax is provided?

      @tannerlinsley is this what you meant? Though I'm not sure how I feel about mutating function arguments :)

      Oh, oh, I forgot that we change it. the let is fine then. Sorry!

    3. tannerlinsley merged this7c22d28

    4. tannerlinsley closed this

    5. Looks like this build errored, so a new version didn't get released. Can you look into that build error and PR a fix for it?

    6. :tada: This PR is included in version 3.0.0-beta.33 :tada:

      The release is available on:

      Your semantic-release bot :package::rocket:

    7. tannerlinsley added labelsreleased on @beta

Sign in to join this conversation.