You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lightweight and customizable React Native chart library for creating stunning visualizations. This library supports Bar Charts, Line Charts, and Pie Charts with various customization options.
Here is a table summarizing the properties and types for the LineChart and CategoricalAxis components:
LineChart Props
Prop
Type
Description
catergoricalAxis
Array<string>
Labels for the categorical axis.
numericalAxes
NumericalAxisType[]
Array of numerical axis configurations, including data and styles.
chartHeight
number (optional)
Height of the chart.
minChartWidth
number (optional)
Minimum width of the chart.
modifyToolTipLabel
(x: string, y: number) => string (optional)
Function to modify the tooltip label.
xUnit
number (optional)
Unit spacing for the x-axis.
showToolTip
boolean (optional)
Whether to show tooltips on the chart.
categoricalAxisHeight
number (optional)
Height of the categorical axis.
categoricalLabelTilt
TiltAngle (optional)
Angle for tilting the categorical labels.
dashedLineWidth
number (optional)
Width of dashed grid lines.
dashedLineGap
number (optional)
Gap between dashed grid lines.
dashedLineColor
string (optional)
Color of dashed grid lines.
variant
`'area'
'blank'` (optional)
categoricalLabelColor
string (optional)
Color of the categorical axis labels.
numericalLabelColor
string (optional)
Color of the numerical axis labels.
categoricalLabelFontSize
number (optional)
Font size for categorical labels.
numericalLabelFontSize
number (optional)
Font size for numerical labels.
toolTipColor
string (optional)
Color of the tooltip.
NumericalAxisType
Property
Type
Description
data
Array<number>
Data points for the numerical axis.
strokeColor
string
Color of the line representing the data.
strokeWidth
number
Width of the line representing the data.
CategoricalAxis Props
Prop
Type
Description
categoricalAxis
Array<string>
Labels for the categorical axis.
xUnit
number
Unit spacing for the categorical axis.
height
number (optional)
Height of the categorical axis.
tiltAngle
TiltAngle (optional)
Angle to tilt the labels for better readability.
labelColor
string (optional)
Color of the categorical labels.
fontSize
number (optional)
Font size of the categorical labels.
TiltAngle
Value
Description
0
No tilt (horizontal).
5-90
Angle in degrees to tilt labels for readability.
PieChart Props
Prop
Type
Description
data
Slice[]
Array of slices representing the pie chart. Each slice contains value, color, and optionally a label.
variant
`"offset"
"inscribed"` (optional)
size
number
Diameter of the pie chart.
labelFontSize
number (optional)
Font size for the labels inside the pie chart.
gradient
boolean (optional)
Whether to apply a gradient effect to the chart.
endOpacity
number (optional)
Opacity at the end of the gradient (if enabled).
Slice Interface
Property
Type
Description
value
number
Value of the slice, determines its size proportion in the chart.
color
string
Color of the slice.
label
{ value: string, color: string } (optional)
Optional label for the slice, with text and color.
License
This library is licensed under the MIT License.
About
A lightweight and customizable React Native chart library for creating stunning visualizations. This library supports Bar Charts, Line Charts, and Pie Charts with various customization options.