Skip to content

Commit a06f43a

Browse files
Readme Updated
2 parents a566a5c + d1a8798 commit a06f43a

File tree

1 file changed

+17
-20
lines changed

1 file changed

+17
-20
lines changed

README.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414

15-
>A customizable & responsive Waterfall chart for react project
15+
>A customizable & responsive Waterfall chart for React project
1616
1717

1818

@@ -67,16 +67,13 @@ An example for transactions array is shown below:
6767

6868

6969
```jsx
70-
const transactionsList = [
71-
{
72-
label: 'Quarter 1, 2020',
73-
value: 1000
74-
},
75-
{
76-
label: 'Quarter 2, 2020',
77-
value: -500
78-
}
79-
]
70+
const transactionsList = [{
71+
label: 'Quarter 1, 2020',
72+
value: 1000
73+
},{
74+
label: 'Quarter 2, 2020',
75+
value: -500
76+
}];
8077
```
8178

8279
You can use `barWidth` prop to specify the width of each bar present in the chart. The given value will be converted to pixels (px) and applied to the chart.
@@ -85,10 +82,10 @@ With the help of `showBridgeLines` prop, the line connecting the adjacent bars c
8582

8683
```jsx
8784
<WaterfallChart
88-
transactions={transactionsList}
89-
barWidth={100}
90-
showBridgeLines={true}
91-
showFinalSummary={false}
85+
transactions={transactionsList}
86+
barWidth={100}
87+
showBridgeLines={true}
88+
showFinalSummary={false}
9289
/>
9390
```
9491

@@ -98,8 +95,8 @@ You can specify whether to show or hide the scale lines in the Y axis with the h
9895

9996
```jsx
10097
<WaterfallChart
101-
transactions={transactionsList}
102-
showYAxisScaleLines={true}
98+
transactions={transactionsList}
99+
showYAxisScaleLines={true}
103100
/>
104101
```
105102
## Props
@@ -193,9 +190,9 @@ the below code shows all the overridable styles:
193190
transactions={transactionsList}
194191
showYAxisScaleLines={true}
195192
styles={{
196-
summaryBar: CSSProperties,
197-
positiveBar: CSSProperties,
198-
negativeBar: CSSProperties
193+
summaryBar: CSSProperties,
194+
positiveBar: CSSProperties,
195+
negativeBar: CSSProperties
199196
}}
200197
/>
201198
```

0 commit comments

Comments
 (0)