react-chartsPublic
removing typos #325
Closedghostwants to merge 5 commits into
beta fromrefs/pull/325/headopened - @@ -7,4 +7,4 @@7788 ## Memoize your Props!9910-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!
tannerlinsley reviewed
@@ -28,4 +28,4 @@2828 ]2929 ```303031-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**.tannerlinsley reviewed
@@ -63,4 +63,4 @@6363 The Chart component props can be passed in its `options` property object:64646565 ```javascript66-<Chart66+<tannerlinsley reviewed
@@ -126,9 +126,8 @@126126 )127127 ```128128129-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 attributes129+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.131131132132 `interactionMode` expect an string wich can be "primary" or "closest". It's been using for the tooltip position. By default, primary is being set.133133134-`showVoronoi` expect a boolean, it's a debug option to visualize the interaction click-map that sits on top of the chart.tannerlinsley closed this
Sign in to join this conversation.

tannerlinsley reviewed