Skip to content

Commit e2a7231

Browse files
author
iexitdev
authored
Merge pull request #721 from Zeigfreid/master
Added support to style top of bar values
2 parents 28f8b50 + 5813918 commit e2a7231

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/BarChart.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ class BarChart extends AbstractChart<BarChartProps, BarChartState> {
206206
fill={this.props.chartConfig.color(0.6)}
207207
fontSize="12"
208208
textAnchor="middle"
209+
{...this.props.chartConfig.propsForTopLabels}
209210
>
210211
{renderLabel(data[i])}
211212
</Text>

src/HelperTypes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export interface ChartConfig {
104104
*/
105105
barPercentage?: number;
106106
barRadius?: number;
107+
propsForTopLabels?: TextProps;
107108
/**
108109
* Override styles of the background lines, refer to react-native-svg's Line documentation
109110
*/

0 commit comments

Comments
 (0)