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

removing typos #325

Closedghostwants to merge 5 commits intobeta fromrefs/pull/325/headopened

ghostcommented

updated the docs little bit, added punctuation removed grammatical errors.

    1. tannerlinsley reviewed

      @@ -7,4 +7,4 @@
      77
      88 ## Memoize your Props!
      99
      10-The React Charts `<Chart>` component has a few options that need to be **stable** or **memoized using either `React.useMemo` or `React.useCallback`**. Using an unstable option incorrectly shouldn't severly break any basic functionality, but could results in infinite change-detection loops in your app or at the very least, your charts will be severly non-performant. If an option says it needs to be stable, it's not kidding around!
      10+The React Charts `<Chart>` component has a few options that needs to be **stable** or **memoized using either `React.useMemo` or `React.useCallback`**. Using an unstable option incorrectly shouldn't severly break any basic functionality, but could results in infinite change-detection loops in your app or at the very least, your charts will be severly non-performant. If an option says it needs to be stable, it's not kidding around!
      tannerlinsleycommented

      This is incorrect. Go ahead and leave this one as is

    2. tannerlinsley reviewed

      @@ -28,4 +28,4 @@
      2828 ]
      2929 ```
      3030
      31-Visualization data can come in practically any shape and size, so **memoization of data into this shape is almost always necessary**.
      31+Visualization of data can come in practically any shape and size, so **memoization of data into this shape is almost always necessary**.

      Also not correct

    3. tannerlinsley reviewed

      @@ -63,4 +63,4 @@
      6363 The Chart component props can be passed in its `options` property object:
      6464
      6565 ```javascript
      66-<Chart
      66+<
      tannerlinsleycommented

      Incorrect

    4. tannerlinsley reviewed

      @@ -126,9 +126,8 @@
      126126 )
      127127 ```
      128128
      129-The `initialHeight` and `initialWidth` expect a number, a default value is applied for each of those, 300 and 200 respectively. It's important to mention that these options are available SSR only.
      130-If you'd like to have a custom height and width in the client side you may have a wrapper div that sets the width and height CSS attributes
      129+The `initialHeight` and `initialWidth` expect a number, a default value is applied for each of those, 300 and 200 respectively. It's important to mention that these options are available for SSR only.
      130+If you'd like to have a custom height and width in the client side you may have a wrapper div that sets the width and height CSS attributes.
      131131
      132132 `interactionMode` expect an string wich can be "primary" or "closest". It's been using for the tooltip position. By default, primary is being set.
      133133
      134-`showVoronoi` expect a boolean, it's a debug option to visualize the interaction click-map that sits on top of the chart.

      Leave this please

    5. Too many errors and false positives. Sorry!

    6. tannerlinsley closed this

    7. ghostcommented

      Hi @tannerlinsley, in my next pull can you approve this ? image

Sign in to join this conversation.