- added a prop to customize vertical labels heigh
- use full width when legend is hidden in StackedBarChart
- added custom Y labels in StackedBarChart
- use same colors in
ProgressChart
legend ifwithCustomBarColorFromData
is set
- allowed usage of custom color for each bar on ProgressChart
- allowed usage of custom color for each bar on BarChart
- fixed to display the correct height bar even if changing the "height" of the props in StackedBar
- added indexData prop for renderDotContent
- added
propsForVerticalLabels
andpropsForHorizontalLabels
- added
StackedBarChart
percentile
stacking
- added
PieChart
propsavoidFalseZero
ProgressChart
updated to include a condition to divide width by 2 for x value
- added
withVerticalLines
andwithHorizontalLines
toLineChart
- added
scrollableInfoTextDecorator
- Typescript rewrite
- fixed linear gradient issue due to
react-native-svg
lib update - added handling for datasets data is null to use last line coordinates
- updated to Expo SDK 37 and add clarification on usage to README.md
- added
showValuesOnTopOfBars
prop toBarChart
- fixed decimalPlaces being 0 and not applied in
BarChart
- added
useShadowColorFromDataset
tochartConfig
to makeLineChart
shadow same as line color
- fixed decimalPlaces not being sent with barChart
- added strokeWidth & radius as props for ProgressChart
- TS type fixes
- added missing ContributionGraph props
- added
withScrollableDot
to LineChart and a whole bunch of props tochartConfig
. New feature for Line Chart - scrollable dot. It allows to navigate through chart using gesture and see value at dot's current position.
propsForDots
added toChartConfig
interface
- add some safe default values in BarChart's
chartConfig
to avoid potential null pointers
- added a withDots property to each dataset in LineChart to disable dots on these lines
- removed
prop-types
- added
onDayPress
to ContributionGraph
- made ContributionGraph opacity distribution even through range between the min and max values
- added
getMonthLabel
to ContributionGraph - added
yAxisInterval
to LineChart, it allows you to skip vertical lines in the background - expaned StackedBarChart if it has no legend
- removed
.babelrc
from distribution - made decimalPlaces work for StackedBar Chart
- added ability to add custom segments on the Y-Axis
- implemented barRadius config in BarChart
- added showBarTops prop to BarChart
- added
barPercentage?: number; hideLegend: boolean;
props to StackedBarChart - added
barRadius
to chart config - added
renderDotContent
to LineChart
- line chart supports legend
- add
hideLegend
to ProgressChart
- patched a lot of indirect dependencies
- improved ProgressChartProps types
- added item index to some color calls
- added an optional bottom padding to LineChart
- POTENTIALLY BREAKING for typescript: added some typedefs to "LineChart", "BarChart", and "StackedBarChart". Also added some typedefs for styles.
- corrected the line-chart & progress-chart wrong width calculation
- added
formatXLabel
,formatYLabel
, andgetDotProps
toLineChart
- added optional props:
xAxisLabel
,yAxisSuffix
,yLabelsOffset
,xLabelsOffset
, andhidePointsAtIndex
toLineChart
- added optional prop
withInnerLines
toBarChart
- added optional
fillShadowGradient
color andfillShadowGradientOpacity
to chart config for customizing the area under the data points inLinChart
andBarChart
- added type for chart config
- added props config for Dots in the line chart
- added propsForLabels to chartConfig
- added labelColor to chartConfig as a shortcut for propsForLabels / fill
- added dot cx, cy in the onDataPointClick functions arguments
- fixed for horizontal label position when there is only one data point and fromZero prop is true
- expose paddingTop and paddingRight via the style prop
- style the chart background lines with chartConfig's propsForBackgroundLines
- added barPercentage property to chartConfig (by @dchirutac)
- added dot color callback prop (by @stephenc222)
- added bar chart label rotations (by @stephenc222)
- added
horizontalLabelRotation
andverticalLabelRotation
props toLineChart
- added
chartConfig
backgroundGradientFromOpacity
andbackgroundGradientToOpacity
- added
index
toonDataPointClick
- added optional labels for ProgressChart
- added withVerticalLabels and withHorizontalLabels to LineChart, BarChart and StackedBarChart
- added typescript types