Skip to content

Commit

Permalink
update CartesianChart docs
Browse files Browse the repository at this point in the history
  • Loading branch information
masiddee committed Jan 13, 2025
1 parent 5fbbb0c commit 88e6c8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/docs/cartesian/cartesian-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ The `xAxis` is an optional prop allows you to configure the X axis of the chart.
| **`labelColor`** | <pre>string</pre> | Defines the color of the X axis label. It will default to `#000000 (black)` if none is provided. |
| **`labelOffset`** | <pre>number</pre> | Defines the offset of the axis label. It will default to `2` if none is provided. |
| **`labelPosition`** | <pre>AxisLabelPosition;</pre> | Defines the position of the x-axis labels. It will default to `outset` if none is provided.<br /><br />&#9432; **`AxisLabelPosition`** is an enum with the values: <code>'inset &#124; 'outset'</code>. |
| **`labelRotate`** | <pre>number;</pre> | Defines the angle of rotation for the X axis labels. It will default to 0. Note: The origin of rotation defaults to the center of the label. |
| **`axisSide`** | <pre>XAxisSide</pre> | Defines the side of the chart that the `X` axis is rendered on. It will default to `bottom` if none is provided. <br /><br />&#9432; **`XAxisSide`** is an enum with the values: <code>'top' &#124; 'bottom'</code>.<br/> |
| **`formatXLabel`** | <pre>(label: T[XK]) => string</pre> | Defines a function provide customization for formatting the X axis labels. It will default to just returning the value as a string if no function is provided. |
| **`linePathEffect`** | <pre>`DashPathEffect`</pre> | Currently accepts the `<DashPathEffect />` from `react-native-skia` so one can add dashes to their axis lines. In the future this prop may accept other line path effects as well. |
Expand Down

0 comments on commit 88e6c8d

Please sign in to comment.